Skip to content

Commit

Permalink
[ALSA] Fix 'semaphore is not ready' problem with snd-intel8x0m
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sasha Khapyorsky authored and Jaroslav Kysela committed May 29, 2005
1 parent 5f0dccf commit 2c56c47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/intel8x0m.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2c56c47

Please sign in to comment.