linux/sound
Takashi Iwai bcab3a6e64 ALSA: pcm: Fix power lock unbalance via OSS emulation
PCM OSS emulation issues the drain ioctl without power lock.  It used
to work in the earlier kernels as the power lock was taken inside
snd_pcm_drain() itself.  But since 68b4acd322 ("ALSA: pcm: Apply
power lock globally to common ioctls"), the power lock is taken
outside the function.  Due to that change, the call via OSS emulation
leads to the unbalanced power lock, thus it deadlocks.

As a quick fix, just take the power lock before snd_pcm_drain() call
for OSS emulation path.  A better cleanup will follow later.

Fixes: 68b4acd322 ("ALSA: pcm: Apply power lock globally to common ioctls")
Reported-and-tested-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-08-30 15:10:12 +02:00
..
aoa
arm
atmel ALSA: atmel: ac97c: fix error return code in atmel_ac97c_probe() 2017-07-01 08:03:34 +02:00
core ALSA: pcm: Fix power lock unbalance via OSS emulation 2017-08-30 15:10:12 +02:00
drivers ALSA: opl4: Move inline before return type 2017-07-06 09:24:17 +02:00
firewire ALSA: firewire-motu: destroy stream data surely at failure of card initialization 2017-08-20 09:40:45 +02:00
hda
i2c
isa sound fixes for 4.13-rc1 2017-07-14 12:44:00 -07:00
mips
oss
parisc
pci ALSA: hda - Add stereo mic quirk for Lenovo G50-70 (17aa:3978) 2017-08-23 09:30:17 +02:00
pcmcia
ppc
sh
soc ASoC: rt5677: Reintroduce I2C device IDs 2017-08-24 18:04:29 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Add delay quirk for H650e/Jabra 550a USB headsets 2017-08-22 11:15:15 +02:00
x86 main drm pull for v4.13 2017-07-09 18:48:37 -07:00
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c