summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2015-01-25 16:34:29 +0300
committerTakashi Iwai <tiwai@suse.de>2015-01-26 15:53:13 +0300
commit0767e95bb96d7fdddcd590fb809e6975d93aebc5 (patch)
tree06c39d6e7a954c97c2812509dcab3800a955e95f /sound/soc
parent6715f728c8b080ab85db0f93f5d9fa6c7d9e906b (diff)
downloadlinux-0767e95bb96d7fdddcd590fb809e6975d93aebc5.tar.xz
ALSA: seq-dummy: remove deadlock-causing events on close
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> Cc: <stable@vger.kernel.org> Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc')
0 files changed, 0 insertions, 0 deletions