Commit 13be1bf1 authored by Roel Kluin's avatar Roel Kluin Committed by Takashi Iwai

ALSA: burgundy: timeout message is off by one.

Timeout message is off by one.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3f08a0e4
...@@ -46,12 +46,12 @@ snd_pmac_burgundy_extend_wait(struct snd_pmac *chip) ...@@ -46,12 +46,12 @@ snd_pmac_burgundy_extend_wait(struct snd_pmac *chip)
timeout = 50; timeout = 50;
while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--)
udelay(1); udelay(1);
if (! timeout) if (timeout < 0)
printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n"); printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n");
timeout = 50; timeout = 50;
while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--)
udelay(1); udelay(1);
if (! timeout) if (timeout < 0)
printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n"); printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment