ASoC: SOF: ipc4-control: Support for Switch and Enum
authorMark Brown <broonie@kernel.org>
Tue, 19 Sep 2023 17:11:02 +0000 (18:11 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2023 17:11:02 +0000 (18:11 +0100)
commit16bb22098f0a44fed8192c4b16fede95876fdc19
tree9cba3eab59ee60fe46a85e7437fd63e2d89ce69e
parentcc676c0df591a81de662bb28a705fe6ed1331024
parent07a866a41982c896dc46476f57d209a200602946
ASoC: SOF: ipc4-control: Support for Switch and Enum

Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:

Currently IPC4 has no notion of a switch or enum type of control which
is a generic concept in ALSA.

The generic support for these control types will be as follows:

- large config is used to send the channel-value par array
- param_id of a SWITCH type is 200
- param_id of an ENUM type is 201

Each module need to support a switch or/and enum must handle these
universal param_ids.  The message payload is described by struct
sof_ipc4_control_msg_payload.