From 0b22795e26ee09de14f6ac23219adeda12f2fd5b Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 6 Nov 2006 14:24:18 +0000 Subject: adds ata_idle_notify system which allows callbacks in apps/ to be called when the hard disk is idle but spinning, and just before shutting down. on SWCODEC targets with > 8MB RAM the playback engine will try to refill the buffer if it is less than 75% full while the disk is spinning (temporarily disabled on the nano) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11451 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index 4249fd0..c4ee45c 100644 --- a/apps/main.c +++ b/apps/main.c @@ -19,6 +19,7 @@ #include "config.h" #include "ata.h" +#include "ata_idle_notify.h" #include "disk.h" #include "fat.h" #include "lcd.h" @@ -364,6 +365,7 @@ void init(void) } #endif + ata_idle_notify_init(); rc = ata_init(); if(rc) { -- cgit v1.1