notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
soc_pollux: fix clkgen masks
[libpicofe.git]
/
gp2x
/
soc_pollux.c
diff --git
a/gp2x/soc_pollux.c
b/gp2x/soc_pollux.c
index
e59a561
..
bbccede
100644
(file)
--- 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
rate = decode_pll(clk0_src ? memregl[0xf008>>2] : memregl[0xf004>>2]);
// apply divisors
- div = ((memregl[0xdbc4>>2] >> 4) & 0x
1
f) + 1;
+ div = ((memregl[0xdbc4>>2] >> 4) & 0x
3
f) + 1;
rate /= div;
rate /= div;
- div = ((memregl[0xdbc8>>2] >> 4) & 0x
1
f) + 1;
+ div = ((memregl[0xdbc8>>2] >> 4) & 0x
3
f) + 1;
rate /= div;
rate /= 64;
rate /= div;
rate /= 64;