ASoC: SOF: topology: fix: parse hda_tokens to &config->hda
authorBard Liao <yung-chuan.liao@linux.intel.com>
Wed, 15 Apr 2020 20:28:13 +0000 (15:28 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 15 Apr 2020 23:23:16 +0000 (00:23 +0100)
Items in hda_tokens are for &config->hda. So fix it to the right
object. This error has been harmless as hda_tokens array was empty.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200415202816.934-22-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c

index f59c34b..51d19ff 100644 (file)
@@ -3074,7 +3074,7 @@ static int sof_link_hda_load(struct snd_soc_component *scomp, int index,
        config->hdr.size = size;
 
        /* get any bespoke DAI tokens */
-       ret = sof_parse_tokens(scomp, config, hda_tokens,
+       ret = sof_parse_tokens(scomp, &config->hda, hda_tokens,
                               ARRAY_SIZE(hda_tokens), private->array,
                               le32_to_cpu(private->size));
        if (ret != 0) {