All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time
@ 2011-04-11 12:57 Peter Ujfalusi
  2011-04-11 13:05 ` Lu Guanqun
  2011-04-11 13:40 ` Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Ujfalusi @ 2011-04-11 12:57 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Liam Girdwood

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.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
---
 sound/soc/codecs/tlv320dac33.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c
index c109f6d..401a7ce 100644
--- a/sound/soc/codecs/tlv320dac33.c
+++ b/sound/soc/codecs/tlv320dac33.c
@@ -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) |
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time
  2011-04-11 12:57 [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time Peter Ujfalusi
@ 2011-04-11 13:05 ` Lu Guanqun
  2011-04-11 14:51   ` peter.ujfalusi
  2011-04-11 13:40 ` Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Lu Guanqun @ 2011-04-11 13:05 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: alsa-devel@alsa-project.org, Mark Brown, Liam Girdwood

On Mon, Apr 11, 2011 at 08:57:44PM +0800, Peter Ujfalusi wrote:
> 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/

> calibration phase.
> 
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
> ---
>  sound/soc/codecs/tlv320dac33.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c
> index c109f6d..401a7ce 100644
> --- a/sound/soc/codecs/tlv320dac33.c
> +++ b/sound/soc/codecs/tlv320dac33.c
> @@ -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) |
> -- 
> 1.7.4.1
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

-- 
guanqun

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time
  2011-04-11 12:57 [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time Peter Ujfalusi
  2011-04-11 13:05 ` Lu Guanqun
@ 2011-04-11 13:40 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2011-04-11 13:40 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: alsa-devel, Liam Girdwood

On Mon, Apr 11, 2011 at 03:57:44PM +0300, Peter Ujfalusi wrote:
> 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.
> 
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time
  2011-04-11 13:05 ` Lu Guanqun
@ 2011-04-11 14:51   ` peter.ujfalusi
  0 siblings, 0 replies; 4+ messages in thread
From: peter.ujfalusi @ 2011-04-11 14:51 UTC (permalink / raw)
  To: guanqun.lu; +Cc: alsa-devel, broonie, lrg

> ________________________________________
> From: ext Lu Guanqun [guanqun.lu@intel.com]
> Sent: Monday, April 11, 2011 16:05
> To: Ujfalusi Peter (Nokia-SD/Tampere)
> Cc: alsa-devel@alsa-project.org; Mark Brown; Liam Girdwood
> Subject: Re: [alsa-devel] [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time
> 
> On Mon, Apr 11, 2011 at 08:57:44PM +0800, Peter Ujfalusi wrote:
> > 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.

> 
> > calibration phase.
> >
> > Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>

Peter

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-11 14:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-11 12:57 [PATCH] ASoC: tlv320dac33: Lower the OSC calibration time Peter Ujfalusi
2011-04-11 13:05 ` Lu Guanqun
2011-04-11 14:51   ` peter.ujfalusi
2011-04-11 13:40 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.