Skip to contentSkip to conversation

ASoC: core - Free platform DAPM context at platform removal.

PATCH Applied Liam Girdwood 2 participants 2 messages Jan 16, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: core - Free platform DAPM context at platform removal.

Fix platform removal by freeing the platform DAPM resources and remove it from the DAPM list.

---
 sound/soc/soc-core.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +4 -0
index 3986520..b5ecf6d 100644
@@ -907,6 +907,10 @@ static void soc_remove_dai_link(struct snd_soc_card *card, int num, int order)
 			if (err < 0)
 				printk(KERN_ERR "asoc: failed to remove %s\n", platform->name);
 		}
+
+		/* Make sure all DAPM widgets are freed */
+		snd_soc_dapm_free(&platform->dapm);
+
 		platform->probed = 0;
 		list_del(&platform->card_list);
 		module_put(platform->dev->driver->owner);
Signature · 1 line
1.7.5.4
Applied
#1 lore raw
Quoted 2 lines · Liam Girdwood

Fix platform removal by freeing the platform DAPM resources and remove it from the DAPM list.

Applied, thanks.