diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-10-11 11:42:00 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-10-18 08:05:46 +0200 |
commit | 6ca73de7ebc5dac358551633e0c69ab6b5007baa (patch) | |
tree | 4e8b68dbeec41bd449750b60c25bb66486c17c96 /sound/drivers | |
parent | 8b645e4a40dd490b9426670fffe9bb9e2878c3fd (diff) |
ALSA: pcm: Forcibly stop at disconnect callback
So far we assumed that each driver implements the hotplug PCM handling
properly, e.g. dealing with the pending PCM stream at disconnect
callback. But most codes don't care, and it eventually leaves the PCM
stream inconsistent state when an abrupt disconnection like sysfs
unbind happens.
This patch is simple but a big-hammer solution: invoke snd_pcm_stop()
at the common PCM disconnect callback always when the stream is
running.
Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers')
0 files changed, 0 insertions, 0 deletions