Skip to content

ASoC: Intel: avs: Mute and multi-channel controls support

Cezary Rojewski linux-sound 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ASoC: topology: Create kcontrols based on their typesound/soc/soc-topology.c+14 -400 replies
2/10ASoC: topology: Save num_channels value for mixer controlsinclude/sound/soc.h sound/soc/soc-topology.c+2 -00 replies
3/10ASoC: Intel: avs: Make PEAKVOL configurable from topologyinclude/uapi/sound/intel/avs/tokens.h sound/soc/intel/avs/path.c sound/soc/intel/avs/topology.c +1 more+29 -20 replies
4/10ASoC: Intel: avs: Add volume control for GAIN modulesound/soc/intel/avs/control.c+5 -20 replies
5/10ASoC: Intel: avs: Update VOLUME and add MUTE IPCssound/soc/intel/avs/messages.c sound/soc/intel/avs/messages.h+126 -90 replies
6/10ASoC: Intel: avs: New volume control operationssound/soc/intel/avs/control.c sound/soc/intel/avs/control.h sound/soc/intel/avs/path.c +1 more+128 -00 replies
7/10ASoC: Intel: avs: Move to the new control operationssound/soc/intel/avs/control.c sound/soc/intel/avs/control.h sound/soc/intel/avs/path.c +1 more+6 -770 replies
8/10ASoC: Intel: avs: Add support for mute for PEAKVOL and GAINsound/soc/intel/avs/control.c sound/soc/intel/avs/control.h sound/soc/intel/avs/path.c +2 more+134 -10 replies
9/10ASoC: Intel: avs: Honor the invert flag for mixer controlssound/soc/intel/avs/topology.c+12 -50 replies
10/10ASoC: Intel: avs: Support multi-channel PEAKVOL instantiationsound/soc/intel/avs/path.c+20 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] ASoC: Intel: avs: Mute and multi-channel controls support

Note: the patchset DOES provide functional changes to the ASoC framework.

Current kcontrols loaded with ASoC topology allow for mono or stereo configuration only. To expand this and provide support to up to 8 channels, first address the limitations found within the ASoC core and then update the user (avs-driver) so that it can utilize these new functionality. The 8 channels max stems from SND_SOC_TPLG_MAX_CHAN constant which is part of UAPI - asoc.h.

For the ASoC side, two changes are made:

- drop the ambiguous usage of ops.info when determining the kcontrol type
- save the num_channels value which is already part of the ALSA-topology but is currently skipped by ASoC core when loading mixer controls

For the avs-driver side, merge PEAKVOL IPCs as there is basically no difference between the handles and then do the same with the control operations. The merge for the latter is done is two steps: first provide new implementation which honors the multi-channel controls and then move to it while dropping the now-duplicated code.

Amadeusz Sławiński (2):
ASoC: Intel: avs: Add volume control for GAIN module
ASoC: Intel: avs: Add support for mute for PEAKVOL and GAIN

Cezary Rojewski (8):
ASoC: topology: Create kcontrols based on their type
ASoC: topology: Save num_channels value for mixer controls
ASoC: Intel: avs: Make PEAKVOL configurable from topology
ASoC: Intel: avs: Update VOLUME and add MUTE IPCs
ASoC: Intel: avs: New volume control operations
ASoC: Intel: avs: Move to the new control operations
ASoC: Intel: avs: Honor the invert flag for mixer controls
ASoC: Intel: avs: Support multi-channel PEAKVOL instantiation

 include/sound/soc.h                   |   1 +
 include/uapi/sound/intel/avs/tokens.h |   4 +
 sound/soc/intel/avs/control.c         | 180 ++++++++++++++++++++------
 sound/soc/intel/avs/control.h         |  12 +-
 sound/soc/intel/avs/messages.c        | 111 +++++++++++++++-
 sound/soc/intel/avs/messages.h        |  24 +++-
 sound/soc/intel/avs/path.c            | 108 ++++++++++++++--
 sound/soc/intel/avs/path.h            |   5 +
 sound/soc/intel/avs/topology.c        |  47 ++++++-
 sound/soc/intel/avs/topology.h        |   5 +
 sound/soc/soc-topology.c              |  55 +++-----
 11 files changed, 440 insertions(+), 112 deletions(-)
Signature · 1 line
2.25.1