android_kernel_google_msm/sound/core
Clemens Ladisch 612dcf5317 ALSA: seq-dummy: remove deadlock-causing events on close
commit 0767e95bb96d7fdddcd590fb809e6975d93aebc5 upstream.

When the last subscriber to a "Through" port has been removed, the
subscribed destination ports might still be active, so it would be
wrong to send "all sounds off" and "reset controller" events to them.
The proper place for such a shutdown would be the closing of the actual
MIDI port (and close_substream() in rawmidi.c already can do this).

This also fixes a deadlock when dummy_unuse() tries to send events to
its own port that is already locked because it is being freed.

Reported-by: Peter Billam <peter@www.pjb.com.au>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-04-14 17:33:56 +08:00
..
oss
seq ALSA: seq-dummy: remove deadlock-causing events on close 2015-04-14 17:33:56 +08:00
compress_offload.c ALSA: compress: Pass through return value of open ops callback 2014-03-30 21:40:29 -07:00
control.c ALSA: control: Make sure that id->index does not overflow 2014-06-26 15:10:29 -04:00
control_compat.c
ctljack.c
device.c
hrtimer.c
hwdep.c
hwdep_compat.c
info.c
info_oss.c
init.c ALSA: control: Protect user controls against concurrent access 2014-06-26 15:10:29 -04:00
isadma.c
jack.c
Kconfig
Makefile
memalloc.c
memory.c
misc.c
pcm.c ALSA: fix oops in snd_pcm_info() caused by ASoC DPCM 2013-11-13 12:01:49 +09:00
pcm_compat.c ALSA: pcm: Zero-clear reserved fields of PCM status ioctl in compat mode 2015-02-02 17:05:06 +08:00
pcm_lib.c ALSA: pcm: fix fifo_size frame calculation 2014-12-01 18:02:36 +08:00
pcm_memory.c
pcm_misc.c
pcm_native.c ALSA: pcm: use the same dma mmap codepath both for arm and arm64 2015-02-02 17:04:54 +08:00
pcm_timer.c
rawmidi.c
rawmidi_compat.c
rtctimer.c
sgbuf.c
sound.c
sound_oss.c
timer.c
timer_compat.c
vmaster.c ALSA: vmaster: Fix slave change notification 2013-03-14 11:29:50 -07:00