mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
ALSA: burgundy: timeout message is off by one.
Timeout message is off by one. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3f08a0e4ab
commit
13be1bf146
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user