summaryrefslogtreecommitdiffstats
path: root/sound/ppc
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-06-04 01:53:21 +0200
committerTakashi Iwai <tiwai@suse.de>2009-06-04 00:10:41 +0200
commit13be1bf1467e3186a4a9d1b1276cc4bd31e472ea (patch)
treedef07f5ac9715a4710ed73a86a9e310d61478c33 /sound/ppc
parent3f08a0e4ab1ce65bb882f6425ff482e5db025f78 (diff)
downloadop-kernel-dev-13be1bf1467e3186a4a9d1b1276cc4bd31e472ea.zip
op-kernel-dev-13be1bf1467e3186a4a9d1b1276cc4bd31e472ea.tar.gz
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>
Diffstat (limited to 'sound/ppc')
-rw-r--r--sound/ppc/burgundy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/ppc/burgundy.c b/sound/ppc/burgundy.c
index 45a7629..d2c0a4e 100644
--- a/sound/ppc/burgundy.c
+++ b/sound/ppc/burgundy.c
@@ -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");
}
OpenPOWER on IntegriCloud