diff options
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/main_menu.c | 30 | ||||
-rw-r--r-- | apps/menus/recording_menu.c | 29 | ||||
-rw-r--r-- | apps/menus/settings_menu.c | 24 | ||||
-rw-r--r-- | apps/menus/sound_menu.c | 15 | ||||
-rw-r--r-- | apps/menus/theme_menu.c | 22 | ||||
-rw-r--r-- | apps/menus/time_menu.c | 6 |
6 files changed, 0 insertions, 126 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index ee60b37497..7f94571226 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -264,21 +264,10 @@ static const char* info_getname(int selected_item, void *data, | |||
264 | return str(LANG_BATTERY_CHARGE); | 264 | return str(LANG_BATTERY_CHARGE); |
265 | else | 265 | else |
266 | #elif CONFIG_CHARGING >= CHARGING_MONITOR | 266 | #elif CONFIG_CHARGING >= CHARGING_MONITOR |
267 | #ifdef ARCHOS_RECORDER | ||
268 | /* Report the particular algorithm state */ | ||
269 | if (charge_state == CHARGING) | ||
270 | return str(LANG_BATTERY_CHARGE); | ||
271 | else if (charge_state == TOPOFF) | ||
272 | return str(LANG_BATTERY_TOPOFF_CHARGE); | ||
273 | else if (charge_state == TRICKLE) | ||
274 | return str(LANG_BATTERY_TRICKLE_CHARGE); | ||
275 | else | ||
276 | #else /* !ARCHOS_RECORDER */ | ||
277 | /* Go by what power management reports */ | 267 | /* Go by what power management reports */ |
278 | if (charging_state()) | 268 | if (charging_state()) |
279 | return str(LANG_BATTERY_CHARGE); | 269 | return str(LANG_BATTERY_CHARGE); |
280 | else | 270 | else |
281 | #endif /* ARCHOS_RECORDER */ | ||
282 | #endif /* CONFIG_CHARGING = */ | 271 | #endif /* CONFIG_CHARGING = */ |
283 | if (battery_level() >= 0) | 272 | if (battery_level() >= 0) |
284 | snprintf(buffer, buffer_len, str(LANG_BATTERY_TIME), | 273 | snprintf(buffer, buffer_len, str(LANG_BATTERY_TIME), |
@@ -394,24 +383,6 @@ static int info_speak_item(int selected_item, void * data) | |||
394 | } | 383 | } |
395 | else | 384 | else |
396 | #elif CONFIG_CHARGING >= CHARGING_MONITOR | 385 | #elif CONFIG_CHARGING >= CHARGING_MONITOR |
397 | #ifdef ARCHOS_RECORDER | ||
398 | /* Report the particular algorithm state */ | ||
399 | if (charge_state == CHARGING) | ||
400 | { | ||
401 | talk_id(LANG_BATTERY_CHARGE, true); | ||
402 | if (battery_level() >= 0) | ||
403 | talk_value(battery_level(), UNIT_PERCENT, true); | ||
404 | } | ||
405 | else if (charge_state == TOPOFF) | ||
406 | talk_id(LANG_BATTERY_TOPOFF_CHARGE, true); | ||
407 | else if (charge_state == TRICKLE) | ||
408 | { | ||
409 | talk_id(LANG_BATTERY_TRICKLE_CHARGE, true); | ||
410 | if (battery_level() >= 0) | ||
411 | talk_value(battery_level(), UNIT_PERCENT, true); | ||
412 | } | ||
413 | else | ||
414 | #else /* !ARCHOS_RECORDER */ | ||
415 | /* Go by what power management reports */ | 386 | /* Go by what power management reports */ |
416 | if (charging_state()) | 387 | if (charging_state()) |
417 | { | 388 | { |
@@ -420,7 +391,6 @@ static int info_speak_item(int selected_item, void * data) | |||
420 | talk_value(battery_level(), UNIT_PERCENT, true); | 391 | talk_value(battery_level(), UNIT_PERCENT, true); |
421 | } | 392 | } |
422 | else | 393 | else |
423 | #endif /* ARCHOS_RECORDER */ | ||
424 | #endif /* CONFIG_CHARGING = */ | 394 | #endif /* CONFIG_CHARGING = */ |
425 | if (battery_level() >= 0) | 395 | if (battery_level() >= 0) |
426 | { | 396 | { |
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c index 21c6cff5fb..0f24420a63 100644 --- a/apps/menus/recording_menu.c +++ b/apps/menus/recording_menu.c | |||
@@ -117,20 +117,6 @@ static void make_options_from_indexes(const struct opt_items *src_names, | |||
117 | 117 | ||
118 | static int recfrequency_func(void) | 118 | static int recfrequency_func(void) |
119 | { | 119 | { |
120 | #if CONFIG_CODEC == MAS3587F | ||
121 | static const struct opt_items names[6] = { | ||
122 | { "44.1kHz", TALK_ID(44, UNIT_KHZ) }, | ||
123 | { "48kHz", TALK_ID(48, UNIT_KHZ) }, | ||
124 | { "32kHz", TALK_ID(32, UNIT_KHZ) }, | ||
125 | { "22.05kHz", TALK_ID(22, UNIT_KHZ) }, | ||
126 | { "24kHz", TALK_ID(24, UNIT_KHZ) }, | ||
127 | { "16kHz", TALK_ID(16, UNIT_KHZ) } | ||
128 | }; | ||
129 | return set_option(str(LANG_FREQUENCY), | ||
130 | &global_settings.rec_frequency, INT, | ||
131 | names, 6, NULL ); | ||
132 | #endif /* CONFIG_CODEC == MAS3587F */ | ||
133 | |||
134 | #if CONFIG_CODEC == SWCODEC | 120 | #if CONFIG_CODEC == SWCODEC |
135 | static const struct opt_items names[REC_NUM_FREQ] = { | 121 | static const struct opt_items names[REC_NUM_FREQ] = { |
136 | REC_HAVE_96_([REC_FREQ_96] = { "96kHz", TALK_ID(96, UNIT_KHZ) },) | 122 | REC_HAVE_96_([REC_FREQ_96] = { "96kHz", TALK_ID(96, UNIT_KHZ) },) |
@@ -221,11 +207,6 @@ static int recchannels_func(void) | |||
221 | [CHN_MODE_STEREO] = { STR(LANG_CHANNEL_STEREO) }, | 207 | [CHN_MODE_STEREO] = { STR(LANG_CHANNEL_STEREO) }, |
222 | [CHN_MODE_MONO] = { STR(LANG_CHANNEL_MONO) } | 208 | [CHN_MODE_MONO] = { STR(LANG_CHANNEL_MONO) } |
223 | }; | 209 | }; |
224 | #if CONFIG_CODEC == MAS3587F | ||
225 | return set_option(str(LANG_CHANNELS), | ||
226 | &global_settings.rec_channels, INT, | ||
227 | names, CHN_NUM_MODES, NULL ); | ||
228 | #endif /* CONFIG_CODEC == MAS3587F */ | ||
229 | 210 | ||
230 | #if CONFIG_CODEC == SWCODEC | 211 | #if CONFIG_CODEC == SWCODEC |
231 | struct opt_items opts[CHN_NUM_MODES]; | 212 | struct opt_items opts[CHN_NUM_MODES]; |
@@ -329,10 +310,6 @@ static int recmenu_callback(int action, | |||
329 | } | 310 | } |
330 | return action; | 311 | return action; |
331 | } | 312 | } |
332 | #if CONFIG_CODEC == MAS3587F | ||
333 | MENUITEM_SETTING(rec_quality, &global_settings.rec_quality, NULL); | ||
334 | MENUITEM_SETTING(rec_editable, &global_settings.rec_editable, NULL); | ||
335 | #endif | ||
336 | 313 | ||
337 | MENUITEM_SETTING(rec_split_type, &global_settings.rec_split_type, NULL); | 314 | MENUITEM_SETTING(rec_split_type, &global_settings.rec_split_type, NULL); |
338 | MENUITEM_SETTING(rec_split_method, &global_settings.rec_split_method, NULL); | 315 | MENUITEM_SETTING(rec_split_method, &global_settings.rec_split_method, NULL); |
@@ -626,9 +603,6 @@ MENUITEM_FUNCTION(save_recpresets_item, 0, ID2P(LANG_SAVE_SETTINGS), | |||
626 | 603 | ||
627 | MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS), | 604 | MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS), |
628 | NULL, Icon_Recording, | 605 | NULL, Icon_Recording, |
629 | #if CONFIG_CODEC == MAS3587F | ||
630 | &rec_quality, | ||
631 | #endif | ||
632 | #if CONFIG_CODEC == SWCODEC | 606 | #if CONFIG_CODEC == SWCODEC |
633 | &recformat, &enc_global_config_menu_item, | 607 | &recformat, &enc_global_config_menu_item, |
634 | #endif | 608 | #endif |
@@ -637,9 +611,6 @@ MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS), | |||
637 | #if CONFIG_CODEC == SWCODEC | 611 | #if CONFIG_CODEC == SWCODEC |
638 | &recmonomode, | 612 | &recmonomode, |
639 | #endif | 613 | #endif |
640 | #if CONFIG_CODEC == MAS3587F | ||
641 | &rec_editable, | ||
642 | #endif | ||
643 | &filesplitoptionsmenu, | 614 | &filesplitoptionsmenu, |
644 | &rec_prerecord_time, | 615 | &rec_prerecord_time, |
645 | &clear_rec_directory_item, | 616 | &clear_rec_directory_item, |
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 2a08ab0a4e..2957b0635c 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c | |||
@@ -339,27 +339,6 @@ MAKE_MENU(keyclick_menu, ID2P(LANG_KEYCLICK), 0, Icon_NOICON, | |||
339 | #endif | 339 | #endif |
340 | #endif | 340 | #endif |
341 | 341 | ||
342 | |||
343 | #if CONFIG_CODEC == MAS3507D | ||
344 | void dac_line_in(bool enable); | ||
345 | static int linein_callback(int action, | ||
346 | const struct menu_item_ex *this_item, | ||
347 | struct gui_synclist *this_list) | ||
348 | { | ||
349 | (void)this_item; | ||
350 | (void)this_list; | ||
351 | switch (action) | ||
352 | { | ||
353 | case ACTION_EXIT_MENUITEM: /* on exit */ | ||
354 | #ifndef SIMULATOR | ||
355 | dac_line_in(global_settings.line_in); | ||
356 | #endif | ||
357 | break; | ||
358 | } | ||
359 | return action; | ||
360 | } | ||
361 | MENUITEM_SETTING(line_in, &global_settings.line_in, linein_callback); | ||
362 | #endif | ||
363 | #if CONFIG_CHARGING | 342 | #if CONFIG_CHARGING |
364 | MENUITEM_SETTING(car_adapter_mode, &global_settings.car_adapter_mode, NULL); | 343 | MENUITEM_SETTING(car_adapter_mode, &global_settings.car_adapter_mode, NULL); |
365 | MENUITEM_SETTING(car_adapter_mode_delay, &global_settings.car_adapter_mode_delay, NULL); | 344 | MENUITEM_SETTING(car_adapter_mode_delay, &global_settings.car_adapter_mode_delay, NULL); |
@@ -440,9 +419,6 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), | |||
440 | #ifdef HAVE_MORSE_INPUT | 419 | #ifdef HAVE_MORSE_INPUT |
441 | &morse_input, | 420 | &morse_input, |
442 | #endif | 421 | #endif |
443 | #if CONFIG_CODEC == MAS3507D | ||
444 | &line_in, | ||
445 | #endif | ||
446 | #if CONFIG_CHARGING | 422 | #if CONFIG_CHARGING |
447 | &car_adapter_mode_menu, | 423 | &car_adapter_mode_menu, |
448 | #endif | 424 | #endif |
diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c index f39d980a35..ee966ac62a 100644 --- a/apps/menus/sound_menu.c +++ b/apps/menus/sound_menu.c | |||
@@ -218,17 +218,6 @@ static int timestretch_callback(int action, | |||
218 | &compressor_knee, &compressor_attack, &compressor_release); | 218 | &compressor_knee, &compressor_attack, &compressor_release); |
219 | #endif | 219 | #endif |
220 | 220 | ||
221 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
222 | MENUITEM_SETTING(loudness, &global_settings.loudness, NULL); | ||
223 | MENUITEM_SETTING(avc, &global_settings.avc, NULL); | ||
224 | MENUITEM_SETTING(superbass, &global_settings.superbass, NULL); | ||
225 | MENUITEM_SETTING(mdb_enable, &global_settings.mdb_enable, NULL); | ||
226 | MENUITEM_SETTING(mdb_strength, &global_settings.mdb_strength, NULL); | ||
227 | MENUITEM_SETTING(mdb_harmonics, &global_settings.mdb_harmonics, NULL); | ||
228 | MENUITEM_SETTING(mdb_center, &global_settings.mdb_center, NULL); | ||
229 | MENUITEM_SETTING(mdb_shape, &global_settings.mdb_shape, NULL); | ||
230 | #endif | ||
231 | |||
232 | #ifdef HAVE_SPEAKER | 221 | #ifdef HAVE_SPEAKER |
233 | MENUITEM_SETTING(speaker_mode, &global_settings.speaker_mode, NULL); | 222 | MENUITEM_SETTING(speaker_mode, &global_settings.speaker_mode, NULL); |
234 | #endif | 223 | #endif |
@@ -272,10 +261,6 @@ MAKE_MENU(sound_settings, ID2P(LANG_SOUND_SETTINGS), NULL, Icon_Audio, | |||
272 | #endif | 261 | #endif |
273 | ,&compressor_menu | 262 | ,&compressor_menu |
274 | #endif | 263 | #endif |
275 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
276 | ,&loudness,&avc,&superbass,&mdb_enable,&mdb_strength | ||
277 | ,&mdb_harmonics,&mdb_center,&mdb_shape | ||
278 | #endif | ||
279 | #ifdef HAVE_SPEAKER | 264 | #ifdef HAVE_SPEAKER |
280 | ,&speaker_mode | 265 | ,&speaker_mode |
281 | #endif | 266 | #endif |
diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c index 10d1291daa..138a2f928a 100644 --- a/apps/menus/theme_menu.c +++ b/apps/menus/theme_menu.c | |||
@@ -198,22 +198,6 @@ static int statusbar_callback(int action, | |||
198 | return statusbar_callback_ex(action, this_item, SCREEN_MAIN); | 198 | return statusbar_callback_ex(action, this_item, SCREEN_MAIN); |
199 | } | 199 | } |
200 | 200 | ||
201 | #ifdef HAVE_BUTTONBAR | ||
202 | static int buttonbar_callback(int action, | ||
203 | const struct menu_item_ex *this_item, | ||
204 | struct gui_synclist *this_list) | ||
205 | { | ||
206 | (void)this_item; | ||
207 | (void)this_list; | ||
208 | switch (action) | ||
209 | { | ||
210 | case ACTION_EXIT_MENUITEM: | ||
211 | viewportmanager_theme_changed(THEME_BUTTONBAR); | ||
212 | break; | ||
213 | } | ||
214 | return ACTION_REDRAW; | ||
215 | } | ||
216 | #endif | ||
217 | MENUITEM_SETTING(scrollbar_item, &global_settings.scrollbar, NULL); | 201 | MENUITEM_SETTING(scrollbar_item, &global_settings.scrollbar, NULL); |
218 | MENUITEM_SETTING(scrollbar_width, &global_settings.scrollbar_width, NULL); | 202 | MENUITEM_SETTING(scrollbar_width, &global_settings.scrollbar_width, NULL); |
219 | MENUITEM_SETTING(statusbar, &global_settings.statusbar, | 203 | MENUITEM_SETTING(statusbar, &global_settings.statusbar, |
@@ -222,9 +206,6 @@ MENUITEM_SETTING(statusbar, &global_settings.statusbar, | |||
222 | MENUITEM_SETTING(remote_statusbar, &global_settings.remote_statusbar, | 206 | MENUITEM_SETTING(remote_statusbar, &global_settings.remote_statusbar, |
223 | statusbar_callback_remote); | 207 | statusbar_callback_remote); |
224 | #endif | 208 | #endif |
225 | #ifdef HAVE_BUTTONBAR | ||
226 | MENUITEM_SETTING(buttonbar, &global_settings.buttonbar, buttonbar_callback); | ||
227 | #endif | ||
228 | MENUITEM_SETTING(volume_type, &global_settings.volume_type, NULL); | 209 | MENUITEM_SETTING(volume_type, &global_settings.volume_type, NULL); |
229 | MENUITEM_SETTING(battery_display, &global_settings.battery_display, NULL); | 210 | MENUITEM_SETTING(battery_display, &global_settings.battery_display, NULL); |
230 | MAKE_MENU(bars_menu, ID2P(LANG_BARS_MENU), 0, Icon_NOICON, | 211 | MAKE_MENU(bars_menu, ID2P(LANG_BARS_MENU), 0, Icon_NOICON, |
@@ -232,9 +213,6 @@ MAKE_MENU(bars_menu, ID2P(LANG_BARS_MENU), 0, Icon_NOICON, | |||
232 | #ifdef HAVE_REMOTE_LCD | 213 | #ifdef HAVE_REMOTE_LCD |
233 | &remote_statusbar, | 214 | &remote_statusbar, |
234 | #endif | 215 | #endif |
235 | #if CONFIG_KEYPAD == RECORDER_PAD | ||
236 | &buttonbar, | ||
237 | #endif | ||
238 | &volume_type | 216 | &volume_type |
239 | #if (CONFIG_BATTERY_MEASURE != 0) | 217 | #if (CONFIG_BATTERY_MEASURE != 0) |
240 | , &battery_display | 218 | , &battery_display |
diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c index 811996ca40..6ebf005ffd 100644 --- a/apps/menus/time_menu.c +++ b/apps/menus/time_menu.c | |||
@@ -264,12 +264,6 @@ int time_screen(void* ignored) | |||
264 | FOR_NB_SCREENS(i) | 264 | FOR_NB_SCREENS(i) |
265 | { | 265 | { |
266 | viewport_set_defaults(&clock_vps[i], i); | 266 | viewport_set_defaults(&clock_vps[i], i); |
267 | #ifdef HAVE_BUTTONBAR | ||
268 | if (global_settings.buttonbar) | ||
269 | { | ||
270 | clock_vps[i].height -= BUTTONBAR_HEIGHT; | ||
271 | } | ||
272 | #endif | ||
273 | nb_lines = viewport_get_nb_lines(&clock_vps[i]); | 267 | nb_lines = viewport_get_nb_lines(&clock_vps[i]); |
274 | 268 | ||
275 | gui_synclist_set_viewport_defaults(&menu[i], i); | 269 | gui_synclist_set_viewport_defaults(&menu[i], i); |