summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/test_codec.c8
-rw-r--r--apps/plugins/test_disk.c5
-rw-r--r--apps/plugins/test_fps.c6
-rw-r--r--apps/plugins/test_gfx.c5
-rw-r--r--apps/plugins/test_grey.c6
5 files changed, 22 insertions, 8 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 01efcf69e5..ac0dbf1633 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -274,8 +274,9 @@ static int fill_buffer(int new_offset){
274 { 274 {
275 log_text("Read failed.",true); 275 log_text("Read failed.",true);
276 DEBUGF("read fail: got %d bytes, expected %d\n", (int)n, (int)audiobufsize); 276 DEBUGF("read fail: got %d bytes, expected %d\n", (int)n, (int)audiobufsize);
277#ifdef HAVE_BACKLIGHT
277 rb->backlight_on(); 278 rb->backlight_on();
278 279#endif
279 if (fd >= 0) 280 if (fd >= 0)
280 { 281 {
281 rb->close(fd); 282 rb->close(fd);
@@ -723,7 +724,9 @@ static enum plugin_status test_track(const char* filename)
723 724
724 /* Be sure it is done */ 725 /* Be sure it is done */
725 rb->codec_thread_do_callback(NULL, NULL); 726 rb->codec_thread_do_callback(NULL, NULL);
727#ifdef HAVE_BACKLIGHT
726 rb->backlight_on(); 728 rb->backlight_on();
729#endif
727 log_text(str,true); 730 log_text(str,true);
728 731
729 if (codec_action == CODEC_ACTION_HALT) 732 if (codec_action == CODEC_ACTION_HALT)
@@ -771,8 +774,9 @@ static enum plugin_status test_track(const char* filename)
771 res = PLUGIN_OK; 774 res = PLUGIN_OK;
772 775
773exit: 776exit:
777#ifdef HAVE_BACKLIGHT
774 rb->backlight_on(); 778 rb->backlight_on();
775 779#endif
776 if (fd >= 0) 780 if (fd >= 0)
777 { 781 {
778 rb->close(fd); 782 rb->close(fd);
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c
index 339bcb8020..b689ba672e 100644
--- a/apps/plugins/test_disk.c
+++ b/apps/plugins/test_disk.c
@@ -467,8 +467,10 @@ enum plugin_status plugin_start(const void* parameter)
467 467
468 rb->srand(*rb->current_tick); 468 rb->srand(*rb->current_tick);
469 469
470#ifdef HAVE_BACKLIGHT
470 /* Turn off backlight timeout */ 471 /* Turn off backlight timeout */
471 backlight_ignore_timeout(); 472 backlight_ignore_timeout();
473#endif
472 474
473 while(!quit) 475 while(!quit)
474 { 476 {
@@ -487,8 +489,9 @@ enum plugin_status plugin_start(const void* parameter)
487 } 489 }
488 490
489 /* Turn on backlight timeout (revert to settings) */ 491 /* Turn on backlight timeout (revert to settings) */
492#ifdef HAVE_BACKLIGHT
490 backlight_use_settings(); 493 backlight_use_settings();
491 494#endif
492 rb->rmdir(testbasedir); 495 rb->rmdir(testbasedir);
493 496
494 return PLUGIN_OK; 497 return PLUGIN_OK;
diff --git a/apps/plugins/test_fps.c b/apps/plugins/test_fps.c
index 358ab827f3..ddf938ac25 100644
--- a/apps/plugins/test_fps.c
+++ b/apps/plugins/test_fps.c
@@ -401,8 +401,9 @@ enum plugin_status plugin_start(const void* parameter)
401#if (CONFIG_PLATFORM & PLATFORM_NATIVE) 401#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
402 cpu_freq = *rb->cpu_frequency; /* remember CPU frequency */ 402 cpu_freq = *rb->cpu_frequency; /* remember CPU frequency */
403#endif 403#endif
404#ifdef HAVE_BACKLIGHT
404 backlight_ignore_timeout(); 405 backlight_ignore_timeout();
405 406#endif
406 time_main_update(); 407 time_main_update();
407 rb->sleep(HZ); 408 rb->sleep(HZ);
408#if defined(HAVE_LCD_COLOR) && (MEMORYSIZE > 2) 409#if defined(HAVE_LCD_COLOR) && (MEMORYSIZE > 2)
@@ -423,8 +424,9 @@ enum plugin_status plugin_start(const void* parameter)
423 (cpu_freq + 500000) / 1000000); 424 (cpu_freq + 500000) / 1000000);
424 log_text(str); 425 log_text(str);
425#endif 426#endif
427#ifdef HAVE_BACKLIGHT
426 backlight_use_settings(); 428 backlight_use_settings();
427 429#endif
428 /* wait until user closes plugin */ 430 /* wait until user closes plugin */
429 plugin_quit(); 431 plugin_quit();
430 432
diff --git a/apps/plugins/test_gfx.c b/apps/plugins/test_gfx.c
index 51d8f40cd7..7734179159 100644
--- a/apps/plugins/test_gfx.c
+++ b/apps/plugins/test_gfx.c
@@ -495,8 +495,9 @@ enum plugin_status plugin_start(const void* parameter)
495 rb->lcd_set_backdrop(NULL); 495 rb->lcd_set_backdrop(NULL);
496 rb->lcd_clear_display(); 496 rb->lcd_clear_display();
497#endif 497#endif
498#ifdef HAVE_BACKLIGHT
498 backlight_ignore_timeout(); 499 backlight_ignore_timeout();
499 500#endif
500 rb->splashf(0, "LCD driver performance test, please wait %d sec", 501 rb->splashf(0, "LCD driver performance test, please wait %d sec",
501 7*4*DURATION/HZ); 502 7*4*DURATION/HZ);
502 init_rand_table(); 503 init_rand_table();
@@ -521,7 +522,9 @@ enum plugin_status plugin_start(const void* parameter)
521 (cpu_freq + 500000) / 1000000); 522 (cpu_freq + 500000) / 1000000);
522#endif 523#endif
523 rb->close(log_fd); 524 rb->close(log_fd);
525#ifdef HAVE_BACKLIGHT
524 backlight_use_settings(); 526 backlight_use_settings();
527#endif
525#ifdef TEST_GREYLIB 528#ifdef TEST_GREYLIB
526 grey_release(); 529 grey_release();
527#endif 530#endif
diff --git a/apps/plugins/test_grey.c b/apps/plugins/test_grey.c
index c4179df135..121cbad051 100644
--- a/apps/plugins/test_grey.c
+++ b/apps/plugins/test_grey.c
@@ -123,9 +123,9 @@ enum plugin_status plugin_start(const void* parameter)
123 } 123 }
124 for (i = 0; i <= STEPS; i++) 124 for (i = 0; i <= STEPS; i++)
125 input_levels[i] = lcd_levels[i] = (255 * i + (STEPS/2)) / STEPS; 125 input_levels[i] = lcd_levels[i] = (255 * i + (STEPS/2)) / STEPS;
126 126#ifdef HAVE_BACKLIGHT
127 backlight_ignore_timeout(); 127 backlight_ignore_timeout();
128 128#endif
129 grey_set_background(0); /* set background to black */ 129 grey_set_background(0); /* set background to black */
130 grey_clear_display(); 130 grey_clear_display();
131 grey_show(true); 131 grey_show(true);
@@ -221,6 +221,8 @@ enum plugin_status plugin_start(const void* parameter)
221 } 221 }
222 222
223 grey_release(); 223 grey_release();
224#ifdef HAVE_BACKLIGHT
224 backlight_use_settings(); 225 backlight_use_settings();
226#endif
225 return PLUGIN_OK; 227 return PLUGIN_OK;
226} 228}