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)
downloadrockbox-d6c054575b4561b4c657565ecb4ff82565fa6c78.tar.gz
rockbox-d6c054575b4561b4c657565ecb4ff82565fa6c78.zip
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 @@
55 55
56#ifdef CONFIG_TUNER 56#ifdef CONFIG_TUNER
57 57
58#if CONFIG_HWCODEC == MASNONE 58#if CONFIG_CODEC == SWCODEC
59#include "uda1380.h" 59#include "uda1380.h"
60#include "pcm_record.h" 60#include "pcm_record.h"
61#endif 61#endif
@@ -213,14 +213,14 @@ bool radio_screen(void)
213 radio_load_presets(); 213 radio_load_presets();
214 214
215#ifndef SIMULATOR 215#ifndef SIMULATOR
216#if CONFIG_HWCODEC != MASNONE 216#if CONFIG_CODEC != SWCODEC
217 if(rec_create_directory() > 0) 217 if(rec_create_directory() > 0)
218 have_recorded = true; 218 have_recorded = true;
219#endif 219#endif
220 220
221 audio_stop(); 221 audio_stop();
222 222
223#if CONFIG_HWCODEC != MASNONE 223#if CONFIG_CODEC != SWCODEC
224 mpeg_init_recording(); 224 mpeg_init_recording();
225 225
226 sound_settings_apply(); 226 sound_settings_apply();
@@ -497,7 +497,7 @@ bool radio_screen(void)
497 } 497 }
498 498
499#ifndef SIMULATOR 499#ifndef SIMULATOR
500#if CONFIG_HWCODEC != MASNONE 500#if CONFIG_CODEC != SWCODEC
501 seconds = mpeg_recorded_time() / HZ; 501 seconds = mpeg_recorded_time() / HZ;
502#endif 502#endif
503#endif 503#endif
@@ -580,7 +580,7 @@ bool radio_screen(void)
580 } 580 }
581 } 581 }
582 582
583#if CONFIG_HWCODEC != MASNONE 583#if CONFIG_CODEC != SWCODEC
584 audio_init_playback(); 584 audio_init_playback();
585#endif 585#endif
586 586
@@ -588,7 +588,7 @@ bool radio_screen(void)
588 588
589 if(keep_playing) 589 if(keep_playing)
590 { 590 {
591#if CONFIG_HWCODEC != MASNONE 591#if CONFIG_CODEC != SWCODEC
592 /* Enable the Left and right A/D Converter */ 592 /* Enable the Left and right A/D Converter */
593 mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN), 593 mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN),
594 sound_default(SOUND_RIGHT_GAIN), false); 594 sound_default(SOUND_RIGHT_GAIN), false);
@@ -599,7 +599,7 @@ bool radio_screen(void)
599 else 599 else
600 { 600 {
601 radio_stop(); 601 radio_stop();
602#if CONFIG_HWCODEC == MASNONE 602#if CONFIG_CODEC == SWCODEC
603 pcmrec_set_mux(0); /* Line In */ 603 pcmrec_set_mux(0); /* Line In */
604#endif 604#endif
605 } 605 }
@@ -880,7 +880,7 @@ bool handle_radio_presets(void)
880} 880}
881 881
882#ifndef SIMULATOR 882#ifndef SIMULATOR
883#if CONFIG_HWCODEC != MASNONE 883#if CONFIG_CODEC != SWCODEC
884static bool fm_recording_settings(void) 884static bool fm_recording_settings(void)
885{ 885{
886 bool ret; 886 bool ret;
@@ -959,7 +959,7 @@ bool radio_menu(void)
959#endif 959#endif
960 { monomode_menu_string , toggle_mono_mode }, 960 { monomode_menu_string , toggle_mono_mode },
961 { ID2P(LANG_SOUND_SETTINGS) , sound_menu }, 961 { ID2P(LANG_SOUND_SETTINGS) , sound_menu },
962#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 962#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
963 { ID2P(LANG_RECORDING_SETTINGS) , fm_recording_settings}, 963 { ID2P(LANG_RECORDING_SETTINGS) , fm_recording_settings},
964#endif 964#endif
965 }; 965 };