mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
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>
This commit is contained in:
parent
3ce8df13f6
commit
e4b3a84564
|
|
@ -2827,7 +2827,7 @@ static int sof_ipc4_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget
|
|||
msg->primary |= SOF_IPC4_MOD_INSTANCE(swidget->instance_id);
|
||||
|
||||
msg->extension &= ~SOF_IPC4_MOD_EXT_PARAM_SIZE_MASK;
|
||||
msg->extension |= ipc_size >> 2;
|
||||
msg->extension |= SOF_IPC4_MOD_EXT_PARAM_SIZE(ipc_size >> 2);
|
||||
|
||||
msg->extension &= ~SOF_IPC4_MOD_EXT_PPL_ID_MASK;
|
||||
msg->extension |= SOF_IPC4_MOD_EXT_PPL_ID(pipe_widget->instance_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user