]> git.itanic.dy.fi Git - linux-stable/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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:27 +0000 (17:31 +0100)
commitf9b3a7f0ee758aeacb05ce3dd42dc9675e14b5e7
treea5a99371a282291cc91204caf57dff6a01544e3d
parentd7e3ae47c441894b11dce376ff8d110780872d0d
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: Jiri Slaby <jslaby@suse.cz>
sound/core/pcm_native.c