linux/sound/x86
Takashi Iwai 313d9f28c1 ALSA: x86: Properly manage PCM substream lifetype
The PCM substream is referred not only in the PCM callbacks but also
in the irq handler and in the hotplug/unplug codes.  The latter code
paths don't take the PCM lock, thus the PCM may be released
unexpectedly while calling PCM helper functions or accessing
pcm->runtime fields.

This patch implements a simple refcount to assure the PCM substream
accessibility while the other codes are accessing.  It needed some
code refactoring in the relevant functions for avoiding the doubly
spinlocks.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-02-03 17:36:13 +01:00
..
intel_hdmi_audio.c ALSA: x86: Properly manage PCM substream lifetype 2017-02-03 17:36:13 +01:00
intel_hdmi_audio.h ALSA: x86: Properly manage PCM substream lifetype 2017-02-03 17:36:13 +01:00
intel_hdmi_lpe_audio.h ALSA: x86: Drop redundant had_stream_pvt 2017-02-03 17:35:42 +01:00
Kconfig ALSA: add Intel HDMI LPE audio driver for BYT/CHT-T 2017-01-25 14:23:46 +01:00
Makefile ALSA: x86: Fold intel_hdmi_audio_if.c into main file 2017-02-03 17:31:54 +01:00