summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/pcm-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 18:19:59 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 18:21:49 +0200
commit8390eb931eb409f3e6c769d9179d0e9415c0e080 (patch)
treee8a20994db1a4b6958a82ceae545ff0d51bda291 /firmware/target/arm/imx233/pcm-imx233.c
parent852a82b90a5b718538642ebcffa25a168c98b329 (diff)
downloadrockbox-8390eb931eb409f3e6c769d9179d0e9415c0e080.tar.gz
rockbox-8390eb931eb409f3e6c769d9179d0e9415c0e080.tar.bz2
rockbox-8390eb931eb409f3e6c769d9179d0e9415c0e080.zip
imx233: rewrite dma using new register headers
Change-Id: If73b84d9c9f4a152a54fb9d2dbec895e72d2e753
Diffstat (limited to 'firmware/target/arm/imx233/pcm-imx233.c')
-rw-r--r--firmware/target/arm/imx233/pcm-imx233.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/pcm-imx233.c b/firmware/target/arm/imx233/pcm-imx233.c
index 6969e61b40..2c5033471f 100644
--- a/firmware/target/arm/imx233/pcm-imx233.c
+++ b/firmware/target/arm/imx233/pcm-imx233.c
@@ -48,10 +48,8 @@ static void play(const void *addr, size_t size)
{
dac_dma.dma.next = NULL;
dac_dma.dma.buffer = (void *)addr;
- dac_dma.dma.cmd = HW_APB_CHx_CMD__COMMAND__READ |
- HW_APB_CHx_CMD__IRQONCMPLT |
- HW_APB_CHx_CMD__SEMAPHORE |
- size << HW_APB_CHx_CMD__XFER_COUNT_BP;
+ dac_dma.dma.cmd = BF_OR4(APB_CHx_CMD, COMMAND_V(READ),
+ IRQONCMPLT(1), SEMAPHORE(1), XFER_COUNT(size));
/* dma subsystem will make sure cached stuff is written to memory */
imx233_dma_start_command(APB_AUDIO_DAC, &dac_dma.dma);
}