Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

ALSA: x86: Use snd_pcm_stop_xrun() for connection / disconnection paths



This seems more friendly to user-space, as it's notified at least as
an error, instead of forcibly moving the PCM state to SETUP out of
sudden.

Moreover, snd_pcm_stop() needs an extra PCM spinlock I forgot, while
snd_pcm_stop_xrun() takes the spinlock by itself.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b9bacf27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment