Skip to contentSkip to conversation

ASoC: TWL4030: Module unloading fix

PATCH Applied Peter Ujfalusi 2 participants 2 messages Jan 8, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 ASoC: TWL4030: Module unloading fix

Call the snd_soc_free_pcm and snd_soc_dapm_free when the codec driver is unloaded.

---
 sound/soc/codecs/twl4030.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/codecs/twl4030.c +2 -0
index db24f83..ea370a4 100644
@@ -1280,6 +1280,8 @@ static int twl4030_remove(struct platform_device *pdev)
 	struct snd_soc_codec *codec = socdev->codec;
 
 	printk(KERN_INFO "TWL4030 Audio Codec remove\n");
+	snd_soc_free_pcms(socdev);
+	snd_soc_dapm_free(socdev);
 	kfree(codec);
 
 	return 0;
Signature · 1 line
1.6.1
Applied
#1 lore raw
Quoted 4 lines · Peter Ujfalusi

Call the snd_soc_free_pcm and snd_soc_dapm_free when the codec driver is unloaded.

Applied, thanks. Might be worth having a look at the logging too...