X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fsoc_pollux.c;h=bbccede900aa1e337ce0e509f3a2554702e0ebf4;hb=11166a22ce7ec97d1dc4a2ea00da52979eca5b38;hp=e59a5611e8b78cdc7704b0921c6f8ed28c009851;hpb=7ceadd9993ea84078e9d74d79215419e06496f90;p=libpicofe.git 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;