Home
last modified time | relevance | path

Searched hist:"313 d9f28c1d5e0254ca16f2df0f1b737e30c0993" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/sound/x86/
H A Dintel_hdmi_audio.hdiff 313d9f28c1d5e0254ca16f2df0f1b737e30c0993 Thu Feb 02 06:00:12 CST 2017 Takashi Iwai <tiwai@suse.de> 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>
H A Dintel_hdmi_audio.cdiff 313d9f28c1d5e0254ca16f2df0f1b737e30c0993 Thu Feb 02 06:00:12 CST 2017 Takashi Iwai <tiwai@suse.de> 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>