summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-08-29 21:15:27 +0000
committerJens Arnold <amiconn@rockbox.org>2005-08-29 21:15:27 +0000
commitd6c054575b4561b4c657565ecb4ff82565fa6c78 (patch)
treec05a7f619a2580a8ae3ee29e863f076d1065c398 /apps/recorder/radio.c
parent99a0598c284471342fcda1fdcba90d4b666bfbb3 (diff)
Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index a0280ecf1f..68d36dddd3 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -55,7 +55,7 @@
#ifdef CONFIG_TUNER
-#if CONFIG_HWCODEC == MASNONE
+#if CONFIG_CODEC == SWCODEC
#include "uda1380.h"
#include "pcm_record.h"
#endif
@@ -213,14 +213,14 @@ bool radio_screen(void)
radio_load_presets();
#ifndef SIMULATOR
-#if CONFIG_HWCODEC != MASNONE
+#if CONFIG_CODEC != SWCODEC
if(rec_create_directory() > 0)
have_recorded = true;
#endif
audio_stop();
-#if CONFIG_HWCODEC != MASNONE
+#if CONFIG_CODEC != SWCODEC
mpeg_init_recording();
sound_settings_apply();
@@ -497,7 +497,7 @@ bool radio_screen(void)
}
#ifndef SIMULATOR
-#if CONFIG_HWCODEC != MASNONE
+#if CONFIG_CODEC != SWCODEC
seconds = mpeg_recorded_time() / HZ;
#endif
#endif
@@ -580,7 +580,7 @@ bool radio_screen(void)
}
}
-#if CONFIG_HWCODEC != MASNONE
+#if CONFIG_CODEC != SWCODEC
audio_init_playback();
#endif
@@ -588,7 +588,7 @@ bool radio_screen(void)
if(keep_playing)
{
-#if CONFIG_HWCODEC != MASNONE
+#if CONFIG_CODEC != SWCODEC
/* Enable the Left and right A/D Converter */
mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN),
sound_default(SOUND_RIGHT_GAIN), false);
@@ -599,7 +599,7 @@ bool radio_screen(void)
else
{
radio_stop();
-#if CONFIG_HWCODEC == MASNONE
+#if CONFIG_CODEC == SWCODEC
pcmrec_set_mux(0); /* Line In */
#endif
}
@@ -880,7 +880,7 @@ bool handle_radio_presets(void)
}
#ifndef SIMULATOR
-#if CONFIG_HWCODEC != MASNONE
+#if CONFIG_CODEC != SWCODEC
static bool fm_recording_settings(void)
{
bool ret;
@@ -959,7 +959,7 @@ bool radio_menu(void)
#endif
{ monomode_menu_string , toggle_mono_mode },
{ ID2P(LANG_SOUND_SETTINGS) , sound_menu },
-#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE)
+#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
{ ID2P(LANG_RECORDING_SETTINGS) , fm_recording_settings},
#endif
};