Skip to content

Commit e4b3a84

Browse files
ujfalusibroonie
authored andcommitted
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>
1 parent 3ce8df1 commit e4b3a84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ static int sof_ipc4_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget
28272827
msg->primary |= SOF_IPC4_MOD_INSTANCE(swidget->instance_id);
28282828

28292829
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);
28312831

28322832
msg->extension &= ~SOF_IPC4_MOD_EXT_PPL_ID_MASK;
28332833
msg->extension |= SOF_IPC4_MOD_EXT_PPL_ID(pipe_widget->instance_id);

0 commit comments

Comments
 (0)