summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 7d68daee98..939d4880e2 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -277,9 +277,15 @@ static const struct bit_entry rtc_bits[] =
277 {1, S_O(bidi_support), false, "bidi hebrew/arabic", off_on }, 277 {1, S_O(bidi_support), false, "bidi hebrew/arabic", off_on },
278#endif 278#endif
279 279
280#ifdef HAVE_REMOTE_LCD_TICKING /* move to REMOTE_LCD next time we bump version */ 280#ifdef HAVE_REMOTE_LCD /* move to REMOTE_LCD next time we bump version */
281#ifdef HAVE_REMOTE_LCD_TICKING
281 {1, S_O(remote_reduce_ticking), false, "remote reduce ticking", off_on }, 282 {1, S_O(remote_reduce_ticking), false, "remote reduce ticking", off_on },
282#endif 283#endif
284#ifdef HAVE_CHARGING
285 {1, S_O(remote_backlight_on_when_charging), false,
286 "remote backlight when plugged", off_on },
287#endif
288#endif
283 289
284 /* new stuff to be added here */ 290 /* new stuff to be added here */
285 /* If values are just added to the end, no need to bump the version. */ 291 /* If values are just added to the end, no need to bump the version. */
@@ -475,6 +481,10 @@ static const struct bit_entry hd_bits[] =
475 {8|SIGNED, S_O(rec_adc_right_gain), 0, /* 0dB */ "adc right gain", NULL }, /* -128...48 */ 481 {8|SIGNED, S_O(rec_adc_right_gain), 0, /* 0dB */ "adc right gain", NULL }, /* -128...48 */
476#endif 482#endif
477 483
484#ifdef HAVE_REMOTE_LCD
485 {1, S_O(remote_caption_backlight), false,
486 "remote caption backlight", off_on },
487#endif
478 /* If values are just added to the end, no need to bump the version. */ 488 /* If values are just added to the end, no need to bump the version. */
479 /* new stuff to be added at the end */ 489 /* new stuff to be added at the end */
480 490
@@ -862,12 +872,16 @@ void settings_apply(void)
862#endif 872#endif
863 remote_backlight_set_timeout(global_settings.remote_backlight_timeout); 873 remote_backlight_set_timeout(global_settings.remote_backlight_timeout);
864#endif 874#endif
875#ifdef CONFIG_BACKLIGHT
865 backlight_set_timeout(global_settings.backlight_timeout); 876 backlight_set_timeout(global_settings.backlight_timeout);
877#ifdef HAVE_CHARGING
866 backlight_set_on_when_charging(global_settings.backlight_on_when_charging); 878 backlight_set_on_when_charging(global_settings.backlight_on_when_charging);
867#if CONFIG_BACKLIGHT == BL_IRIVER_H100 879#endif
880#if (CONFIG_BACKLIGHT == BL_IRIVER_H100) && !defined(SIMULATOR)
868 backlight_set_fade_in(global_settings.backlight_fade_in); 881 backlight_set_fade_in(global_settings.backlight_fade_in);
869 backlight_set_fade_out(global_settings.backlight_fade_out); 882 backlight_set_fade_out(global_settings.backlight_fade_out);
870#endif 883#endif
884#endif
871 ata_spindown(global_settings.disk_spindown); 885 ata_spindown(global_settings.disk_spindown);
872#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR) 886#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR)
873 dac_line_in(global_settings.line_in); 887 dac_line_in(global_settings.line_in);