]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Intel: avs: New volume control operations
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 17 Feb 2025 10:21:11 +0000 (11:21 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2025 16:01:55 +0000 (16:01 +0000)
commitc321a4d705a31a50d7580516422aaa5b853e7602
treefc54fa7d6c39ec79133bdb9c9686825a316463a2
parent10188a25c9b5944c0a912482011b484b7c2e22d4
ASoC: Intel: avs: New volume control operations

To provide multi-channel - more than 2 - capability to volume controls
implement operations that honor the num_channels of a mixer control. As
mc->num_channels can be 0 and is in fact the default behavior, the new
functions decide between ALL_CHANNELS_MASK and individual channels based
on the field value.

To avoid hard-to-review delta when refactoring the code, first implement
the new behavior with follow up changes cleaning things up.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250217102115.3539427-7-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/control.c
sound/soc/intel/avs/control.h
sound/soc/intel/avs/path.c
sound/soc/intel/avs/path.h