From: Sasha Khapyorsky Date: Thu, 7 Apr 2005 18:21:21 +0000 (+0200) Subject: [ALSA] Fix 'semaphore is not ready' problem with snd-intel8x0m X-Git-Tag: v2.6.13-rc1~68^2~707 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2c56c47f678b0388290686d5a0988d8806ffe5cc;p=karo-tx-linux.git [ALSA] Fix 'semaphore is not ready' problem with snd-intel8x0m 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index 67da096d659b..f9972b20050d 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c @@ -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; }