From: Takashi Iwai Date: Mon, 21 May 2012 09:59:57 +0000 (+0200) Subject: ALSA: pcm - Add proper state checks to snd_pcm_drain() X-Git-Tag: v3.5-rc1~118^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f7c39dc557cabdbc932ae83432cc225c480133c;p=pandora-kernel.git ALSA: pcm - Add proper state checks to snd_pcm_drain() 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 --- Reading git-diff-tree failed