From 0d6a28edc3d579d7fa26ded55d6856ffdda39453 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 26 Apr 2009 21:28:34 +0000 Subject: Enable FM radio on the sansa c200v2 (untested). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20809 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-c200v2.h | 4 ++-- firmware/target/arm/as3525/fmradio-i2c-as3525.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/export/config-c200v2.h b/firmware/export/config-c200v2.h index 5f8480c..1e58573 100644 --- a/firmware/export/config-c200v2.h +++ b/firmware/export/config-c200v2.h @@ -16,11 +16,11 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_22) #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */ #define REC_SAMPR_DEFAULT SAMPR_22 +#endif /* Define bitmask of input sources - recordable bitmask can be defined explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -#endif /* define this if you have a bitmap LCD display */ #define HAVE_LCD_BITMAP @@ -108,7 +108,7 @@ #define AB_REPEAT_ENABLE 1 /* FM Tuner - suspected to be the SI4702 */ -//#define CONFIG_TUNER SI4700 +#define CONFIG_TUNER SI4700 /* #define HAVE_TUNER_PWR_CTRL */ /* Define this for LCD backlight available */ diff --git a/firmware/target/arm/as3525/fmradio-i2c-as3525.c b/firmware/target/arm/as3525/fmradio-i2c-as3525.c index 528e8c7..390dbb5 100644 --- a/firmware/target/arm/as3525/fmradio-i2c-as3525.c +++ b/firmware/target/arm/as3525/fmradio-i2c-as3525.c @@ -31,7 +31,7 @@ #include "generic_i2c.h" #include "fmradio_i2c.h" -#if defined(SANSA_CLIP) +#if defined(SANSA_CLIP) || defined(SANSA_C200V2) #define I2C_GPIO(x) GPIOB_PIN(x) #define I2C_GPIO_DIR GPIOB_DIR #define I2C_SCL_PIN 4 -- cgit v1.1