original_kernel/sound/pci
Arjan van de Ven 4b47c971dc es1968: fix sleep-while-holding-lock bug
snd_es1968_ac97_read() calls snd_es1968_ac97_wait() first outside a locked
area, and later, while holding a lock.

snd_es1968_ac97_wait() has a polling loop with a cond_resched() inside it..
which sleeps, so the second call is invalid.

This patch adds a version of the wait function that just pure polls.  While
this is not very elegant in principle, it's very likely the easiest thing to
do here, we already checked if the chip was ready (while yielding) just
before, so it is very unlikely to take a long time here.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Jaroslav Kysela <perex@suse.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-08 18:25:53 -07:00
..
ac97
ali5451
au88x0
ca0106
cs46xx
cs5535audio [ALSA] fix cs5535 section mismatch 2008-01-31 17:30:12 +01:00
echoaudio
emu10k1 [ALSA] emu10k1 - Another EMU0404 Board ID 2008-01-31 17:30:25 +01:00
hda [ALSA] hda-codec - Adapt eeepc p701 mixer for virtual master control 2008-02-29 15:20:08 +01:00
ice1712 [ALSA] sound: ice1712: unused structs 2008-02-29 12:11:25 +01:00
korg1212
mixart
nm256
oxygen [ALSA] oxygen: add owner field 2008-02-29 11:28:16 +01:00
pcxhr
riptide
rme9652 [ALSA] hdsp - Fix section mismatch 2008-02-22 14:20:08 -08:00
trident
vx222
ymfpci
Kconfig [ALSA] add TempoTec HiFier driver 2008-01-31 17:30:15 +01:00
Makefile
ad1889.c
ad1889.h
als300.c
als4000.c
atiixp.c
atiixp_modem.c
azt3328.c
azt3328.h
bt87x.c [ALSA] bt87X: fix freeing of shared interrupt 2008-02-22 14:20:09 -08:00
cmipci.c
cs4281.c
cs5530.c
ens1370.c
ens1371.c
es1938.c [ALSA] es1938 - improve capture hw pointer reads 2008-01-31 17:30:23 +01:00
es1968.c es1968: fix sleep-while-holding-lock bug 2008-04-08 18:25:53 -07:00
fm801.c [ALSA] fm801 - Add mute support for FM-only card with FM801 PCI to tuner bridge 2008-01-31 17:30:14 +01:00
intel8x0.c [ALSA] intel8x0 - Add quirk for Compaq Deskpro EN 2008-02-29 15:21:27 +01:00
intel8x0m.c
maestro3.c
rme32.c
rme96.c
sis7019.c
sis7019.h
sonicvibes.c
via82xx.c
via82xx_modem.c