Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: topology: fix: parse hda_tokens to &config->hda

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>

authored by

Bard Liao and committed by
Mark Brown
15bf1831 c7fc96df

+1 -1
+1 -1
sound/soc/sof/topology.c
··· 3074 3074 config->hdr.size = size; 3075 3075 3076 3076 /* get any bespoke DAI tokens */ 3077 - ret = sof_parse_tokens(scomp, config, hda_tokens, 3077 + ret = sof_parse_tokens(scomp, &config->hda, hda_tokens, 3078 3078 ARRAY_SIZE(hda_tokens), private->array, 3079 3079 le32_to_cpu(private->size)); 3080 3080 if (ret != 0) {