1
0
Fork 0
forked from len0rd/rockbox

Make mpegplayer sleep the disk after buffering to save battery. * Add a simulator stub for ata_sleep(), and un-ifdef most calls to it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17096 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2008-04-13 12:24:47 +00:00
parent 4c5a735a02
commit 2bf4178018
6 changed files with 12 additions and 8 deletions

View file

@ -813,11 +813,9 @@ static bool fill_buffer(void)
}
else
{
#ifndef SIMULATOR
/* only spin the disk down if the filling wasn't interrupted by an
event arriving in the queue. */
ata_sleep();
#endif
return false;
}
}