diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-05-20 20:26:36 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-05-20 20:26:36 +0000 |
commit | 8f659ae8d3845b40ff93ebfa3692f7b2302e6c7e (patch) | |
tree | a54381487762ec69bdec99f69dd24b148d3400b9 /firmware/export/config-h120.h | |
parent | 731d7a16c3f606d586237fc8b4086ee54a0d0704 (diff) | |
download | rockbox-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 'firmware/export/config-h120.h')
-rw-r--r-- | firmware/export/config-h120.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index a0ad638fa2..7e5a66a3dd 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h | |||
@@ -75,6 +75,11 @@ | |||
75 | /* define this if you have recording possibility */ | 75 | /* define this if you have recording possibility */ |
76 | #define HAVE_RECORDING | 76 | #define HAVE_RECORDING |
77 | 77 | ||
78 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
79 | explicitly if different */ | ||
80 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \ | ||
81 | SRC_CAP_FMRADIO | SRC_CAP_SPDIF) | ||
82 | |||
78 | /* define hardware samples rate caps mask */ | 83 | /* define hardware samples rate caps mask */ |
79 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) | 84 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) |
80 | 85 | ||
@@ -150,18 +155,12 @@ | |||
150 | 155 | ||
151 | #endif /* !SIMULATOR */ | 156 | #endif /* !SIMULATOR */ |
152 | 157 | ||
153 | /* Define this for S/PDIF input available */ | ||
154 | #define HAVE_SPDIF_IN | ||
155 | |||
156 | /* Define this for S/PDIF output available */ | 158 | /* Define this for S/PDIF output available */ |
157 | #define HAVE_SPDIF_OUT | 159 | #define HAVE_SPDIF_OUT |
158 | 160 | ||
159 | /* Define this if you can control the S/PDIF power */ | 161 | /* Define this if you can control the S/PDIF power */ |
160 | #define HAVE_SPDIF_POWER | 162 | #define HAVE_SPDIF_POWER |
161 | 163 | ||
162 | /* Define this for FM radio input available */ | ||
163 | #define HAVE_FMRADIO_IN | ||
164 | |||
165 | /* Define this if you have a serial port */ | 164 | /* Define this if you have a serial port */ |
166 | /*#define HAVE_SERIAL*/ | 165 | /*#define HAVE_SERIAL*/ |
167 | 166 | ||