X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fsoc_pollux.c;h=dd7e66d1df156a30835a115a6bb3a896cf2aab23;hb=f62850ba3ae4170295a4a3cdea38d1806d99c474;hp=b7a8a12477772886a31b8663fafaedad736672de;hpb=8340e7c99fd3e44c6b8bd3239b7676b16b73d028;p=picodrive.git diff --git a/platform/gp2x/soc_pollux.c b/platform/gp2x/soc_pollux.c index b7a8a12..dd7e66d 100644 --- 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. + */ /* * * 00000000-029fffff linux (42MB) @@ -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 - 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;