Commit 39661758 authored by Roel Kluin's avatar Roel Kluin Committed by Takashi Iwai

ALSA: snd-powermac: timeout reaches -1

If unsuccessful, timeout reaches -1 after the loop.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6da67113
......@@ -35,7 +35,7 @@ snd_pmac_burgundy_busy_wait(struct snd_pmac *chip)
int timeout = 50;
while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--)
udelay(1);
if (! timeout)
if (timeout < 0)
printk(KERN_DEBUG "burgundy_busy_wait: timeout\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