notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tune flip calls and frame setup
[picodrive.git]
/
platform
/
gp2x
/
soc_pollux.c
diff --git
a/platform/gp2x/soc_pollux.c
b/platform/gp2x/soc_pollux.c
index
ab56b99
..
dd7e66d
100644
(file)
--- a/
platform/gp2x/soc_pollux.c
+++ b/
platform/gp2x/soc_pollux.c
@@
-1,3
+1,10
@@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
/*
* <random_info=mem_map>
* 00000000-029fffff linux (42MB)
/*
* <random_info=mem_map>
* 00000000-029fffff linux (42MB)
@@
-149,7
+156,7
@@
static void gp2x_video_RGB_setscaling_(int ln_offs, int W, int H)
static void gp2x_video_wait_vsync_(void)
{
static void gp2x_video_wait_vsync_(void)
{
- while (!(memregl[0x308c>>2] & (1 << 10)))
;
+ while (!(memregl[0x308c>>2] & (1 << 10)))
spend_cycles(128);
memregl[0x308c>>2] |= 1 << 10;
}
spend_cycles(128);
memregl[0x308c>>2] |= 1 << 10;
}
@@
-276,9
+283,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;