summaryrefslogtreecommitdiffstats
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-07-14 22:00:50 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-07-14 22:00:50 +0000
commitdc051248be106c783da15f41295691095f7c18f2 (patch)
treec885ec1307eada2361af145f07e1eef9b44f23c1 /firmware/tuner.c
parenta42a346789bff0d13457d19b22e4e0004be7e479 (diff)
downloadrockbox-dc051248be106c783da15f41295691095f7c18f2.tar.gz
rockbox-dc051248be106c783da15f41295691095f7c18f2.tar.bz2
rockbox-dc051248be106c783da15f41295691095f7c18f2.zip
e200: Tuner driver needs to yield alot and also be mutexed. FM debug screen got broken again and was ignoring cancellation and not drawing the lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13896 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index 1ee42a5355..4f3ddc0c73 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -60,13 +60,15 @@ const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] =
#ifdef CONFIG_TUNER_MULTI
int (*tuner_set)(int setting, int value);
int (*tuner_get)(int setting);
-#define TUNER_TYPE_CASE(type, set, get, region_data) \
+#define TUNER_TYPE_CASE(type, set, get, ...) \
case type: \
tuner_set = set; \
tuner_get = get; \
+ __VA_ARGS__; \
break;
#else
-#define TUNER_TYPE_CASE(type, set, get, region_data)
+#define TUNER_TYPE_CASE(type, set, get, ...) \
+ __VA_ARGS__;
#endif /* CONFIG_TUNER_MULTI */
void tuner_init(void)
@@ -79,19 +81,17 @@ void tuner_init(void)
TUNER_TYPE_CASE(LV24020LP,
lv24020lp_set,
lv24020lp_get,
- lv24020lp_region_data)
+ lv24020lp_init())
#endif
#if (CONFIG_TUNER & TEA5767)
TUNER_TYPE_CASE(TEA5767,
tea5767_set,
- tea5767_get,
- tea5767_region_data)
+ tea5767_get)
#endif
#if (CONFIG_TUNER & S1A0903X01)
TUNER_TYPE_CASE(S1A0903X01,
s1a0903x01_set,
- s1a0903x01_get,
- NULL)
+ s1a0903x01_get)
#endif
}
}