Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216657
b: refs/heads/master
c: 84eae18
h: refs/heads/master
i:
  216655: b44d3fd
v: v3
  • Loading branch information
Peter Ujfalusi authored and Liam Girdwood committed Oct 23, 2010
1 parent 8007577 commit 4f3714a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 872a64d7e73f0e4dc435295da393db25332172b8
refs/heads/master: 84eae18c867fcb7ce43d5830e23377ed33e45df9
10 changes: 6 additions & 4 deletions trunk/sound/soc/codecs/tlv320dac33.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ static int dac33_set_bias_level(struct snd_soc_codec *codec,
static inline void dac33_prefill_handler(struct tlv320dac33_priv *dac33)
{
struct snd_soc_codec *codec = dac33->codec;
unsigned int delay;

switch (dac33->fifo_mode) {
case DAC33_FIFO_MODE1:
Expand All @@ -684,8 +685,9 @@ static inline void dac33_prefill_handler(struct tlv320dac33_priv *dac33)
dac33_write16(codec, DAC33_PREFILL_MSB,
DAC33_THRREG(dac33->alarm_threshold));
/* Enable Alarm Threshold IRQ with a delay */
udelay(SAMPLES_TO_US(dac33->burst_rate,
dac33->alarm_threshold));
delay = SAMPLES_TO_US(dac33->burst_rate,
dac33->alarm_threshold) + 1000;
usleep_range(delay, delay + 500);
dac33_write(codec, DAC33_FIFO_IRQ_MASK, DAC33_MAT);
break;
case DAC33_FIFO_MODE7:
Expand Down Expand Up @@ -785,11 +787,11 @@ static irqreturn_t dac33_interrupt_handler(int irq, void *dev)

static void dac33_oscwait(struct snd_soc_codec *codec)
{
int timeout = 20;
int timeout = 60;
u8 reg;

do {
msleep(1);
usleep_range(1000, 2000);
dac33_read(codec, DAC33_INT_OSC_STATUS, &reg);
} while (((reg & 0x03) != DAC33_OSCSTATUS_NORMAL) && timeout--);
if ((reg & 0x03) != DAC33_OSCSTATUS_NORMAL)
Expand Down

0 comments on commit 4f3714a

Please sign in to comment.