Skip to content
Snippets Groups Projects
Commit 1fb8510c authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 31584ed1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment