summaryrefslogtreecommitdiff
path: root/firmware
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
parente606ee42c20dbed0a41cf6d676dcf4833be9df9b (diff)
AMS: Change DMA transfer size for audio.
Slightly reduces power consumption due to DMA overhead. Change-Id: I8576e9e243ce13a71cde710c3a726dce19bafb97
Diffstat (limited to 'firmware')
-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)
dma_enable_channel(0, (void*)addr, (void*)I2SOUT_DATA, DMA_PERI_I2SOUT,
DMAC_FLOWCTRL_DMAC_MEM_TO_PERI, true, false, size >> 2,
- DMA_S1, dma_callback);
+ DMA_S16, dma_callback);
}
static void dma_callback(void)