Skip to content

Commit

Permalink
ASoC: Free the card's DAPM context
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed May 3, 2011
1 parent 1307394 commit 0aaae52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0aaae52

Please sign in to comment.