Skip to content

Commit ecdb10d

Browse files
Yang Yingliangbroonie
authored andcommitted
ASoC: SOF: ipc4-topology: fix wrong use of sizeof in sof_ipc4_widget_setup_comp_src()
It should be size of the struct sof_ipc4_src, not data pointer pass to sof_update_ipc_object(). Fixes: b85f4fc ("ASoC: SOF: add ipc4 SRC module support") Signed-off-by: Yang Yingliang <[email protected]> Acked-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c6e14bb commit ecdb10d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sof/ipc4-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ static int sof_ipc4_widget_setup_comp_src(struct snd_sof_widget *swidget)
771771
goto err;
772772

773773
ret = sof_update_ipc_object(scomp, src, SOF_SRC_TOKENS, swidget->tuples,
774-
swidget->num_tuples, sizeof(src), 1);
774+
swidget->num_tuples, sizeof(*src), 1);
775775
if (ret) {
776776
dev_err(scomp->dev, "Parsing SRC tokens failed\n");
777777
goto err;

0 commit comments

Comments
 (0)