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:
parent
bd0db08e37
commit
0c262d8f52
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ static void dma_start(const void *addr, size_t size)
|
|||
#endif
|
||||
|
||||
/* Set up DMA transfer */
|
||||
SAR0 = ((unsigned long)addr); /* Source address */
|
||||
SAR0 = (unsigned long)addr; /* Source address */
|
||||
DAR0 = (unsigned long)&PDOR3; /* Destination address */
|
||||
BCR0 = size; /* Bytes to transfer */
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ static void dma_start(const void *addr, size_t size)
|
|||
#ifdef HAVE_SPDIF_OUT
|
||||
EBU1CONFIG = EBU_DEFPARM;
|
||||
#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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue