]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: Factor out helper to process Control defaults
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 20 Nov 2025 15:30:17 +0000 (15:30 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 20 Nov 2025 17:22:56 +0000 (17:22 +0000)
commit222cbe172e5f7de130cc9c3c85f8f33d51c131bc
tree78bd9c23a88285cafb66a3ec8f20d14add4ba7e0
parentfb62da31fad29fe3c9844ba217b9bc99820d4622
ASoC: SDCA: Factor out helper to process Control defaults

The indentation of the loop processing writing out SDCA Control default
values is getting a bit large. Reduce indentation and make adding more
functionality easier by factoring out the Control handling into a helper
function.

Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tested-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20251120153023.2105663-9-ckeepax@opensource.cirrus.com
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_regmap.c