ASoC: SOF: ipc4-topology: Allow selective update in sof_ipc4_update_hw_params
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 3 May 2024 13:32:52 +0000 (08:32 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 5 May 2024 14:45:37 +0000 (23:45 +0900)
commitb679302526d637700e998da85ed1e06d8f7d3674
tree8cfe10253c2e37748b4ff57b1ce6033c777f54d9
parent5a7543d0ca01d68d992f480d151efd693807e0ce
ASoC: SOF: ipc4-topology: Allow selective update in sof_ipc4_update_hw_params

Add a bitmask parameter to sof_ipc4_update_hw_params() to be able to select
the param to be updated.
This feature can be used when not all params should be updated, for example
if caller only wants to update the format in the params, leaving the
channels and rates untouched.

Reviewed-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240503133253.108201-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c