]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Allow dropping stream directly after resume
authorTakashi Iwai <tiwai@suse.de>
Tue, 24 May 2016 13:08:31 +0000 (15:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Jun 2017 05:43:52 +0000 (07:43 +0200)
commitafa7ee515f1922ff58bc0dc86253bbec3bbb7f83
tree348558ed57d9e59d581bb9af5b27eb98c38dd3b5
parentaa1719f538aac82640f571c78965d62a2782c75e
ALSA: pcm: Allow dropping stream directly after resume

So far, the PCM core refuses DROP ioctl when the stream in the
suspended state.  This was basically to avoid the invalid state change
*during* the suspend.  But since we protect the power change globally
in the common PCM ioctl caller side, it's guaranteed that
snd_pcm_drop() is called at the right power state.  So we can assume
that the drop of stream is safe immediately after SUSPENDED state.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c