From 11166a22ce7ec97d1dc4a2ea00da52979eca5b38 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 26 Sep 2013 04:04:07 +0300 Subject: [PATCH] soc_pollux: fix clkgen masks --- gp2x/soc_pollux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5