]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Don't leave PREPARED state after draining
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Dec 2014 09:02:41 +0000 (10:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Feb 2015 15:48:18 +0000 (16:48 +0100)
commit7ffd436a5e6f7a94550da7385b83c2c4dcb19c30
tree5f83c45b918bed80633bf9b3dbbdc123c3b6bb60
parent8e43d8297466a2e7baf922f315ac516935bd4369
ALSA: pcm: Don't leave PREPARED state after draining

When a PCM draining is performed to an empty stream that has been
already in PREPARED state, the current code just ignores and leaves as
it is, although the drain is supposed to set all such streams to SETUP
state.  This patch covers that overlooked case.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c