summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-07 01:16:25 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-07 01:16:25 +0000
commit9e554a87fc79825b32d2de050734a52d5753049b (patch)
tree58c21c5d6dcfc52cf3b6bc6fb7b31e571e700326 /apps/settings_list.c
parentf609c5bd3ef8b378394b920a001441ba01db04cf (diff)
downloadrockbox-9e554a87fc79825b32d2de050734a52d5753049b.tar.gz
rockbox-9e554a87fc79825b32d2de050734a52d5753049b.zip
Fix alarm wake up. If the target has fm or recording (or both) an option is in the System menu to choose what to start when the alarm wakes up,
otherwise the WPS will start git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12654 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r--apps/settings_list.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index c01584f8e2..ac410d57ca 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -1113,6 +1113,20 @@ const struct settings_list settings[] = {
1113 ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS) 1113 ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS)
1114 ), 1114 ),
1115 SYSTEM_SETTING(NVRAM(1),last_screen,-1), 1115 SYSTEM_SETTING(NVRAM(1),last_screen,-1),
1116#if defined(HAVE_RTC_ALARM) && \
1117 (defined(HAVE_RECORDING) || CONFIG_TUNER)
1118 CHOICE_SETTING(0, alarm_wake_up_screen, LANG_ALARM_WAKEUP_SCREEN,
1119 ALARM_START_WPS,
1120 "alarm wakeup screen", ALARM_SETTING_TEXT,
1121 NULL, ALARM_START_COUNT, ID2P(LANG_RESUME_PLAYBACK)
1122#if CONFIG_TUNER
1123 ,ID2P(LANG_FM_RADIO)
1124#endif
1125#ifdef HAVE_RECORDING
1126 ,ID2P(LANG_RECORDING)
1127#endif
1128 ),
1129#endif /* HAVE_RTC_ALARM */
1116}; 1130};
1117 1131
1118const int nb_settings = sizeof(settings)/sizeof(*settings); 1132const int nb_settings = sizeof(settings)/sizeof(*settings);