From: Stephen Warren Date: Fri, 8 Jun 2012 18:34:21 +0000 (-0600) Subject: ASoC: when removing a CPU DAI, clean up its DAPM context X-Git-Tag: v3.6-rc1~117^2~4^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18d756440e8ed292b772682c4440a9d33643225b;p=pandora-kernel.git ASoC: when removing a CPU DAI, clean up its DAPM context When a standalone CPU DAI (one not part of a CODEC) is probed, widgets are created for it. Add a call to snd_soc_dapm_free() in order to clean these up when the CPU DAI is removed. In order for snd_soc_dapm_free() to work, the CPU DAI's DAPM context's list member must be initialized, since snd_soc_dapm_free() removes that from the list it's part of. Add it to the card's list of DAPM contexts. Signed-off-by: Stephen Warren Signed-off-by: Mark Brown --- Reading git-diff-tree failed