summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-05-20 20:26:36 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-05-20 20:26:36 +0000
commit8f659ae8d3845b40ff93ebfa3692f7b2302e6c7e (patch)
treea54381487762ec69bdec99f69dd24b148d3400b9 /apps/settings_list.c
parent731d7a16c3f606d586237fc8b4086ee54a0d0704 (diff)
downloadrockbox-8f659ae8d3845b40ff93ebfa3692f7b2302e6c7e.tar.gz
rockbox-8f659ae8d3845b40ff93ebfa3692f7b2302e6c7e.zip
Use bitmasks to define which inputs are available. Makes it easier to remove old assumptions of which are available. Inspired by e200 being unique in having FM Radio and Mic but no Line. Doesn't remove the assumption that Mic is available or that one of Mic and/or Line is available just to avoid excessive #ifdef'ing until needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13448 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r--apps/settings_list.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index d39779607d..c6adfe884a 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -747,14 +747,12 @@ const struct settings_list settings[] = {
747 "rec split method", "Time,Filesize", NULL, 2, 747 "rec split method", "Time,Filesize", NULL, 2,
748 ID2P(LANG_REC_TIME), ID2P(LANG_REC_SIZE)), 748 ID2P(LANG_REC_TIME), ID2P(LANG_REC_SIZE)),
749 {F_T_INT,&global_settings.rec_source,LANG_RECORDING_SOURCE,INT(0), 749 {F_T_INT,&global_settings.rec_source,LANG_RECORDING_SOURCE,INT(0),
750 "rec source","mic,line" 750 "rec source",
751#ifdef HAVE_SPDIF_IN 751 &HAVE_MIC_REC_(",mic")
752 ",spdif" 752 HAVE_LINE_REC_(",line")
753#endif 753 HAVE_SPDIF_REC_(",spdif")
754#ifdef HAVE_FMRADIO_IN 754 HAVE_FMRADIO_REC_(",fmradio")[1]
755 ",fmradio" 755 ,UNUSED},
756#endif
757 ,UNUSED},
758 INT_SETTING(0, rec_prerecord_time, LANG_RECORD_PRERECORD_TIME, 756 INT_SETTING(0, rec_prerecord_time, LANG_RECORD_PRERECORD_TIME,
759 0, "prerecording time", 757 0, "prerecording time",
760 UNIT_SEC, 0, 30, 1, rectime_formatter, rectime_getlang, NULL), 758 UNIT_SEC, 0, 30, 1, rectime_formatter, rectime_getlang, NULL),