summaryrefslogtreecommitdiff
path: root/apps/menus/recording_menu.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-15 19:40:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch)
tree98ec96946eeb2ae709cb0528cc6998e21bb9b290 /apps/menus/recording_menu.c
parent17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff)
downloadrockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz
rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'apps/menus/recording_menu.c')
-rw-r--r--apps/menus/recording_menu.c29
1 files changed, 0 insertions, 29 deletions
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
118static int recfrequency_func(void) 118static 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
333MENUITEM_SETTING(rec_quality, &global_settings.rec_quality, NULL);
334MENUITEM_SETTING(rec_editable, &global_settings.rec_editable, NULL);
335#endif
336 313
337MENUITEM_SETTING(rec_split_type, &global_settings.rec_split_type, NULL); 314MENUITEM_SETTING(rec_split_type, &global_settings.rec_split_type, NULL);
338MENUITEM_SETTING(rec_split_method, &global_settings.rec_split_method, NULL); 315MENUITEM_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
627MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS), 604MAKE_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,