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) | |
download | rockbox-e69d567d9ebf7d236ff9663b11ac396cc71dcd75.tar.gz rockbox-e69d567d9ebf7d236ff9663b11ac396cc71dcd75.zip |
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 @@ | |||
25 | * KIND, either express or implied. | 25 | * KIND, either express or implied. |
26 | * | 26 | * |
27 | ****************************************************************************/ | 27 | ****************************************************************************/ |
28 | |||
29 | #include "system.h" | 28 | #include "system.h" |
30 | #include "cpu.h" | 29 | #include "cpu.h" |
31 | #include "i2s.h" | 30 | #include "i2s.h" |
32 | 31 | ||
33 | /* TODO: Add in PP5002 defs */ | ||
34 | #if CONFIG_CPU == PP5002 | 32 | #if CONFIG_CPU == PP5002 |
35 | void i2s_reset(void) | 33 | void i2s_reset(void) |
36 | { | 34 | { |
37 | /* I2S device reset */ | 35 | /* I2S device reset */ |
38 | DEV_RS |= 0x80; | 36 | DEV_RS |= DEV_I2S; |
39 | DEV_RS &= ~0x80; | 37 | DEV_RS &= ~DEV_I2S; |
40 | 38 | ||
41 | /* I2S controller enable */ | 39 | /* I2S controller enable */ |
42 | IISCONFIG |= 1; | 40 | IISCONFIG |= IIS_ENABLE; |
43 | |||
44 | /* BIT.FORMAT [11:10] = I2S (default) */ | ||
45 | /* BIT.SIZE [9:8] = 24bit */ | ||
46 | /* FIFO.FORMAT = 24 bit LSB */ | ||
47 | 41 | ||
48 | /* reset DAC and ADC fifo */ | 42 | /* reset DAC and ADC fifo */ |
49 | IISFIFO_CFG |= 0x30000; | 43 | IISFIFO_CFG |= IIS_RXCLR | IIS_TXCLR; |
50 | } | 44 | } |
51 | #else /* PP502X */ | 45 | #else /* PP502X */ |
52 | 46 | ||