Skip to content

Commit

Permalink
ALSA: burgundy: timeout message is off by one.
Browse files Browse the repository at this point in the history
Timeout message is off by one.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
RoelKluin authored and tiwai committed Jun 3, 2009
1 parent 3f08a0e commit 13be1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/ppc/burgundy.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ snd_pmac_burgundy_extend_wait(struct snd_pmac *chip)
timeout = 50;
while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--)
udelay(1);
if (! timeout)
if (timeout < 0)
printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n");
timeout = 50;
while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--)
udelay(1);
if (! timeout)
if (timeout < 0)
printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n");
}

Expand Down

0 comments on commit 13be1bf

Please sign in to comment.