From: Takashi Iwai Date: Fri, 7 Nov 2014 16:08:28 +0000 (+0100) Subject: ALSA: pcm: Add snd_pcm_stop_xrun() helper X-Git-Tag: omap-for-v3.19/fixes-rc1~126^2~21^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fb8510cdb5b7befe8a59f533c7fc12ef0dac73e;p=pandora-kernel.git ALSA: pcm: Add snd_pcm_stop_xrun() helper Add a new helper function snd_pcm_stop_xrun() to the standard sequnce lock/snd_pcm_stop(XRUN)/unlock by a single call, and replace the existing open codes with this helper. The function checks the PCM running state to prevent setting the wrong state, too, for more safety. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed