Pierre-Louis Bossart
293385739d
ALSA: hda: hdac_ext_stream: fix potential locking issues
...
commit 868ddfcef31ff93ea8961b2e81ea7fe12f6f144b upstream.
The code for hdac_ext_stream seems inherited from hdac_stream, and
similar locking issues are present: the use of the bus->reg_lock
spinlock is inconsistent, with only writes to specific fields being
protected.
Apply similar fix as in hdac_stream by protecting all accesses to
'link_locked' and 'decoupled' fields, with a new helper
snd_hdac_ext_stream_decouple_locked() added to simplify code
changes.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210924192417.169243-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-26 10:47:23 +01:00
..
ac97
sof
Merge branch 'asoc-5.4' into asoc-next
2019-09-09 14:55:20 +01:00
ac97_codec.h
aci.h
ad1816a.h
ad1843.h
adau1373.h
aess.h
ak4xxx-adda.h
ak4113.h
ak4114.h
ak4117.h
ak4531_codec.h
ak4641.h
alc5623.h
asequencer.h
asound.h
asoundef.h
compress_driver.h
ALSA: compress: fix partial_drain completion state
2020-07-16 08:16:39 +02:00
control.h
core.h
cs35l33.h
cs35l34.h
cs35l35.h
cs35l36.h
cs42l52.h
cs42l56.h
cs42l73.h
cs4231-regs.h
cs4271.h
cs8403.h
cs8427.h
da7213.h
da7218.h
da7219-aad.h
da7219.h
da9055.h
designware_i2s.h
dmaengine_pcm.h
emu10k1.h
emu10k1_synth.h
emu8000.h
emu8000_reg.h
emux_legacy.h
emux_synth.h
es1688.h
gus.h
hda_chmap.h
hda_codec.h
ALSA: hda: fix jack detection with Realtek codecs when in D3
2020-10-29 09:57:25 +01:00
hda_component.h
hda_hwdep.h
hda_i915.h
hda_register.h
ALSA: hdac: clear link output stream mapping
2019-10-07 03:58:48 +02:00
hda_regmap.h
ALSA: hda: Manage concurrent reg access more properly
2020-05-27 17:46:37 +02:00
hda_verbs.h
hdaudio.h
ALSA: hda: Manage concurrent reg access more properly
2020-05-27 17:46:37 +02:00
hdaudio_ext.h
ALSA: hda: hdac_ext_stream: fix potential locking issues
2021-11-26 10:47:23 +01:00
hdmi-codec.h
ASoC: hdmi-codec: Add an op to set callback function for plug event
2019-09-09 14:50:03 +01:00
hwdep.h
i2c.h
info.h
initval.h
intel-nhlt.h
ALSA: hda: intel-nhlt: verify config type
2021-03-09 11:09:39 +01:00
jack.h
l3.h
madera-pdata.h
max9768.h
max98088.h
max98090.h
max98095.h
memalloc.h
minors.h
mixer_oss.h
mpu401.h
omap-hdmi-audio.h
opl3.h
opl4.h
pcm-indirect.h
pcm.h
ALSA: pcm: add support for 352.8KHz and 384KHz sample rate
2019-08-28 11:53:49 +01:00
pcm_drm_eld.h
pcm_iec958.h
pcm_oss.h
pcm_params.h
pt2258.h
pxa2xx-lib.h
rawmidi.h
ALSA: rawmidi: Fix racy buffer resize under concurrent accesses
2020-05-20 08:20:30 +02:00
rt286.h
rt298.h
rt5514.h
rt5645.h
rt5659.h
rt5660.h
rt5663.h
rt5665.h
rt5668.h
rt5670.h
ASoC: rt5670: Add new gpio1_is_ext_spk_en quirk and enable it on the Lenovo Miix 2 10
2020-07-29 10:18:45 +02:00
rt5682.h
s3c24xx_uda134x.h
sb.h
sb16_csp.h
seq_device.h
seq_kernel.h
seq_midi_emul.h
seq_midi_event.h
seq_oss.h
seq_oss_legacy.h
seq_virmidi.h
sh_dac_audio.h
sh_fsi.h
simple_card.h
simple_card_utils.h
ASoC: simple_card_utils.h: Add missing include
2020-01-17 19:48:33 +01:00
snd_wavefront.h
soc-acpi-intel-match.h
ASoC: Intel: common: add ACPI matching tables for EHL
2019-08-15 18:13:21 +01:00
soc-acpi.h
soc-component.h
ASoC: soc-component: add snd_soc_pcm_component_pcm_free()
2019-08-05 16:27:16 +01:00
soc-dai.h
ASoC: soc-dai: use bit field for bus_control
2019-08-22 18:30:26 +01:00
soc-dapm.h
Merge branch 'asoc-5.4' into asoc-next
2019-09-09 14:55:20 +01:00
soc-dpcm.h
ASoC: soc-core: define soc_dpcm_debugfs_add() for non CONFIG_DEBUG_FS
2019-08-08 20:56:57 +01:00
soc-topology.h
soc.h
ASoC: soc-core: disable route checks for legacy devices
2020-05-02 08:49:01 +02:00
sof.h
soundfont.h
spear_dma.h
spear_spdif.h
sta32x.h
sta350.h
tas2552-plat.h
tas5086.h
tea6330t.h
timer.h
tlv.h
tlv320aic3x.h
tlv320aic32x4.h
tlv320dac33-plat.h
tpa6130a2-plat.h
uda134x.h
uda1380.h
util_mem.h
vx_core.h
wavefront.h
wm0010.h
wm1250-ev1.h
wm2000.h
wm2200.h
wm5100.h
wm8903.h
wm8904.h
wm8955.h
wm8960.h
wm8962.h
wm8993.h
wm8996.h
wm9081.h
wm9090.h
wss.h