From: notaz Date: Thu, 26 Sep 2013 01:04:07 +0000 (+0300) Subject: soc_pollux: fix clkgen masks X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11166a22ce7ec97d1dc4a2ea00da52979eca5b38;p=libpicofe.git soc_pollux: fix clkgen masks --- diff --git a/gp2x/soc_pollux.c b/gp2x/soc_pollux.c index e59a561..bbccede 100644 --- a/gp2x/soc_pollux.c +++ b/gp2x/soc_pollux.c @@ -117,9 +117,9 @@ int pollux_get_real_snd_rate(int req_rate) rate = decode_pll(clk0_src ? memregl[0xf008>>2] : memregl[0xf004>>2]); // apply divisors - div = ((memregl[0xdbc4>>2] >> 4) & 0x1f) + 1; + div = ((memregl[0xdbc4>>2] >> 4) & 0x3f) + 1; rate /= div; - div = ((memregl[0xdbc8>>2] >> 4) & 0x1f) + 1; + div = ((memregl[0xdbc8>>2] >> 4) & 0x3f) + 1; rate /= div; rate /= 64;