projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1ace0
)
ASoC: TWL4030: Module unloading fix
author
Peter Ujfalusi
<peter.ujfalusi@nokia.com>
Thu, 8 Jan 2009 13:52:43 +0000
(15:52 +0200)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Fri, 9 Jan 2009 11:03:38 +0000
(11:03 +0000)
Call the snd_soc_free_pcm and snd_soc_dapm_free when the
codec driver is unloaded.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/twl4030.c
b/sound/soc/codecs/twl4030.c
index db24f833c1684e4ed9a5481e2f3739a57f7d262d..ea370a4f86d5a2c74d97b176d977a55947ab120e 100644
(file)
--- a/
sound/soc/codecs/twl4030.c
+++ b/
sound/soc/codecs/twl4030.c
@@
-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;