[alsa-devel] [RFC PATCH 1/3] ASoC: core: do not unload topology in unregister_component()

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Fri Apr 5 02:30:38 CEST 2019


Typically, topology is loaded when the card is registered
by the machine driver and the link components are probed.
Therefore, it should be unloaded when the link components
are removed. This will make the register/unregister component
methods balanced.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
 sound/soc/soc-core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 6f4842977b8d..ffd4db97a2ee 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3327,8 +3327,6 @@ static int __snd_soc_unregister_component(struct device *dev)
 		if (dev != component->dev)
 			continue;
 
-		snd_soc_tplg_component_remove(component,
-					      SND_SOC_TPLG_INDEX_ALL);
 		snd_soc_component_del_unlocked(component);
 		found = 1;
 		break;
-- 
2.17.1



More information about the Alsa-devel mailing list