[alsa-devel] [PATCH 1/3] asoc tlv320aic3x: revisit clock setup
Jarkko Nikula
jhnikula at gmail.com
Fri Apr 25 12:40:42 CEST 2008
On Fri, Apr 25, 2008 at 1:18 PM, Daniel Mack <daniel at caiaq.org> 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
More information about the Alsa-devel
mailing list