Commit 2c56c47f678b0388290686d5a0988d8806ffe5cc

Authored by Sasha Khapyorsky
Committed by Jaroslav Kysela
1 parent 5f0dccf850

[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 <sashak@smlink.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

sound/pci/intel8x0m.c
... ... @@ -500,6 +500,8 @@
500 500 res = 0xffff;
501 501 }
502 502 }
  503 + if (reg == AC97_GPIO_STATUS)
  504 + iagetword(chip, 0); /* clear semaphore */
503 505 return res;
504 506 }
505 507