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)
commit70372a7566b5e552dbe48abdac08c275081d8558
tree5f83c45b918bed80633bf9b3dbbdc123c3b6bb60
parentdec84316dd53c90e93b4ee849483bd4bd1e9a585
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