[alsa-devel] [PATCH 1/4] ASoC: Free the card's DAPM context
Lars-Peter Clausen
lars at metafoo.de
Sat Apr 30 19:45:47 CEST 2011
Free the card's DAPM context when the card is removed.
Signed-off-by: Lars-Peter Clausen <lars at metafoo.de>
---
sound/soc/soc-core.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index a823654..6a3cb53 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2047,6 +2047,8 @@ static int soc_cleanup_card_resources(struct snd_soc_card *card)
if (card->remove)
card->remove(card);
+ snd_soc_dapm_free(&card->dapm);
+
kfree(card->rtd);
snd_card_free(card->snd_card);
return 0;
--
1.7.2.5
More information about the Alsa-devel
mailing list