]> 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)
commita98c187b96ca19389730f00a8a373cad5169a211
tree5f83c45b918bed80633bf9b3dbbdc123c3b6bb60
parentff2451c9bd5bc35a3fe9973d5aa144084f378685
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