summaryrefslogtreecommitdiffstats
path: root/firmware/ata_idle_notify.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-03-17 05:22:53 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-03-17 05:22:53 +0000
commita67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27 (patch)
tree2e62c72ea2e45410216bdbd62b70101db0f4e7ca /firmware/ata_idle_notify.c
parentc6b6bad18fcd68182574086c2eb2a1da30d36d25 (diff)
downloadrockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.tar.gz
rockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.tar.bz2
rockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.zip
It makes more sense for the callback registrar to decide if its a "oneshot" then the callback caller.
(Doing it this way means playback could(/should?) registar a disk spinup callback at init which is called every spinup without needing to be reregistered) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16685 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/ata_idle_notify.c')
-rw-r--r--firmware/ata_idle_notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/ata_idle_notify.c b/firmware/ata_idle_notify.c
index a97c3538da..ab2233da1f 100644
--- a/firmware/ata_idle_notify.c
+++ b/firmware/ata_idle_notify.c
@@ -26,7 +26,7 @@
void register_ata_idle_func(ata_idle_notify function)
{
#if USING_ATA_CALLBACK
- add_event(DISK_EVENT_SPINUP, function);
+ add_event(DISK_EVENT_SPINUP, true, function);
#else
function(); /* just call the function now */
/* this _may_ cause problems later if the calling function
@@ -55,7 +55,7 @@ bool call_ata_idle_notifys(bool force)
}
lock_until = current_tick + 30*HZ;
- send_event(DISK_EVENT_SPINUP, true, NULL);
+ send_event(DISK_EVENT_SPINUP, NULL);
return true;
}