summaryrefslogtreecommitdiffstats
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-12-09 20:48:04 +0000
committerNils Wallménius <nils@rockbox.org>2008-12-09 20:48:04 +0000
commit65f61d6cce4a5d3b52860d38a922b01fcddc70cd (patch)
tree03f8167279828845dcd4923d8184bc58d0e165da /firmware/tuner.c
parenta13c16271911be641539cace3ea5ea0c1440eeaf (diff)
downloadrockbox-65f61d6cce4a5d3b52860d38a922b01fcddc70cd.tar.gz
rockbox-65f61d6cce4a5d3b52860d38a922b01fcddc70cd.tar.bz2
rockbox-65f61d6cce4a5d3b52860d38a922b01fcddc70cd.zip
FS#9609 FM radio support for the Gigabeat S, seeking/scanning is not yet
implemented but manual tuning works nicely. Thanks to Rafaël Carré, Bertrik Sikken and Robert Menes for suggestions and debugging help. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19372 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index 6a7c1b4237..22cb981038 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -59,6 +59,16 @@ const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] =
};
#endif /* (CONFIG_TUNER & TEA5767) */
+#if (CONFIG_TUNER & SI4700)
+const struct si4700_region_data si4700_region_data[TUNER_NUM_REGIONS] =
+{
+ [REGION_EUROPE] = { 0, 0, 2 }, /* 50uS, US/Europe band, 50kHz spacing */
+ [REGION_US_CANADA] = { 1, 0, 0 }, /* 75uS, US/Europe band, 200kHz spacing */
+ [REGION_JAPAN] = { 0, 1, 1 }, /* 50uS, Japanese band, 100kHz spacing */
+ [REGION_KOREA] = { 0, 0, 1 }, /* 50uS, US/Europe band, 100kHz spacing */
+};
+#endif /* (CONFIG_TUNER & SI4700) */
+
#ifdef CONFIG_TUNER_MULTI
int (*tuner_set)(int setting, int value);
int (*tuner_get)(int setting);
@@ -95,6 +105,12 @@ void tuner_init(void)
s1a0903x01_set,
s1a0903x01_get)
#endif
+ #if (CONFIG_TUNER & SI4700)
+ TUNER_TYPE_CASE(SI4700,
+ si4700_set,
+ si4700_get,
+ si4700_init())
+ #endif
}
}