Skip to content

Commit 6ba59c0

Browse files
bardliaobroonie
authored andcommitted
ASoC: SOF: ipc4-topology: fix wrong sizeof argument
available_fmt is a pointer. Fixes: 4fdef47 ("ASoC: SOF: ipc4-topology: Add new tokens for input/output pin format count") Signed-off-by: Bard Liao <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fac58ba commit 6ba59c0

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
@@ -231,7 +231,7 @@ static int sof_ipc4_get_audio_fmt(struct snd_soc_component *scomp,
231231

232232
ret = sof_update_ipc_object(scomp, available_fmt,
233233
SOF_AUDIO_FMT_NUM_TOKENS, swidget->tuples,
234-
swidget->num_tuples, sizeof(available_fmt), 1);
234+
swidget->num_tuples, sizeof(*available_fmt), 1);
235235
if (ret) {
236236
dev_err(scomp->dev, "Failed to parse audio format token count\n");
237237
return ret;

0 commit comments

Comments
 (0)