1
0
Fork 0
forked from len0rd/rockbox

Coldfire: Use the auto-align feature in conjunction with line reads for the playback DMA. Saves a bit of memory bandwidth.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9898 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-05-09 23:50:50 +00:00
parent bd0db08e37
commit 0c262d8f52

View file

@ -85,7 +85,7 @@ static void dma_start(const void *addr, size_t size)
#endif #endif
/* Set up DMA transfer */ /* Set up DMA transfer */
SAR0 = ((unsigned long)addr); /* Source address */ SAR0 = (unsigned long)addr; /* Source address */
DAR0 = (unsigned long)&PDOR3; /* Destination address */ DAR0 = (unsigned long)&PDOR3; /* Destination address */
BCR0 = size; /* Bytes to transfer */ BCR0 = size; /* Bytes to transfer */
@ -95,7 +95,7 @@ static void dma_start(const void *addr, size_t size)
#ifdef HAVE_SPDIF_OUT #ifdef HAVE_SPDIF_OUT
EBU1CONFIG = EBU_DEFPARM; EBU1CONFIG = EBU_DEFPARM;
#endif #endif
DCR0 = DMA_INT | DMA_EEXT | DMA_CS | DMA_SINC | DMA_START; DCR0 = DMA_INT | DMA_EEXT | DMA_CS | DMA_AA | DMA_SINC | (3 << 20) | DMA_START;
} }
/* Stops the DMA transfer and interrupt */ /* Stops the DMA transfer and interrupt */