From 8f659ae8d3845b40ff93ebfa3692f7b2302e6c7e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 20 May 2007 20:26:36 +0000 Subject: 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 --- firmware/export/config-h120.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'firmware/export/config-h120.h') 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 @@ /* define this if you have recording possibility */ #define HAVE_RECORDING +/* Define bitmask of input sources - recordable bitmask can be defined + explicitly if different */ +#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \ + SRC_CAP_FMRADIO | SRC_CAP_SPDIF) + /* define hardware samples rate caps mask */ #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) @@ -150,18 +155,12 @@ #endif /* !SIMULATOR */ -/* Define this for S/PDIF input available */ -#define HAVE_SPDIF_IN - /* Define this for S/PDIF output available */ #define HAVE_SPDIF_OUT /* Define this if you can control the S/PDIF power */ #define HAVE_SPDIF_POWER -/* Define this for FM radio input available */ -#define HAVE_FMRADIO_IN - /* Define this if you have a serial port */ /*#define HAVE_SERIAL*/ -- cgit v1.2.3