diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-04-30 19:45:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-03 18:43:15 +0100 |
commit | 0aaae527c71e6af571093d90474f37c8662008d5 (patch) | |
tree | 68f2d50a0d094c258c8b210330bf90c9e64ed31b /sound/soc/soc-core.c | |
parent | 1307394afd2d6cf8f41f5e691b43ffc9e027630c (diff) | |
download | blackbird-op-linux-0aaae527c71e6af571093d90474f37c8662008d5.tar.gz blackbird-op-linux-0aaae527c71e6af571093d90474f37c8662008d5.zip |
ASoC: Free the card's DAPM context
Free the card's DAPM context when the card is removed.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | 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 a823654ef367..6a3cb53185cb 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; |