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

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
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -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,