From e69d567d9ebf7d236ff9663b11ac396cc71dcd75 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 12 Dec 2008 11:01:07 +0000 Subject: Bring consistency to pcm implementation and samplerate handling. Less low-level duplication. A small test_sampr fix so it works on coldfire again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19400 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/i2s-pp.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'firmware/target/arm/i2s-pp.c') diff --git a/firmware/target/arm/i2s-pp.c b/firmware/target/arm/i2s-pp.c index c96a559a8a..81c1fa1265 100644 --- a/firmware/target/arm/i2s-pp.c +++ b/firmware/target/arm/i2s-pp.c @@ -25,28 +25,22 @@ * KIND, either express or implied. * ****************************************************************************/ - #include "system.h" #include "cpu.h" #include "i2s.h" -/* TODO: Add in PP5002 defs */ #if CONFIG_CPU == PP5002 void i2s_reset(void) { /* I2S device reset */ - DEV_RS |= 0x80; - DEV_RS &= ~0x80; + DEV_RS |= DEV_I2S; + DEV_RS &= ~DEV_I2S; /* I2S controller enable */ - IISCONFIG |= 1; - - /* BIT.FORMAT [11:10] = I2S (default) */ - /* BIT.SIZE [9:8] = 24bit */ - /* FIFO.FORMAT = 24 bit LSB */ + IISCONFIG |= IIS_ENABLE; /* reset DAC and ADC fifo */ - IISFIFO_CFG |= 0x30000; + IISFIFO_CFG |= IIS_RXCLR | IIS_TXCLR; } #else /* PP502X */ -- cgit v1.2.3