as3525v2: build normal firmware properly (Clipv2/+)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24840 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-02-22 02:42:58 +00:00
parent 054253ab33
commit 31eda59720
8 changed files with 18 additions and 9 deletions

View file

@ -423,7 +423,9 @@ drivers/generic_i2c.c
target/arm/adc-as3514.c
target/arm/as3525/audio-as3525.c
target/arm/as3525/debug-as3525.c
#if CONFIG_TUNER
target/arm/as3525/fmradio-i2c-as3525.c
#endif /* CONFIG_TUNER */
target/arm/as3525/i2s-as3525.c
target/arm/as3525/pcm-as3525.c
#endif /* BOOTLOADER */

View file

@ -24,7 +24,7 @@
/* Define bitmask of input sources - recordable bitmask can be defined
explicitly if different */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
#define INPUT_SRC_CAPS (SRC_CAP_MIC /*| SRC_CAP_FMRADIO*/)
/* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP
@ -119,7 +119,7 @@
#define AB_REPEAT_ENABLE 1
/* FM Tuner */
#define CONFIG_TUNER SI4700 /* in fact SI4702 */
//#define CONFIG_TUNER SI4700 /* in fact SI4702 */
//#define HAVE_TUNER_PWR_CTRL
/* Define this for LCD backlight available */

View file

@ -24,7 +24,7 @@
/* Define bitmask of input sources - recordable bitmask can be defined
explicitly if different */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
#define INPUT_SRC_CAPS (SRC_CAP_MIC /*| SRC_CAP_FMRADIO*/)
/* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP
@ -122,7 +122,7 @@
#define AB_REPEAT_ENABLE 1
/* FM Tuner */
#define CONFIG_TUNER SI4700 /* in fact SI4702 */
//#define CONFIG_TUNER SI4700 /* in fact SI4702 */
//#define HAVE_TUNER_PWR_CTRL
/* Define this for LCD backlight available */

View file

@ -47,7 +47,9 @@ void audio_input_mux(int source, unsigned flags)
case AUDIO_SRC_PLAYBACK:
if (source != last_source)
{
#if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN)
audiohw_set_monitor(false);
#endif
#ifdef HAVE_RECORDING
audiohw_disable_recording();
#endif
@ -64,6 +66,8 @@ void audio_input_mux(int source, unsigned flags)
break;
#endif
#if (INPUT_SRC_CAPS & SRC_CAP_FMRADIO)
case AUDIO_SRC_FMRADIO: /* recording and playback */
if (source == last_source
#ifdef HAVE_RECORDING
@ -86,9 +90,12 @@ void audio_input_mux(int source, unsigned flags)
#ifdef HAVE_RECORDING
audiohw_disable_recording();
#endif
#if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN)
audiohw_set_monitor(true); /* line 2 analog audio path */
#endif
}
break;
#endif /* (INPUT_SRC_CAPS & SRC_CAP_FMRADIO) */
}
last_source = source;

View file

@ -191,7 +191,7 @@ static const char sd_thread_name[] = "ata/sd";
static struct mutex sd_mtx SHAREDBSS_ATTR;
static struct event_queue sd_queue;
#ifndef BOOTLOADER
static bool sd_enabled = false;
bool sd_enabled = false;
#endif
static struct wakeup transfer_completion_signal;

View file

@ -336,7 +336,7 @@ void system_init(void)
#ifndef BOOTLOADER
/* Initialize power management settings */
ascodec_write(AS3514_CVDD_DCDC3, AS314_CP_DCDC3_SETTING);
#ifdef CONFIG_TUNER
#if CONFIG_TUNER
fmradio_i2c_init();
#endif
#endif /* !BOOTLOADER */