aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2025-02-17 11:21:07 +0100
committerMark Brown <broonie@kernel.org>2025-02-24 16:01:52 +0000
commit81eb3a2bd273b84fa9808e6b13b533f9c55e16eb (patch)
tree775ce29a7f92b4b3c280fc6a46599ed0ede40aa1 /include/sound
parent758beab0252912395efb79f34095c5ae7e3e58b1 (diff)
downloadlinux-81eb3a2bd273b84fa9808e6b13b533f9c55e16eb.tar.gz
ASoC: topology: Save num_channels value for mixer controls
To provide minimal support for multi-channel kcontrols i.e.: more than stereo configuration, store the number of channels specified within the SectionControlMixer. The field is part of the topology standard, currently skipped by the ASoC core. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/20250217102115.3539427-3-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 644cfe26022edc..6bb2fca044c5e4 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1254,6 +1254,7 @@ struct soc_mixer_control {
int min, max, platform_max;
int reg, rreg;
unsigned int shift, rshift;
+ u32 num_channels;
unsigned int sign_bit;
unsigned int invert:1;
unsigned int autodisable:1;