diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-03-11 15:45:32 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-03-11 15:45:32 +0100 |
commit | 7e79443ce250776b8477426127acdac15c567f22 (patch) | |
tree | 25141b63c232b77bc45053e08690a91dd7cb3f9f /sound/pci/atiixp_modem.c | |
parent | 966a7f0dc4de57cf52467968e4244d218a5c3506 (diff) | |
download | linux-7e79443ce250776b8477426127acdac15c567f22.tar.gz linux-7e79443ce250776b8477426127acdac15c567f22.tar.bz2 linux-7e79443ce250776b8477426127acdac15c567f22.zip |
ALSA: atiixp - Fix wrong time-out checks during ac-link reset
The time-out in snd_atiixp_aclink_reset() is wrongly checked, and
it resulted in exiting from the loop at the first iteration.
Reported-by: Amir Shamsuddin <AmirS2+alsa@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/atiixp_modem.c')
-rw-r--r-- | sound/pci/atiixp_modem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 91d7036b6411..2f74c2fdf1ea 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c @@ -498,7 +498,7 @@ static int snd_atiixp_aclink_reset(struct atiixp_modem *chip) atiixp_read(chip, CMD); msleep(1); atiixp_update(chip, CMD, ATI_REG_CMD_AC_RESET, ATI_REG_CMD_AC_RESET); - if (--timeout) { + if (!--timeout) { snd_printk(KERN_ERR "atiixp-modem: codec reset timeout\n"); break; } |