Skip to content

Commit a1f6c35

Browse files
ujfalusiranj063
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>
1 parent 74d4c78 commit a1f6c35

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
@@ -2828,7 +2828,7 @@ static int sof_ipc4_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget
28282828
msg->primary |= SOF_IPC4_MOD_INSTANCE(swidget->instance_id);
28292829

28302830
msg->extension &= ~SOF_IPC4_MOD_EXT_PARAM_SIZE_MASK;
2831-
msg->extension |= ipc_size >> 2;
2831+
msg->extension |= SOF_IPC4_MOD_EXT_PARAM_SIZE(ipc_size >> 2);
28322832

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

0 commit comments

Comments
 (0)