diff options
author | Olaya, Margarita <magi.olaya@ti.com> | 2010-12-14 20:18:36 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-12-15 16:35:57 -0500 |
commit | 65b7cecc85b9bb7bb8ce74c6a3b280464b00c86c (patch) | |
tree | f87b8eee7a1fb91ef4616a9f990d87f72c9af269 /sound/soc/codecs/twl6040.c | |
parent | 53a9ef15df8c0dc688fae33277a252f0dd2faf2d (diff) |
ASoC: twl6040: Set default gains to minimun value
Updated default values to improve power consumption.
Signed-off-by: Jorge Eduardo Candelaria <jorge.candelaria@ti.com>
Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/twl6040.c')
-rw-r--r-- | sound/soc/codecs/twl6040.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index 9dfe208e6539..b252cf8f0ce1 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -806,6 +806,15 @@ static int twl6040_set_bias_level(struct snd_soc_codec *codec, | |||
806 | 806 | ||
807 | /* initialize vdd/vss registers with reg_cache */ | 807 | /* initialize vdd/vss registers with reg_cache */ |
808 | twl6040_init_vdd_regs(codec); | 808 | twl6040_init_vdd_regs(codec); |
809 | |||
810 | /* Set external boost GPO */ | ||
811 | twl6040_write(codec, TWL6040_REG_GPOCTL, 0x02); | ||
812 | |||
813 | /* Set initial minimal gain values */ | ||
814 | twl6040_write(codec, TWL6040_REG_HSGAIN, 0xFF); | ||
815 | twl6040_write(codec, TWL6040_REG_EARCTL, 0x1E); | ||
816 | twl6040_write(codec, TWL6040_REG_HFLGAIN, 0x1D); | ||
817 | twl6040_write(codec, TWL6040_REG_HFRGAIN, 0x1D); | ||
809 | break; | 818 | break; |
810 | case SND_SOC_BIAS_OFF: | 819 | case SND_SOC_BIAS_OFF: |
811 | if (!priv->codec_powered) | 820 | if (!priv->codec_powered) |