Gabriele Filosofi <[EMAIL PROTECTED]> writes:

> I?m sorry, I have forgotten to apply a patch of mine to file
>
> sound/oss/davinci-audio-aic33.c
>
> I developed this patch because on our custom board the MCLK clock frequency is
> always
>
> 256*Fs, where Fs denotes the audio sampling frequency, and Fs can be 32000,
> 44100 or 48000.

Gabrielle,

You appear to be using the OSS driver.  Have you tried migrating to
the new ALSA driver in the new kernel?  As of the 2.6.28 merge, I have
removed the OSS driver.

Kevin

> The patch is
>
>  
>
> Index: linux-davinci-2.6.25/sound/oss/davinci-audio-aic33.c
>
> ===================================================================
>
> --- linux-davinci-2.6.25.orig/sound/oss/davinci-audio-aic33.c
>
> +++ linux-davinci-2.6.25/sound/oss/davinci-audio-aic33.c
>
> @@ -16,6 +16,7 @@
>
>   * History:
>
>   *  -------
>
>   *  2005-10-18 Rishi Bhattacharya - Support for AIC33 codec and Davinci 
> DM644x
> Processor
>
> + *  2008-09-08 Gabriele Filosofi - Support for IPvPhone Digital Module (ADFL
> Consulting s.r.l.)
>
>   */
>
>  
>
>  #include <linux/module.h>
>
> @@ -635,8 +636,17 @@ int davinci_set_samplerate(long sample_r
>
>  
>
>             /* If PLL is to be used for generation of Fsref
>
>                Generate the Fsref using the PLL */
>
> -#if(MCLK==33)
>
> -
>
> +#ifdef CONFIG_MACH_DAVINCI_IPVP
>
> +        /*
>
> +         * For this board we know MCLK = 256*Fsref,
>
> +         * so the register programming is Fsres independent
>
> +         */
>
> +                /*Enable the PLL | Q-value | P-value */
>
> +                audio_aic33_write(3, PLL_ENABLE | 0x10 | 0x02);
>
> +                audio_aic33_write(4, (16 << 2)); /* J-value */
>
> +                audio_aic33_write(5, 0x00);     /* D-value 8-MSB's */
>
> +                audio_aic33_write(6, 0x00);     /* D-value 6-LSB's */
>
> +#elif(MCLK==33)
>
>             if ((reg_info[count].Fsref == 96000) | (reg_info[count].Fsref ==
> 48000)) {
>
>                         /* For MCLK = 33.8688 MHz and to get Fsref = 48kHz
>
>                            Fsref = (MCLK * k * R)/(2048 * p);
>
>  
>
> Now I?ve re-applied the patch and the playback works good.
>
> I apologize for the inconvenience my help request may have caused.
>
>  
>
> Gabriele
>
>  
>
>  
>
> Da: Rajashekhara, Sudhakar [mailto:[EMAIL PROTECTED]
> Inviato: giovedì 13 novembre 2008 13.51
> A: Gabriele Filosofi; [email protected]
> Oggetto: RE: DM6446: audio slowness on 2.6.27
>
>  
>
> Gabriele,
>
>  
>
> Even Kevin had reported the same issue, but we could not reproduce this on our
> setup. Can you please send us your kernel Image (uImage) so that we can test 
> it
> again on our EVM?
>
>  
>
> Regards, Sudhakar
>
> -------------------------------------------------------------------------------
>
> From: [EMAIL PROTECTED]
> [EMAIL PROTECTED] On Behalf Of Gabriele
> Filosofi [EMAIL PROTECTED]
> Sent: Thursday, November 13, 2008 1:16 PM
> To: [email protected]
> Subject: I: DM6446: audio slowness on 2.6.27
>
> Hi all,
>
>  
>
> I?ve ported our dm644x-based system from git kernel v2.6.25-davinci1 to
> v2.6.27-davinci1, and I?ve noticed the audio playback slowed down, as
> previously reported from you. This can be easily verified with
>
>  
>
> cp file.wav /dev/dsp
>
>  
>
> Is there anybody out there who faced this issue and/or can give an 
> explanation?
>
>  
>
> Thanks a lot in advance.
>
>  
>
> Regards,
>
>  
>
> Gabriele
>
> _____________________________________________
> Da: Gabriele Filosofi
> Inviato: mercoledì 12 novembre 2008 9.20
> A: '[EMAIL PROTECTED]'
> Cc: '[email protected]'
> Oggetto: DM6446: audio slowness on 2.6.27
>
>  
>
>  
>
> Hi Kevin,
>
>  
>
> I?ve ported our dm644x-based system from git kernel v2.6.25-davinci1 to
> v2.6.27-davinci1, and I?ve noticed the audio playback slowed down, as
> previously reported from you. This can be easily verified with
>
>  
>
> cp file.wav /dev/dsp
>
>  
>
> Did you find something that could be the cause this strange behavior?
>
>  
>
> Gabriele
>
>  
>
>  
>
>  

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to