ALSA: pcm - Add proper state checks to snd_pcm_drain()
authorTakashi Iwai <tiwai@suse.de>
Mon, 21 May 2012 09:59:57 +0000 (11:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 May 2012 10:03:54 +0000 (12:03 +0200)
The handling for some PCM states is missing for snd_pcm_drain().
At least, XRUN streams should be simply dropped to SETUP, and a few
initial invalid states should be rejected.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found