diff options
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index e4820b3379..b248ca99a5 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c | |||
@@ -341,7 +341,29 @@ static bool reconstartup(void) | |||
341 | &global_settings.rec_startup); | 341 | &global_settings.rec_startup); |
342 | } | 342 | } |
343 | 343 | ||
344 | #endif /* MAS3587F */ | 344 | #ifdef CONFIG_BACKLIGHT |
345 | static bool cliplight(void) | ||
346 | { | ||
347 | static const struct opt_items names[] = { | ||
348 | { STR(LANG_OFF) }, | ||
349 | { STR(LANG_MAIN_UNIT) } | ||
350 | #ifdef HAVE_REMOTE_LCD | ||
351 | , { STR(LANG_REMOTE_MAIN) }, | ||
352 | { STR(LANG_REMOTE_UNIT) } | ||
353 | #endif | ||
354 | }; | ||
355 | |||
356 | return set_option( str(LANG_CLIP_LIGHT), | ||
357 | &global_settings.cliplight, INT, names, | ||
358 | #ifdef HAVE_REMOTE_LCD | ||
359 | 4, NULL ); | ||
360 | #else | ||
361 | 2, NULL ); | ||
362 | #endif | ||
363 | } | ||
364 | #endif /*CONFIG_BACKLIGHT */ | ||
365 | |||
366 | #endif /* HAVE_RECORDING */ | ||
345 | 367 | ||
346 | static bool chanconf(void) | 368 | static bool chanconf(void) |
347 | { | 369 | { |
@@ -808,6 +830,10 @@ bool recording_menu(bool no_source) | |||
808 | items[i++].function = recdirectory; | 830 | items[i++].function = recdirectory; |
809 | items[i].desc = ID2P(LANG_RECORD_STARTUP); | 831 | items[i].desc = ID2P(LANG_RECORD_STARTUP); |
810 | items[i++].function = reconstartup; | 832 | items[i++].function = reconstartup; |
833 | #ifdef CONFIG_BACKLIGHT | ||
834 | items[i].desc = ID2P(LANG_CLIP_LIGHT); | ||
835 | items[i++].function = cliplight; | ||
836 | #endif | ||
811 | #if !defined(SIMULATOR) && CONFIG_CODEC == MAS3587F | 837 | #if !defined(SIMULATOR) && CONFIG_CODEC == MAS3587F |
812 | items[i].desc = ID2P(LANG_RECORD_TRIGGER); | 838 | items[i].desc = ID2P(LANG_RECORD_TRIGGER); |
813 | items[i++].function = rectrigger; | 839 | items[i++].function = rectrigger; |