Skip to contentSkip to conversation

ASoC: tlv320dac33: Lower the OSC calibration time

PATCH Superseded Peter Ujfalusi 3 participants 4 messages Apr 11, 2011

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 safe ~15ms in the OSC calibration phase.

---
 sound/soc/codecs/tlv320dac33.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/tlv320dac33.c +2 -2
index c109f6d..401a7ce 100644
@@ -946,8 +946,8 @@ static int dac33_prepare_chip(struct snd_pcm_substream *substream)
 	/* Write registers 0x08 and 0x09 (MSB, LSB) */
 	dac33_write16(codec, DAC33_INT_OSC_FREQ_RAT_A, oscset);
 
-	/* calib time: 128 is a nice number ;) */
-	dac33_write(codec, DAC33_CALIB_TIME, 128);
+	/* OSC calibration time */
+	dac33_write(codec, DAC33_CALIB_TIME, 96);
 
 	/* adjustment treshold & step */
 	dac33_write(codec, DAC33_INT_OSC_CTRL_B, DAC33_ADJTHRSHLD(2) |
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 3 lines · Peter Ujfalusi

To get correct calibration, we can decrease the time needed for the OSC to calibrate itself.
With this change we can safe ~15ms in the OSC

s/safe/save/

Quoted 29 lines

calibration phase.

---
 sound/soc/codecs/tlv320dac33.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/tlv320dac33.c +2 -2
index c109f6d..401a7ce 100644
@@ -946,8 +946,8 @@ static int dac33_prepare_chip(struct snd_pcm_substream *substream)
 	/* Write registers 0x08 and 0x09 (MSB, LSB) */
 	dac33_write16(codec, DAC33_INT_OSC_FREQ_RAT_A, oscset);
 
-	/* calib time: 128 is a nice number ;) */
-	dac33_write(codec, DAC33_CALIB_TIME, 128);
+	/* OSC calibration time */
+	dac33_write(codec, DAC33_CALIB_TIME, 96);
 
 	/* adjustment treshold & step */
 	dac33_write(codec, DAC33_INT_OSC_CTRL_B, DAC33_ADJTHRSHLD(2) |
Signature · 6 lines
1.7.4.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Signature · 1 line
guanqun
#2 lore raw
Quoted 7 lines

________________________________________
From: ext Lu Guanqun [[email protected]]
Sent: Monday, April 11, 2011 16:05
To: Ujfalusi Peter (Nokia-SD/Tampere)
Cc: [email protected]; Mark Brown; Liam Girdwood
Subject: Re: [alsa-devel] [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time

Quoted 6 lines
Quoted 3 lines · Peter Ujfalusi

To get correct calibration, we can decrease the time needed for the OSC to calibrate itself.
With this change we can safe ~15ms in the OSC

s/safe/save/

Argh, thanks for noticing it, I'll resend it with the fixed message.

Quoted 4 lines
Quoted 4 lines

calibration phase.

Peter