diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2009-01-27 04:29:39 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-01-27 05:42:39 -0500 |
commit | 3fc93030e5a792fdd0da3321487f5cbfd1143c2b (patch) | |
tree | e917a95e51ac8a393c5641ae4c45fb1ec003146f /sound/soc/codecs | |
parent | 6627a653bceb3a54e55e5cdc478ec5b8d5c9cc44 (diff) |
ASoC: TWL4030: Syncronize the reg_cache for ANAMICL after the offset cancelation
The offset cancelation bit in ANAMICL register is self cleanig.
Make sure that the reg_cache holds the same value as the HW
register.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/twl4030.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 796f34cac85d..24419afd319e 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
@@ -913,6 +913,9 @@ static void twl4030_power_up(struct snd_soc_codec *codec) | |||
913 | ((byte & TWL4030_CNCL_OFFSET_START) == | 913 | ((byte & TWL4030_CNCL_OFFSET_START) == |
914 | TWL4030_CNCL_OFFSET_START)); | 914 | TWL4030_CNCL_OFFSET_START)); |
915 | 915 | ||
916 | /* Make sure that the reg_cache has the same value as the HW */ | ||
917 | twl4030_write_reg_cache(codec, TWL4030_REG_ANAMICL, byte); | ||
918 | |||
916 | /* anti-pop when changing analog gain */ | 919 | /* anti-pop when changing analog gain */ |
917 | regmisc1 = twl4030_read_reg_cache(codec, TWL4030_REG_MISC_SET_1); | 920 | regmisc1 = twl4030_read_reg_cache(codec, TWL4030_REG_MISC_SET_1); |
918 | twl4030_write(codec, TWL4030_REG_MISC_SET_1, | 921 | twl4030_write(codec, TWL4030_REG_MISC_SET_1, |