Skip to content
Commit e647f5a5 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: pcm: Use snd_pcm_stop_xrun() for xrun injection



Basically the xrun injection routine can simply call the standard
helper snd_pcm_stop_xrun(), but with one exception: it may be called
even when the stream is closed.

Make snd_pcm_stop_xrun() more robust and check the NULL runtime state,
and simplify xrun injection code by calling it.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9cd641ed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment