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

ASoC: SOF: topology: parse comp_ext_tokens for all widgets

Parse comp_ext_tokens in the common sof_widget_ready(), and the
swidget->comp_ext will be used to construct the COMP_NEW ipc in the
subsequent commits.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200904132744.1699575-5-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Keyon Jie and committed by
Mark Brown
929e427a 92f500cf

+10
+10
sound/soc/sof/topology.c
··· 2401 2401 return ret; 2402 2402 } 2403 2403 2404 + ret = sof_parse_tokens(scomp, &swidget->comp_ext, comp_ext_tokens, 2405 + ARRAY_SIZE(comp_ext_tokens), tw->priv.array, 2406 + le32_to_cpu(tw->priv.size)); 2407 + if (ret != 0) { 2408 + dev_err(scomp->dev, "error: parsing comp_ext_tokens failed %d\n", 2409 + ret); 2410 + kfree(swidget); 2411 + return ret; 2412 + } 2413 + 2404 2414 /* handle any special case widgets */ 2405 2415 switch (w->id) { 2406 2416 case snd_soc_dapm_dai_in: