]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:18 +0000 (11:40 +0800)
commit7ea0e7edc3045ee48b962e2fe5444f325f3d8c47
treee9ce880c067271b135628d8872e2e6b63698e9aa
parent1df722f5eca4d75256f4bee1c495f14f0c10892f
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: Zefan Li <lizefan@huawei.com>
sound/core/pcm_native.c