aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>2011-04-12 02:09:17 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-04-13 04:32:37 -0400
commit82a58a8b7f293e5bab3dd41ee160867bcad41f37 (patch)
tree7bd6ff397880f5de0b4299d909dad0e03b7bbb70
parent4b8ffdb959c35f5e271fb7e08635dbdb2593018f (diff)
ASoC: tlv320dac33: Lower the OSC calibration time
To get correct calibration, we can decrease the time needed for the OSC to calibrate itself. With this change we can save ~15ms in the OSC calibration phase. 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>
-rw-r--r--sound/soc/codecs/tlv320dac33.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c
index 4857f2ae0666..869c1a9766b5 100644
--- a/sound/soc/codecs/tlv320dac33.c
+++ b/sound/soc/codecs/tlv320dac33.c
@@ -939,8 +939,8 @@ static int dac33_prepare_chip(struct snd_pcm_substream *substream)
939 /* Write registers 0x08 and 0x09 (MSB, LSB) */ 939 /* Write registers 0x08 and 0x09 (MSB, LSB) */
940 dac33_write16(codec, DAC33_INT_OSC_FREQ_RAT_A, oscset); 940 dac33_write16(codec, DAC33_INT_OSC_FREQ_RAT_A, oscset);
941 941
942 /* calib time: 128 is a nice number ;) */ 942 /* OSC calibration time */
943 dac33_write(codec, DAC33_CALIB_TIME, 128); 943 dac33_write(codec, DAC33_CALIB_TIME, 96);
944 944
945 /* adjustment treshold & step */ 945 /* adjustment treshold & step */
946 dac33_write(codec, DAC33_INT_OSC_CTRL_B, DAC33_ADJTHRSHLD(2) | 946 dac33_write(codec, DAC33_INT_OSC_CTRL_B, DAC33_ADJTHRSHLD(2) |