linux-stable/sound
Mark Brown 4f669618c9 ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register
commit f061e2be86 upstream.

The WM8904_ADC_TEST_0 register is modified as part of updating the OSR
controls but does not have a cache default, leading to errors when we try
to modify these controls in cache only mode with no prior read:

wm8904 3-001a: ASoC: error at snd_soc_component_update_bits on wm8904.3-001a for register: [0x000000c6] -16

Add a read of the register to probe() to fill the cache and avoid both the
error messages and the misconfiguration of the chip which will result.

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230723-asoc-fix-wm8904-adc-test-read-v1-1-2cdf2edd83fd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 11:57:44 +02:00
..
ac97 ALSA: ac97: fix PM reference leak in ac97_bus_remove() 2021-07-20 16:05:40 +02:00
aoa ALSA: aoa: Fix I2S device accounting 2022-11-03 23:57:53 +09:00
arm amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
atmel
core ALSA: jack: Fix mutex call in snd_jack_report() 2023-07-27 08:44:10 +02:00
drivers ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt 2023-01-14 10:15:38 +01:00
firewire ALSA: firewire-digi00x: prevent potential use after free 2023-05-30 12:57:51 +01:00
hda ALSA: hda: Fix unhandled register update during auto-suspend period 2023-05-30 12:57:56 +01:00
i2c ALSA: i2c/cs8427: fix iec958 mixer control deactivation 2023-04-20 12:10:24 +02:00
isa ALSA: wavefront: Proper check of get_user() error 2022-05-25 09:17:55 +02:00
mips
oss sound/oss/dmasound: fix 'dmasound_setup' defined but not used 2023-05-17 11:48:08 +02:00
parisc
pci ALSA: hda/relatek: Enable Mute LED on HP 250 G8 2023-08-11 11:57:42 +02:00
pcmcia
ppc ALSA: ppc: fix error return code in snd_pmac_probe() 2021-07-20 16:05:43 +02:00
sh
soc ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register 2023-08-11 11:57:44 +02:00
sparc
spi ALSA: spi: Add check for clk_enable() 2022-04-08 14:40:08 +02:00
synth ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control() 2023-02-15 17:22:22 +01:00
usb ALSA: usb-audio: Add a sample rate workaround for Line6 Pod Go 2023-05-30 12:57:53 +01:00
x86 ALSA: intel_hdmi: Fix reference to PCM buffer address 2022-03-08 19:09:31 +01:00
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c