ALSA: x86: Use snd_pcm_stop_xrun() for connection / disconnection paths
authorTakashi Iwai <tiwai@suse.de>
Wed, 15 Feb 2017 20:36:38 +0000 (21:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Feb 2017 08:22:42 +0000 (09:22 +0100)
commitaa2b7c0333fc9aeacca60b27fd08448f3fc84ab1
tree6159e0ca5fcc5fd4b2868690b7088ceca59adbc9
parentcb92360be51410b73fe64a9fa9524f5351e3ca82
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: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c