ASoC: SOF: ipc4-control: Add support for bytes control get and put
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 13 Mar 2023 11:03:44 +0000 (13:03 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2023 14:06:54 +0000 (14:06 +0000)
commita062c8899fede2ab5660a817e9b602d3fa280a99
treeaa100e8568c73db726987df1eeb606dedd7e6c72
parenta382082ff74b036944cbc5b6ad29b65f633acd3a
ASoC: SOF: ipc4-control: Add support for bytes control get and put

Add support for bytes control by implementing bytes_get/put and
bytes_ext_get/put and blobs with either module init instance or
large config type.

For module init instance type the put will only update the stored
configuration blob and it is going to be taken into use next time the
module is (re-)initialized.

Large config type of blobs are sent to the firmware whenever the DSP is
powered up.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230313110344.16644-8-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-control.c