![](https://secure.gravatar.com/avatar/e507159b016ae5fe4e2fa9e7d677bc10.jpg?s=120&d=mm&r=g)
25 Apr
2008
25 Apr
'08
12:40 p.m.
On Fri, Apr 25, 2008 at 1:18 PM, Daniel Mack daniel@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