mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
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:0867278200
("ASoC: topology: Unify code for creating standalone and widget bytes control") Fixes:4654ca7cc8
("ASoC: topology: Unify code for creating standalone and widget mixer control") Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://patch.msgid.link/20240914081608.3514-1-tangbin@cmss.chinamobile.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
84e8d59651
commit
8510978054
@ -889,7 +889,7 @@ static int soc_tplg_dbytes_create(struct soc_tplg *tplg, size_t size)
|
||||
return ret;
|
||||
|
||||
/* register dynamic object */
|
||||
sbe = (struct soc_bytes_ext *)&kc.private_value;
|
||||
sbe = (struct soc_bytes_ext *)kc.private_value;
|
||||
|
||||
INIT_LIST_HEAD(&sbe->dobj.list);
|
||||
sbe->dobj.type = SND_SOC_DOBJ_BYTES;
|
||||
@ -923,7 +923,7 @@ static int soc_tplg_dmixer_create(struct soc_tplg *tplg, size_t size)
|
||||
return ret;
|
||||
|
||||
/* register dynamic object */
|
||||
sm = (struct soc_mixer_control *)&kc.private_value;
|
||||
sm = (struct soc_mixer_control *)kc.private_value;
|
||||
|
||||
INIT_LIST_HEAD(&sm->dobj.list);
|
||||
sm->dobj.type = SND_SOC_DOBJ_MIXER;
|
||||
|
Loading…
Reference in New Issue
Block a user