summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2015-02-14 19:01:14 +0100
committerMichael Giacomelli <giac2000@hotmail.com>2015-06-01 18:23:57 +0200
commite7550a4f6e77deffe45a00e3546fea431f672972 (patch)
treed6d5ab404e29151e03999c27ffc235111946db1e /firmware/target/arm
parente606ee42c20dbed0a41cf6d676dcf4833be9df9b (diff)
downloadrockbox-e7550a4f6e77deffe45a00e3546fea431f672972.tar.gz
rockbox-e7550a4f6e77deffe45a00e3546fea431f672972.zip
AMS: Change DMA transfer size for audio.
Slightly reduces power consumption due to DMA overhead. Change-Id: I8576e9e243ce13a71cde710c3a726dce19bafb97
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/pcm-as3525.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/pcm-as3525.c b/firmware/target/arm/as3525/pcm-as3525.c
index 0f077b825b..ddb4d86bd4 100644
--- a/firmware/target/arm/as3525/pcm-as3525.c
+++ b/firmware/target/arm/as3525/pcm-as3525.c
@@ -83,7 +83,7 @@ static void play_start_pcm(void)
83 83
84 dma_enable_channel(0, (void*)addr, (void*)I2SOUT_DATA, DMA_PERI_I2SOUT, 84 dma_enable_channel(0, (void*)addr, (void*)I2SOUT_DATA, DMA_PERI_I2SOUT,
85 DMAC_FLOWCTRL_DMAC_MEM_TO_PERI, true, false, size >> 2, 85 DMAC_FLOWCTRL_DMAC_MEM_TO_PERI, true, false, size >> 2,
86 DMA_S1, dma_callback); 86 DMA_S16, dma_callback);
87} 87}
88 88
89static void dma_callback(void) 89static void dma_callback(void)