From: Peter Ujfalusi Date: Thu, 12 Aug 2010 06:29:52 +0000 (+0300) Subject: ASoC: multi-component: TWL4030: Restore registers on removal X-Git-Tag: v2.6.37-rc1~126^2~1^2~176^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=5dcba5d6741d4533e0ef696507f93f2a4c738efb;p=~emulex%2Finfiniband.git ASoC: multi-component: TWL4030: Restore registers on removal Add back the register restore call, when the codec driver is removed. This does not affect normal operation, but it is usefull when debugging audio through the twl4030 class codecs. Signed-off-by: Peter Ujfalusi Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 898430f44f9..c7ee1a4c9d9 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c @@ -2258,6 +2258,8 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec) static int twl4030_soc_remove(struct snd_soc_codec *codec) { + /* Reset registers to their chip default before leaving */ + twl4030_reset_registers(codec); twl4030_set_bias_level(codec, SND_SOC_BIAS_OFF); return 0; }