diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2015-02-14 19:01:14 +0100 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2015-06-01 18:23:57 +0200 |
commit | e7550a4f6e77deffe45a00e3546fea431f672972 (patch) | |
tree | d6d5ab404e29151e03999c27ffc235111946db1e /firmware/target/arm | |
parent | e606ee42c20dbed0a41cf6d676dcf4833be9df9b (diff) | |
download | rockbox-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.c | 2 |
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 | ||
89 | static void dma_callback(void) | 89 | static void dma_callback(void) |