Re: [PATCH 1/3] asoc tlv320aic3x: revisit clock setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 25, 2008 at 1:18 PM, Daniel Mack <daniel@xxxxxxxxx> wrote:

> On Fri, Apr 25, 2008 at 12:55:23PM +0300, Jarkko Nikula wrote:
> > Did you forgot to take into account doubled fsref below (from the first
> > version) when calculating codec_clk because now it is doubled earlier?
>
> Oops, yes, you're right. Sorry for that.
>
> Doesn't work for 64000 kHz since 48000 * 10 / 64000 = 7.5 and later
calculations => 7*2 / 5 - 2 = 2 - 2 but this might to work:

...
data = (fsref * 20) / rate;
if (rate < 64000)
    data /= 2;
data /= 5;
...


Jarkko
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux