mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Sansa AMS: use non-busy wakeup to signal end of DMA transfer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aaaf609996
commit
a39e4e9962
4 changed files with 16 additions and 10 deletions
|
|
@ -553,8 +553,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
|
|||
(1<<3) /* DMA */ |
|
||||
(9<<4) /* 2^9 = 512 */ ;
|
||||
|
||||
while(!dma_finished)
|
||||
yield();
|
||||
dma_wait_transfer(0);
|
||||
|
||||
buf += transfer * SECTOR_SIZE;
|
||||
start += transfer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue