summaryrefslogtreecommitdiffstats
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.tar.bz2
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)
}
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;
}
}