linux/sound/soc/sdca
Charles Keepax 81190b2e9d ASoC: SDCA: Handle volatile controls correctly
[ Upstream commit 9fad74b79e ]

There are very few volatile controls in SDCA that are exported
as ALSA controls, typically Detected Mode is the only common
one. However, the current code does not resume the device when
these ALSA controls are accessed, which will result in the
read/write failing.

Add a new wrapper specifically for volatile controls that will do
the required pm_runtime operations before accessing the register.

Fixes: c3ca24e3fc ("ASoC: SDCA: Create ALSA controls from DisCo")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260204125944.1134011-3-ckeepax@opensource.cirrus.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:15 -08:00
..
Kconfig ASoC: SDCA: Kconfig/Makefile fixups 2025-07-13 22:36:39 +01:00
Makefile ASoC: SDCA: Pull HID and IRQ into the primary SDCA module 2025-07-13 22:36:40 +01:00
sdca_asoc.c ASoC: SDCA: Handle volatile controls correctly 2026-02-26 14:59:15 -08:00
sdca_device.c ASoC: SDCA: Add quirk for incorrect function types for 3 systems 2025-09-02 10:50:29 +01:00
sdca_functions.c ASoC: SDCA: Force some SDCA Controls to be volatile 2026-02-26 14:59:15 -08:00
sdca_hid.c ASoC: SDCA: Fix implicit cast from le16 2025-07-22 15:34:08 +01:00
sdca_interrupts.c ASoC: SDCA: Fix return value in detected_mode_handler() 2025-09-04 12:53:06 +01:00
sdca_regmap.c ASoC: SDCA: Force some SDCA Controls to be volatile 2026-02-26 14:59:15 -08:00