ASoC: topology: Remove multistep topology loading
In theory topology can be loaded in multiple steps by providing index to snd_soc_tplg_component_load, however, from usability point of view it doesn't make sense, as can be seen from all current users loading topology in one go. Remove the unnecessary parameter. Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20201030145427.3497990-3-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
841fb10967
commit
a5b8f71c54
@ -780,7 +780,7 @@ static int sof_pcm_probe(struct snd_soc_component *component)
|
||||
static void sof_pcm_remove(struct snd_soc_component *component)
|
||||
{
|
||||
/* remove topology */
|
||||
snd_soc_tplg_component_remove(component, SND_SOC_TPLG_INDEX_ALL);
|
||||
snd_soc_tplg_component_remove(component);
|
||||
}
|
||||
|
||||
void snd_sof_new_platform_drv(struct snd_sof_dev *sdev)
|
||||
|
@ -3734,9 +3734,7 @@ int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = snd_soc_tplg_component_load(scomp,
|
||||
&sof_tplg_ops, fw,
|
||||
SND_SOC_TPLG_INDEX_ALL);
|
||||
ret = snd_soc_tplg_component_load(scomp, &sof_tplg_ops, fw);
|
||||
if (ret < 0) {
|
||||
dev_err(scomp->dev, "error: tplg component load failed %d\n",
|
||||
ret);
|
||||
|
Reference in New Issue
Block a user