summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
-rw-r--r--apps/recorder/peakmeter.c2
-rw-r--r--apps/recorder/recording.c6
-rw-r--r--apps/tagtree.c2
5 files changed, 3 insertions, 11 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 38c95cd572..08beddf8fb 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -263,9 +263,7 @@ static const struct plugin_api rockbox_api = {
263 read_line, 263 read_line,
264 settings_parseline, 264 settings_parseline,
265 ata_sleep, 265 ata_sleep,
266#ifndef SIMULATOR
267 ata_disk_is_active, 266 ata_disk_is_active,
268#endif
269 ata_spin, 267 ata_spin,
270 ata_spindown, 268 ata_spindown,
271 reload_directory, 269 reload_directory,
diff --git a/apps/plugin.h b/apps/plugin.h
index 5223f85d2c..28c3d5a5a5 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -364,9 +364,7 @@ struct plugin_api {
364 int (*read_line)(int fd, char* buffer, int buffer_size); 364 int (*read_line)(int fd, char* buffer, int buffer_size);
365 bool (*settings_parseline)(char* line, char** name, char** value); 365 bool (*settings_parseline)(char* line, char** name, char** value);
366 void (*ata_sleep)(void); 366 void (*ata_sleep)(void);
367#ifndef SIMULATOR
368 bool (*ata_disk_is_active)(void); 367 bool (*ata_disk_is_active)(void);
369#endif
370 void (*ata_spin)(void); 368 void (*ata_spin)(void);
371 void (*ata_spindown)(int seconds); 369 void (*ata_spindown)(int seconds);
372 void (*reload_directory)(void); 370 void (*reload_directory)(void);
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 29be704f0c..fc7c9bc5f5 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[],
1335 long next_refresh = current_tick; 1335 long next_refresh = current_tick;
1336 long next_big_refresh = current_tick + HZ / 10; 1336 long next_big_refresh = current_tick + HZ / 10;
1337 int i; 1337 int i;
1338#if (CONFIG_CODEC == SWCODEC) || defined(SIMULATOR) 1338#if (CONFIG_CODEC == SWCODEC)
1339 bool highperf = false; 1339 bool highperf = false;
1340#else 1340#else
1341 /* On MAS targets, we need to poll as often as possible in order to not 1341 /* 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 de4a2e6805..4afa87e5b6 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)
292 peak_valid_mem[peak_time % 3] = *peak_l; 292 peak_valid_mem[peak_time % 3] = *peak_l;
293 if (((peak_valid_mem[0] == peak_valid_mem[1]) && 293 if (((peak_valid_mem[0] == peak_valid_mem[1]) &&
294 (peak_valid_mem[1] == peak_valid_mem[2])) && 294 (peak_valid_mem[1] == peak_valid_mem[2])) &&
295 ((*peak_l < 32767) 295 ((*peak_l < 32767) || ata_disk_is_active()))
296#ifndef SIMULATOR
297 || ata_disk_is_active()
298#endif
299 ))
300 return false; 296 return false;
301 297
302 if (*peak_r > *peak_l) 298 if (*peak_r > *peak_l)
diff --git a/apps/tagtree.c b/apps/tagtree.c
index b8fffa9b56..eb9df07113 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,
1057 /* Show search progress straight away if the disk needs to spin up, 1057 /* Show search progress straight away if the disk needs to spin up,
1058 otherwise show it after the normal 1/2 second delay */ 1058 otherwise show it after the normal 1/2 second delay */
1059 show_search_progress( 1059 show_search_progress(
1060#if !defined(HAVE_FLASH_STORAGE) && !defined(SIMULATOR) 1060#if !defined(HAVE_FLASH_STORAGE)
1061 ata_disk_is_active() 1061 ata_disk_is_active()
1062#else 1062#else
1063 true 1063 true