Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: ipc4-topology: Use macro to set the EXT_PARAM_SIZE in widget setup

Use the SOF_IPC4_MOD_EXT_PARAM_SIZE() macro to set the param size in the
extension part of the IPC message for clarity.

No Functional change as the PARMA_SIZE offset is at 0.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20241213132110.27800-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Peter Ujfalusi and committed by
Mark Brown
e4b3a845 3ce8df13

+1 -1
+1 -1
sound/soc/sof/ipc4-topology.c
··· 2827 2827 msg->primary |= SOF_IPC4_MOD_INSTANCE(swidget->instance_id); 2828 2828 2829 2829 msg->extension &= ~SOF_IPC4_MOD_EXT_PARAM_SIZE_MASK; 2830 - msg->extension |= ipc_size >> 2; 2830 + msg->extension |= SOF_IPC4_MOD_EXT_PARAM_SIZE(ipc_size >> 2); 2831 2831 2832 2832 msg->extension &= ~SOF_IPC4_MOD_EXT_PPL_ID_MASK; 2833 2833 msg->extension |= SOF_IPC4_MOD_EXT_PPL_ID(pipe_widget->instance_id);