ASoC: TWL4030: Syncronize the reg_cache for ANAMICL after the offset cancelation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:06 pm

Gitweb:     http://git.kernel.org/linus/3fc93030e5a792fdd0da3321487f5cbfd1143c2b
Commit:     3fc93030e5a792fdd0da3321487f5cbfd1143c2b
Parent:     6627a653bceb3a54e55e5cdc478ec5b8d5c9cc44
Author:     Peter Ujfalusi <peter.ujfalusi@nokia.com>
AuthorDate: Tue Jan 27 11:29:39 2009 +0200
Committer:  Mark Brown <broonie@opensource.wolfsonmicro.com>
CommitDate: Tue Jan 27 10:42:39 2009 +0000

    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>
---
 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 796f34c..24419af 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)
 		 ((byte & TWL4030_CNCL_OFFSET_START) ==
 		  TWL4030_CNCL_OFFSET_START));
 
+	/* Make sure that the reg_cache has the same value as the HW */
+	twl4030_write_reg_cache(codec, TWL4030_REG_ANAMICL, byte);
+
 	/* anti-pop when changing analog gain */
 	regmisc1 = twl4030_read_reg_cache(codec, TWL4030_REG_MISC_SET_1);
 	twl4030_write(codec, TWL4030_REG_MISC_SET_1,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ASoC: TWL4030: Syncronize the reg_cache for ANAMICL after ..., Linux Kernel Mailing ..., (Thu Mar 26, 12:06 pm)