Skip to content

Commit 8510978

Browse files
Tang Binbroonie
authored andcommitted
ASoC: topology: Fix incorrect addressing assignments
The variable 'kc' is handled in the function soc_tplg_control_dbytes_create(), and 'kc->private_value' is assigned to 'sbe', so In the function soc_tplg_dbytes_create(), the right 'sbe' should be 'kc.private_value', the same logical error in the function soc_tplg_dmixer_create(), thus fix them. Fixes: 0867278 ("ASoC: topology: Unify code for creating standalone and widget bytes control") Fixes: 4654ca7 ("ASoC: topology: Unify code for creating standalone and widget mixer control") Signed-off-by: Tang Bin <[email protected]> Reviewed-by: Amadeusz Sławiński <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 84e8d59 commit 8510978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/soc-topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ static int soc_tplg_dbytes_create(struct soc_tplg *tplg, size_t size)
889889
return ret;
890890

891891
/* register dynamic object */
892-
sbe = (struct soc_bytes_ext *)&kc.private_value;
892+
sbe = (struct soc_bytes_ext *)kc.private_value;
893893

894894
INIT_LIST_HEAD(&sbe->dobj.list);
895895
sbe->dobj.type = SND_SOC_DOBJ_BYTES;
@@ -923,7 +923,7 @@ static int soc_tplg_dmixer_create(struct soc_tplg *tplg, size_t size)
923923
return ret;
924924

925925
/* register dynamic object */
926-
sm = (struct soc_mixer_control *)&kc.private_value;
926+
sm = (struct soc_mixer_control *)kc.private_value;
927927

928928
INIT_LIST_HEAD(&sm->dobj.list);
929929
sm->dobj.type = SND_SOC_DOBJ_MIXER;

0 commit comments

Comments
 (0)