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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 9 May 2015 22:16:20 +0000 (23:16 +0100)
commit535939674b0534168550344ad052587cc076de69
treeadcb11b739520271bf1e9ca9464522e98a414848
parent974c554a808b30effcc2a2b235b3bd2a75f173ce
ALSA: pcm: Don't leave PREPARED state after draining

commit 70372a7566b5e552dbe48abdac08c275081d8558 upstream.

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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/core/pcm_native.c