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 /apps/recorder/radio.c | |
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 'apps/recorder/radio.c')
-rw-r--r-- | apps/recorder/radio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index ae534aca61..79febc9039 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -1429,7 +1429,7 @@ static int scan_presets(void) | |||
1429 | 1429 | ||
1430 | #ifdef HAVE_RECORDING | 1430 | #ifdef HAVE_RECORDING |
1431 | 1431 | ||
1432 | #if defined(HAVE_FMRADIO_IN) && CONFIG_CODEC == SWCODEC | 1432 | #if defined(HAVE_FMRADIO_REC) && CONFIG_CODEC == SWCODEC |
1433 | #define FM_RECORDING_SCREEN | 1433 | #define FM_RECORDING_SCREEN |
1434 | static int fm_recording_screen(void) | 1434 | static int fm_recording_screen(void) |
1435 | { | 1435 | { |
@@ -1450,9 +1450,9 @@ static int fm_recording_screen(void) | |||
1450 | return ret; | 1450 | return ret; |
1451 | } | 1451 | } |
1452 | 1452 | ||
1453 | #endif /* defined(HAVE_FMRADIO_IN) && CONFIG_CODEC == SWCODEC */ | 1453 | #endif /* defined(HAVE_FMRADIO_REC) && CONFIG_CODEC == SWCODEC */ |
1454 | 1454 | ||
1455 | #if defined(HAVE_FMRADIO_IN) || CONFIG_CODEC != SWCODEC | 1455 | #if defined(HAVE_FMRADIO_REC) || CONFIG_CODEC != SWCODEC |
1456 | #define FM_RECORDING_SETTINGS | 1456 | #define FM_RECORDING_SETTINGS |
1457 | static int fm_recording_settings(void) | 1457 | static int fm_recording_settings(void) |
1458 | { | 1458 | { |
@@ -1471,7 +1471,7 @@ static int fm_recording_settings(void) | |||
1471 | return ret; | 1471 | return ret; |
1472 | } | 1472 | } |
1473 | 1473 | ||
1474 | #endif /* defined(HAVE_FMRADIO_IN) || CONFIG_CODEC != SWCODEC */ | 1474 | #endif /* defined(HAVE_FMRADIO_REC) || CONFIG_CODEC != SWCODEC */ |
1475 | #endif /* HAVE_RECORDING */ | 1475 | #endif /* HAVE_RECORDING */ |
1476 | 1476 | ||
1477 | #ifdef FM_RECORDING_SCREEN | 1477 | #ifdef FM_RECORDING_SCREEN |