ALSA: pcm: Don't leave PREPARED state after draining

commit 70372a7566 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: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Takashi Iwai 2014-12-18 10:02:41 +01:00 • committed by Luis Henriques
commit 3f89be21f1