forked from len0rd/rockbox
Use DMA for audio playback on PP502x (FS#9910 + some further mods). I can't say at this point about any change in battery life but it frees up a percent or two of CPU cycles as measured in the buffering screen. No change in recording transfers yet. Testing seemed to check out so put it out for general use and see what happens.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20052 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1ad58f9757
commit
6c399b8254
6 changed files with 304 additions and 52 deletions
|
|
@ -71,8 +71,8 @@ void i2s_reset(void)
|
|||
IISCONFIG = ((IISCONFIG & ~IIS_FIFO_FORMAT_MASK) | IIS_FIFO_FORMAT_LE16_2);
|
||||
|
||||
/* RX_ATN_LVL = when 12 slots full */
|
||||
/* TX_ATN_LVL = when 12 slots empty */
|
||||
IISFIFO_CFG |= IIS_RX_FULL_LVL_12 | IIS_TX_EMPTY_LVL_12;
|
||||
/* TX_ATN_LVL = DMA request when 4 slots empty */
|
||||
IISFIFO_CFG |= IIS_RX_FULL_LVL_12 | IIS_TX_EMPTY_LVL_4;
|
||||
|
||||
/* Rx.CLR = 1, TX.CLR = 1 */
|
||||
IISFIFO_CFG |= IIS_RXCLR | IIS_TXCLR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue