From 184459fa54f1d3f1a6c13c6e729fa116689f225c Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 12 Dec 2011 20:12:22 +0000 Subject: Deal with a complication when transferring recording method from PP5024: since the FIFO POP is always read until empty, keep track of sample parity instead of always saving the first one in the FIFO upon entering the ISR or else the first of a duplicate that is also the last in the FIFO would get duplicated. Also, give top priority to audio interrupts in all cases. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31218 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sd-as3525v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/arm/as3525/sd-as3525v2.c') diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 74925a3aab..e48bd5b372 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c @@ -890,10 +890,10 @@ sd_transfer_retry_with_reinit: arg *= SD_BLOCK_SIZE; if(write) - dma_enable_channel(0, dma_buf, MCI_FIFO, DMA_PERI_SD, + dma_enable_channel(1, dma_buf, MCI_FIFO, DMA_PERI_SD, DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); else - dma_enable_channel(0, MCI_FIFO, dma_buf, DMA_PERI_SD, + dma_enable_channel(1, MCI_FIFO, dma_buf, DMA_PERI_SD, DMAC_FLOWCTRL_PERI_PERI_TO_MEM, false, true, 0, DMA_S8, NULL); if(!send_cmd(drive, cmd, arg, MCI_RESP, &response)) -- cgit v1.2.3