]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: Handle volatile controls correctly
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 4 Feb 2026 12:59:39 +0000 (12:59 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 4 Feb 2026 14:10:47 +0000 (14:10 +0000)
commit9fad74b79e5ff353fe156c4b685cceffa5afdb1d
tree6b8b1e8310e3f46f5b63e9120b97048757af74a2
parentb27b57f85fe3f0eca479556ac55bc9cbd1a5685a
ASoC: SDCA: Handle volatile controls correctly

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: c3ca24e3fcb6 ("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>
sound/soc/sdca/sdca_asoc.c