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:
Rafaël Carré 2008-11-26 16:02:00 +00:00
parent aaaf609996
commit a39e4e9962
4 changed files with 16 additions and 10 deletions

View file

@ -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;