diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-03 13:37:57 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-03 13:37:57 +0000 |
| commit | f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3 (patch) | |
| tree | a17522b121489fe8c52c40bd03f1ede2ccfcf8ab /apps | |
| parent | 6fd40a57b81484a57f1c5a8ddbd48855a89e660f (diff) | |
| download | rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.zip rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.tar.gz rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.tar.bz2 rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.tar.xz | |
Implement FS#8947 - Add a stub in the simulator for ata_disk_is_active. This make it possible to clean up some #ifdef SIMULATOR macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17927 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugin.c | 2 | ||||
| -rw-r--r-- | apps/plugin.h | 2 | ||||
| -rw-r--r-- | apps/recorder/peakmeter.c | 2 | ||||
| -rw-r--r-- | apps/recorder/recording.c | 6 | ||||
| -rw-r--r-- | apps/tagtree.c | 2 |
5 files changed, 3 insertions, 11 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 38c95cd..08beddf 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -263,9 +263,7 @@ static const struct plugin_api rockbox_api = { read_line, settings_parseline, ata_sleep, -#ifndef SIMULATOR ata_disk_is_active, -#endif ata_spin, ata_spindown, reload_directory, diff --git a/apps/plugin.h b/apps/plugin.h index 5223f85..28c3d5a 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -364,9 +364,7 @@ struct plugin_api { int (*read_line)(int fd, char* buffer, int buffer_size); bool (*settings_parseline)(char* line, char** name, char** value); void (*ata_sleep)(void); -#ifndef SIMULATOR bool (*ata_disk_is_active)(void); -#endif void (*ata_spin)(void); void (*ata_spindown)(int seconds); void (*reload_directory)(void); diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 29be704..fc7c9bc 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c @@ -1335,7 +1335,7 @@ int peak_meter_draw_get_btn(int action_context, int x, int y[], long next_refresh = current_tick; long next_big_refresh = current_tick + HZ / 10; int i; -#if (CONFIG_CODEC == SWCODEC) || defined(SIMULATOR) +#if (CONFIG_CODEC == SWCODEC) bool highperf = false; #else /* On MAS targets, we need to poll as often as possible in order to not diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index de4a2e6..4afa87e 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -292,11 +292,7 @@ static bool read_peak_levels(int *peak_l, int *peak_r, int *balance) peak_valid_mem[peak_time % 3] = *peak_l; if (((peak_valid_mem[0] == peak_valid_mem[1]) && (peak_valid_mem[1] == peak_valid_mem[2])) && - ((*peak_l < 32767) -#ifndef SIMULATOR - || ata_disk_is_active() -#endif - )) + ((*peak_l < 32767) || ata_disk_is_active())) return false; if (*peak_r > *peak_l) diff --git a/apps/tagtree.c b/apps/tagtree.c index b8fffa9..eb9df07 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -1057,7 +1057,7 @@ static int retrieve_entries(struct tree_context *c, struct tagcache_search *tcs, /* Show search progress straight away if the disk needs to spin up, otherwise show it after the normal 1/2 second delay */ show_search_progress( -#if !defined(HAVE_FLASH_STORAGE) && !defined(SIMULATOR) +#if !defined(HAVE_FLASH_STORAGE) ata_disk_is_active() #else true |