1.1 --- a/src/aica/aica.c Fri Dec 15 10:19:06 2006 +0000
1.2 +++ b/src/aica/aica.c Sat Jan 27 12:02:54 2007 +0000
1.5 - * $Id: aica.c,v 1.20 2006-12-15 10:19:06 nkeynes Exp $
1.6 + * $Id: aica.c,v 1.21 2007-01-17 09:37:22 nkeynes Exp $
1.8 * This is the core sound system (ie the bit which does the actual work)
1.10 @@ -247,8 +247,27 @@
1.14 -MMIO_REGION_WRITE_STUBFN( AICARTC )
1.16 +void mmio_region_AICARTC_write( uint32_t reg, uint32_t val )
1.20 + MMIO_WRITE( AICARTC, reg, val&0x01 );
1.23 + if( MMIO_READ( AICARTC, AICA_RTCEN ) & 0x01 ) {
1.24 + aica_time_of_day = (aica_time_of_day & 0xFFFF0000) | (val & 0xFFFF);
1.28 + if( MMIO_READ( AICARTC, AICA_RTCEN ) & 0x01 ) {
1.29 + aica_time_of_day = (aica_time_of_day & 0xFFFF) | (val<<16);
1.30 + MMIO_WRITE( AICARTC, AICA_RTCEN, 0 );
1.37 * Translate the channel frequency to a sample rate. The frequency is a
1.38 * 14-bit floating point number, where bits 0..9 is the mantissa,