Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193413
b: refs/heads/master
c: 76f4712
h: refs/heads/master
i:
  193411: c327be1
v: v3
  • Loading branch information
Peter Ujfalusi authored and Liam Girdwood committed Apr 26, 2010
1 parent 60111f3 commit 858edd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4260393e71f1e99c2f4fcde10fcb98fe00188d21
refs/heads/master: 76f471274dc9acacd521f151ac9171fd7bbc34c3
5 changes: 5 additions & 0 deletions trunk/sound/soc/codecs/tlv320dac33.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
#define MODE7_LTHR 10
#define MODE7_UTHR (DAC33_BUFFER_SIZE_SAMPLES - 10)

#define BURST_BASEFREQ_HZ 49152000

static struct snd_soc_codec *tlv320dac33_codec;

enum dac33_state {
Expand Down Expand Up @@ -95,6 +97,7 @@ struct tlv320dac33_priv {
enum dac33_fifo_modes fifo_mode;/* FIFO mode selection */
unsigned int nsample; /* burst read amount from host */
u8 burst_bclkdiv; /* BCLK divider value in burst mode */
unsigned int burst_rate; /* Interface speed in Burst modes */

int keep_bclk; /* Keep the BCLK continuously running
* in FIFO modes */
Expand Down Expand Up @@ -1246,6 +1249,8 @@ static int __devinit dac33_i2c_probe(struct i2c_client *client,

dac33->power_gpio = pdata->power_gpio;
dac33->burst_bclkdiv = pdata->burst_bclkdiv;
/* Pre calculate the burst rate */
dac33->burst_rate = BURST_BASEFREQ_HZ / dac33->burst_bclkdiv / 32;
dac33->keep_bclk = pdata->keep_bclk;
dac33->irq = client->irq;
dac33->nsample = NSAMPLE_MAX;
Expand Down

0 comments on commit 858edd3

Please sign in to comment.