diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-12-12 11:01:07 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-12-12 11:01:07 +0000 |
commit | e69d567d9ebf7d236ff9663b11ac396cc71dcd75 (patch) | |
tree | 093b9d1bc979d79be1fcd0daac1d8daf8ac55503 /firmware/target/arm/i2s-pp.c | |
parent | 0ad97d13fc52b28de566dc0ddaf7245583eec2cc (diff) |
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
Diffstat (limited to 'firmware/target/arm/i2s-pp.c')
-rw-r--r-- | firmware/target/arm/i2s-pp.c | 14 |
1 files changed, 4 insertions, 10 deletions
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 */ |