Skip to content

Commit e9ca3db

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: avs: Fix init-config parsing
When parsing init configs correct token should be looked up. Fixes: 1b4217e ("ASoC: Intel: avs: Add topology parsing support for initial config") Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/20250109122216.3667847-5-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent cf4d742 commit e9ca3db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/intel/avs/topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ avs_tplg_path_template_create(struct snd_soc_component *comp, struct avs_tplg *o
14661466

14671467
static const struct avs_tplg_token_parser mod_init_config_parsers[] = {
14681468
{
1469-
.token = AVS_TKN_MOD_INIT_CONFIG_ID_U32,
1469+
.token = AVS_TKN_INIT_CONFIG_ID_U32,
14701470
.type = SND_SOC_TPLG_TUPLE_TYPE_WORD,
14711471
.offset = offsetof(struct avs_tplg_init_config, id),
14721472
.parse = avs_parse_word_token,
@@ -1519,7 +1519,7 @@ static int avs_tplg_parse_initial_configs(struct snd_soc_component *comp,
15191519
esize = le32_to_cpu(tuples->size) + le32_to_cpu(tmp->size);
15201520

15211521
ret = parse_dictionary_entries(comp, tuples, esize, config, 1, sizeof(*config),
1522-
AVS_TKN_MOD_INIT_CONFIG_ID_U32,
1522+
AVS_TKN_INIT_CONFIG_ID_U32,
15231523
mod_init_config_parsers,
15241524
ARRAY_SIZE(mod_init_config_parsers));
15251525

0 commit comments

Comments
 (0)