Commit 2e05ddd2 authored by Ranjani Sridharan's avatar Ranjani Sridharan Committed by Mark Brown

ASoC: intel: skylake: add remove() callback for component driver

Topology is not unloaded in the core during unregister_component()
anymore. So, add the remove() callback that will unload the
topology.
Signed-off-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 47c4cc08
...@@ -1462,9 +1462,16 @@ static int skl_platform_soc_probe(struct snd_soc_component *component) ...@@ -1462,9 +1462,16 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)
return 0; return 0;
} }
static void skl_pcm_remove(struct snd_soc_component *component)
{
/* remove topology */
snd_soc_tplg_component_remove(component, SND_SOC_TPLG_INDEX_ALL);
}
static const struct snd_soc_component_driver skl_component = { static const struct snd_soc_component_driver skl_component = {
.name = "pcm", .name = "pcm",
.probe = skl_platform_soc_probe, .probe = skl_platform_soc_probe,
.remove = skl_pcm_remove,
.ops = &skl_platform_ops, .ops = &skl_platform_ops,
.pcm_new = skl_pcm_new, .pcm_new = skl_pcm_new,
.pcm_free = skl_pcm_free, .pcm_free = skl_pcm_free,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment