From 46573019a53dca411f754d40d0f21c1e4eafaedf Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Tue, 7 Oct 2008 19:37:33 +0000 Subject: add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for an actual disk (i.e. related to spindown, skipping,...) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18735 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/jpeg.c | 4 ++-- apps/plugins/mpegplayer/stream_mgr.h | 2 +- apps/plugins/video.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index b43dee5d74..397fab7bd6 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -2633,7 +2633,7 @@ int show_menu(void) /* return 1 to quit */ break; } -#if !defined(SIMULATOR) && !defined(HAVE_FLASH_STORAGE) +#if !defined(SIMULATOR) && defined(HAVE_DISK_STORAGE) /* change ata spindown time based on slideshow time setting */ immediate_ata_off = false; rb->ata_spindown(rb->global_settings->disk_spindown); @@ -3412,7 +3412,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame ARRAYLEN(jpeg_config), JPEG_SETTINGS_VERSION); } -#if !defined(SIMULATOR) && !defined(HAVE_FLASH_STORAGE) +#if !defined(SIMULATOR) && defined(HAVE_DISK_STORAGE) /* set back ata spindown time in case we changed it */ rb->ata_spindown(rb->global_settings->disk_spindown); #endif diff --git a/apps/plugins/mpegplayer/stream_mgr.h b/apps/plugins/mpegplayer/stream_mgr.h index 71a3fd51c6..c94fa84089 100644 --- a/apps/plugins/mpegplayer/stream_mgr.h +++ b/apps/plugins/mpegplayer/stream_mgr.h @@ -152,7 +152,7 @@ static inline bool stream_can_seek(void) /* Keep the disk spinning (for seeking and browsing) */ static inline void stream_keep_disk_active(void) { -#ifndef HAVE_FLASH_STORAGE +#ifdef HAVE_DISK_STORAGE rb->ata_spin(); #endif } diff --git a/apps/plugins/video.c b/apps/plugins/video.c index fbd05bd006..6a380b8e3c 100644 --- a/apps/plugins/video.c +++ b/apps/plugins/video.c @@ -656,7 +656,7 @@ int PlayTick(int fd) } if (!gPlay.bRefilling -#ifndef HAVE_FLASH_STORAGE +#ifdef HAVE_DISK_STORAGE && rb->global_settings->disk_spindown < 20 /* condition for test only */ #endif ) -- cgit v1.2.3