mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ALSA: burgundy: timeout message is off by one.
Timeout message is off by one. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
3f08a0e4ab
commit
13be1bf146
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue