From 3467ba60b116579a855076b7e993603bf817af93 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Fri, 17 Feb 2006 22:47:56 +0000 Subject: Patch #1423609 by Martin Scarratt and myself: enables using the backlight as record clipping indicator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8722 a1c6a512-1295-4272-9138-f99709370657 --- apps/sound_menu.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'apps/sound_menu.c') 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) &global_settings.rec_startup); } -#endif /* MAS3587F */ +#ifdef CONFIG_BACKLIGHT +static bool cliplight(void) +{ + static const struct opt_items names[] = { + { STR(LANG_OFF) }, + { STR(LANG_MAIN_UNIT) } +#ifdef HAVE_REMOTE_LCD + , { STR(LANG_REMOTE_MAIN) }, + { STR(LANG_REMOTE_UNIT) } +#endif + }; + + return set_option( str(LANG_CLIP_LIGHT), + &global_settings.cliplight, INT, names, +#ifdef HAVE_REMOTE_LCD + 4, NULL ); +#else + 2, NULL ); +#endif +} +#endif /*CONFIG_BACKLIGHT */ + +#endif /* HAVE_RECORDING */ static bool chanconf(void) { @@ -808,6 +830,10 @@ bool recording_menu(bool no_source) items[i++].function = recdirectory; items[i].desc = ID2P(LANG_RECORD_STARTUP); items[i++].function = reconstartup; +#ifdef CONFIG_BACKLIGHT + items[i].desc = ID2P(LANG_CLIP_LIGHT); + items[i++].function = cliplight; +#endif #if !defined(SIMULATOR) && CONFIG_CODEC == MAS3587F items[i].desc = ID2P(LANG_RECORD_TRIGGER); items[i++].function = rectrigger; -- cgit v1.2.3