summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-10-09 20:57:31 +0000
committerDave Chapman <dave@dchapman.com>2007-10-09 20:57:31 +0000
commit1092edf3e121ae67475a8d54c89f58fc3926fb60 (patch)
treeb0c180c3612a03e62b5d1bc6e160e93055e75330 /firmware/target
parentfd3fe45bc14a0a540f2525102551c92a64a73b76 (diff)
Packed I2S for ipod Color (tested) and ipod 4G (untested, but assumed to be the same as the Color - everything else is).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15053 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/i2s-pp.c1
-rw-r--r--firmware/target/arm/pcm-pp.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/i2s-pp.c b/firmware/target/arm/i2s-pp.c
index beb8e1e581..6397c1c0ac 100644
--- a/firmware/target/arm/i2s-pp.c
+++ b/firmware/target/arm/i2s-pp.c
@@ -73,6 +73,7 @@ void i2s_reset(void)
#if defined (IRIVER_H10) || defined (IRIVER_H10_5GB) || defined(IPOD_NANO) \
|| defined(IPOD_VIDEO) || defined(IPOD_MINI2G) \
+ || defined(IPOD_COLOR) || defined(IPOD_4G) \
|| defined (SANSA_C200) || defined (SANSA_E200)
/* Nano works fine with IIS_FIFO_FORMAT_LE16 as well */
IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE16_2);
diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c
index 7bffc4059c..dcf2ee9c53 100644
--- a/firmware/target/arm/pcm-pp.c
+++ b/firmware/target/arm/pcm-pp.c
@@ -31,7 +31,8 @@
swapping. Try to use 32-bit packed in IIS modes if possible. */
#if defined(SANSA_C200) || defined(SANSA_E200) \
|| defined(IRIVER_H10) || defined(IRIVER_H10_5GB) || defined(IPOD_NANO) \
- || defined(IPOD_VIDEO) || defined(IPOD_MINI2G)
+ || defined(IPOD_VIDEO) || defined(IPOD_MINI2G) \
+ || defined(IPOD_COLOR) || defined(IPOD_4G)
/* 16-bit, L-R packed into 32 bits with left in the least significant halfword */
#define SAMPLE_SIZE 16
#define TRANSFER_SIZE 32