Skip to content

Commit

Permalink
ASoC: SOF: ipc4-topology: fix wrong sizeof argument
Browse files Browse the repository at this point in the history
available_fmt is a pointer.

Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao committed Sep 7, 2023
1 parent 9ac8ea5 commit 132b43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sof/ipc4-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static int sof_ipc4_get_audio_fmt(struct snd_soc_component *scomp,

ret = sof_update_ipc_object(scomp, available_fmt,
SOF_AUDIO_FMT_NUM_TOKENS, swidget->tuples,
swidget->num_tuples, sizeof(available_fmt), 1);
swidget->num_tuples, sizeof(*available_fmt), 1);
if (ret) {
dev_err(scomp->dev, "Failed to parse audio format token count\n");
return ret;
Expand Down

0 comments on commit 132b43f

Please sign in to comment.