* [PATCH] ASoC: core - Free platform DAPM context at platform removal.
@ 2012-01-16 15:25 Liam Girdwood
2012-01-16 15:50 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Liam Girdwood @ 2012-01-16 15:25 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Liam Girdwood
Fix platform removal by freeing the platform DAPM resources and remove
it from the DAPM list.
Signed-off-by: Liam Girdwood <lrg@ti.com>
---
sound/soc/soc-core.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 3986520..b5ecf6d 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -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);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: core - Free platform DAPM context at platform removal.
2012-01-16 15:25 [PATCH] ASoC: core - Free platform DAPM context at platform removal Liam Girdwood
@ 2012-01-16 15:50 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-01-16 15:50 UTC (permalink / raw)
To: Liam Girdwood; +Cc: alsa-devel
On Mon, Jan 16, 2012 at 03:25:37PM +0000, Liam Girdwood wrote:
> Fix platform removal by freeing the platform DAPM resources and remove
> it from the DAPM list.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-16 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-16 15:25 [PATCH] ASoC: core - Free platform DAPM context at platform removal Liam Girdwood
2012-01-16 15:50 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).