notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc471e
)
soc_pollux: fix clkgen masks
author
notaz
<notasas@gmail.com>
Thu, 26 Sep 2013 01:04:07 +0000
(
04:04
+0300)
committer
notaz
<notasas@gmail.com>
Thu, 26 Sep 2013 01:04:07 +0000
(
04:04
+0300)
gp2x/soc_pollux.c
patch
|
blob
|
blame
|
history
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
- div = ((memregl[0xdbc4>>2] >> 4) & 0x
1
f) + 1;
+ div = ((memregl[0xdbc4>>2] >> 4) & 0x
3
f) + 1;
rate /= div;
- div = ((memregl[0xdbc8>>2] >> 4) & 0x
1
f) + 1;
+ div = ((memregl[0xdbc8>>2] >> 4) & 0x
3
f) + 1;
rate /= div;
rate /= 64;