summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/i2s-pp.c3
-rw-r--r--firmware/target/arm/pcm-pp.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/i2s-pp.c b/firmware/target/arm/i2s-pp.c
index 0c33fbce28..38a3f9837e 100644
--- a/firmware/target/arm/i2s-pp.c
+++ b/firmware/target/arm/i2s-pp.c
@@ -70,7 +70,8 @@ void i2s_reset(void)
70 IISCLK = (IISCLK & ~0x1ff) | 33; 70 IISCLK = (IISCLK & ~0x1ff) | 33;
71 IISDIV = 7; 71 IISDIV = 7;
72 IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE16); 72 IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE16);
73#elif defined (IRIVER_H10) || defined (IRIVER_H10_5GB) 73#elif defined (IRIVER_H10) || defined (IRIVER_H10_5GB) || defined(IPOD_NANO)
74 /* Nano works fine with IIS_FIFO_FORMAT_LE16 as well */
74 IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE16_2); 75 IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE16_2);
75#else 76#else
76 IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE32); 77 IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE32);
diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c
index ba2b6e5ada..ab785a933b 100644
--- a/firmware/target/arm/pcm-pp.c
+++ b/firmware/target/arm/pcm-pp.c
@@ -30,7 +30,7 @@
30 and codec setup using "arithmetic" the hardware supports like halfword 30 and codec setup using "arithmetic" the hardware supports like halfword
31 swapping. Try to use 32-bit packed in IIS modes if possible. */ 31 swapping. Try to use 32-bit packed in IIS modes if possible. */
32#if defined(SANSA_C200) || defined(SANSA_E200) \ 32#if defined(SANSA_C200) || defined(SANSA_E200) \
33 || defined(IRIVER_H10) || defined(IRIVER_H10_5GB) 33 || defined(IRIVER_H10) || defined(IRIVER_H10_5GB) || defined(IPOD_NANO)
34/* 16-bit, L-R packed into 32 bits with left in the least significant halfword */ 34/* 16-bit, L-R packed into 32 bits with left in the least significant halfword */
35#define SAMPLE_SIZE 16 35#define SAMPLE_SIZE 16
36#define TRANSFER_SIZE 32 36#define TRANSFER_SIZE 32