summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-04-13 12:24:47 +0000
committerJens Arnold <amiconn@rockbox.org>2008-04-13 12:24:47 +0000
commit2bf4178018930b8af6d7082f7dd1a3302e09932b (patch)
tree3f6e2177e31f09157fc782d4239b944a6f6d8963 /apps/buffering.c
parent4c5a735a023755cedc264a4cad89f1ab0c256e17 (diff)
downloadrockbox-2bf4178018930b8af6d7082f7dd1a3302e09932b.tar.gz
rockbox-2bf4178018930b8af6d7082f7dd1a3302e09932b.zip
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
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 99a4a3b058..f123d8fcc3 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -813,11 +813,9 @@ static bool fill_buffer(void)
813 } 813 }
814 else 814 else
815 { 815 {
816#ifndef SIMULATOR
817 /* only spin the disk down if the filling wasn't interrupted by an 816 /* only spin the disk down if the filling wasn't interrupted by an
818 event arriving in the queue. */ 817 event arriving in the queue. */
819 ata_sleep(); 818 ata_sleep();
820#endif
821 return false; 819 return false;
822 } 820 }
823} 821}