]> err.no Git - linux-2.6/commitdiff
[ALSA] Fix 'semaphore is not ready' problem with snd-intel8x0m
authorSasha Khapyorsky <sashak@smlink.com>
Thu, 7 Apr 2005 18:21:21 +0000 (20:21 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 07:58:31 +0000 (09:58 +0200)
Intel8x0-modem driver
With some intel based ac97 modems codec access semaphore is not cleared
after 0x54 AC97 register (GPIO_STATUS) reads. This may causes problems
with newly applied modem mixer (Off-hook switch) and in other cases.

Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/intel8x0m.c

index 67da096d659b3d2e35ce894f0979d0b353bf9d27..f9972b20050d6b2d0fbd2bcda5b56701d7d4b7a2 100644 (file)
@@ -500,6 +500,8 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97,
                        res = 0xffff;
                }
        }
+       if (reg == AC97_GPIO_STATUS)
+               iagetword(chip, 0); /* clear semaphore */
        return res;
 }