]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: SOF: ipc4-control: Add support for ALSA switch control
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 19 Sep 2023 10:31:14 +0000 (13:31 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2023 12:48:56 +0000 (13:48 +0100)
commit4a2fd607b7ca6128ee3532161505da7624197f55
treeeb6298a47502f131cdcf82b98bd9333369818324
parent060a07cd9bc69eba2da33ed96b1fa69ead60bab1
ASoC: SOF: ipc4-control: Add support for ALSA switch control

Volume controls with a max value of 1 are switches.
Switch controls use generic param_id and a generic struct where the data
is passed to the firmware.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230919103115.30783-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-control.c
sound/soc/sof/ipc4-topology.c