summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/peakmeter.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index c4bf07146d..fe97bd83d2 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -1318,10 +1318,15 @@ int peak_meter_draw_get_btn(int x, int y[], int height, int nb_screens)
1318 long next_refresh = current_tick; 1318 long next_refresh = current_tick;
1319 long next_big_refresh = current_tick + HZ / 10; 1319 long next_big_refresh = current_tick + HZ / 10;
1320 int i; 1320 int i;
1321#ifndef SIMULATOR 1321#if (CONFIG_CODEC == SWCODEC) || defined(SIMULATOR)
1322 bool highperf = !ata_disk_is_active();
1323#else
1324 bool highperf = false; 1322 bool highperf = false;
1323#else
1324 /* On MAS targets, we need to poll as often as possible in order to not
1325 * miss a peak, as the MAS does only provide a quasi-peak. When the disk
1326 * is active, it must not draw too much CPU power or a buffer overrun can
1327 * happen when saving a recording. As a compromise, poll only once per tick
1328 * when the disk is active, otherwise spin around as fast as possible. */
1329 bool highperf = !ata_disk_is_active();
1325#endif 1330#endif
1326 bool dopeek = true; 1331 bool dopeek = true;
1327 1332