瀏覽代碼

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 <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Peter Ujfalusi 15 年之前
父節點
當前提交
5dcba5d674
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      sound/soc/codecs/twl4030.c

+ 2 - 0
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;
 }