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:
parent
4c5a735a02
commit
2bf4178018
6 changed files with 12 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue