ASoC: SOF: ipc4-topology: fix wrong sizeof argument
Subsystems (3)
Peter Ujfalusi
maintainerPATCH 1/1 ASoC: SOF: ipc4-topology: fix wrong sizeof argument
From: Bard Liao <[email protected]>
available_fmt is a pointer.
Fixes 4fdef47a44d6 ("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]>
--- sound/soc/sof/ipc4-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sof/ipc4-topology.c +1 -1
@@ -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;
Signature · 1 line
2.42.0
Péter Ujfalusi
maintainerQuoted 8 lines · Peter Ujfalusi
From: Bard Liao <[email protected]>
available_fmtis a pointer.Fixes 4fdef47a44d6 ("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]>
My SoB is missing, re-sending it
Quoted 17 lines
--- sound/soc/sof/ipc4-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/sof/ipc4-topology.c +1
-1@@ -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;
Signature · 1 line
Péter