diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-11-07 16:08:28 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-09 17:20:40 (GMT) |
commit | 1fb8510cdb5b7befe8a59f533c7fc12ef0dac73e (patch) | |
tree | b44569425ea7683d02893cfd145081a11d7677f1 /kernel/configs.c | |
parent | 31584ed18c073176a7ad96ddbfd09765e21e813d (diff) | |
download | linux-1fb8510cdb5b7befe8a59f533c7fc12ef0dac73e.tar.xz |
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 <tiwai@suse.de>
Diffstat (limited to 'kernel/configs.c')
0 files changed, 0 insertions, 0 deletions