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