]> Git Repo - linux.git/commitdiff
ASoC: tlv320dac33: Restore L/R DAC power control register
authorPeter Ujfalusi <[email protected]>
Thu, 24 Mar 2011 06:58:05 +0000 (08:58 +0200)
committerLiam Girdwood <[email protected]>
Sat, 26 Mar 2011 15:36:56 +0000 (15:36 +0000)
Register 0x40, 0x41 need to be restored after power up, since
it contains gain related fields, which affects playback volume.

Signed-off-by: Peter Ujfalusi <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
sound/soc/codecs/tlv320dac33.c

index 93f38b1d6246b68e26bc4b83349412ad976ebd12..6c3735dcb05324afa62fb20986387d0289a131ff 100644 (file)
@@ -324,6 +324,10 @@ static void dac33_init_chip(struct snd_soc_codec *codec)
        dac33_write(codec, DAC33_OUT_AMP_CTRL,
                    dac33_read_reg_cache(codec, DAC33_OUT_AMP_CTRL));
 
+       dac33_write(codec, DAC33_LDAC_PWR_CTRL,
+                   dac33_read_reg_cache(codec, DAC33_LDAC_PWR_CTRL));
+       dac33_write(codec, DAC33_RDAC_PWR_CTRL,
+                   dac33_read_reg_cache(codec, DAC33_RDAC_PWR_CTRL));
 }
 
 static inline int dac33_read_id(struct snd_soc_codec *codec)
This page took 0.056762 seconds and 4 git commands to generate.