1
0
Fork 0
forked from len0rd/rockbox

Fix all the red this time?

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13884 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-07-14 13:41:59 +00:00
parent ef65d91492
commit 680afafc23
6 changed files with 32 additions and 25 deletions

View file

@ -23,22 +23,6 @@
#include "tuner.h"
#include "fmradio.h"
#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) \
case type: \
tuner_set = set; \
tuner_get = get; \
break;
#else
#define TUNER_TYPE_CASE(type, set, get, region_data)
#endif /* CONFIG_TUNER_MULTI */
/* General region information */
const struct fm_region_data fm_region_data[TUNER_NUM_REGIONS] =
{
@ -48,6 +32,8 @@ const struct fm_region_data fm_region_data[TUNER_NUM_REGIONS] =
[REGION_KOREA] = { 87500000, 108000000, 100000 }
};
#ifndef SIMULATOR
/* Tuner-specific region information */
#if (CONFIG_TUNER & LV24020LP)
@ -71,6 +57,18 @@ const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] =
};
#endif /* (CONFIG_TUNER & TEA5767) */
#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) \
case type: \
tuner_set = set; \
tuner_get = get; \
break;
#else
#define TUNER_TYPE_CASE(type, set, get, region_data)
#endif /* CONFIG_TUNER_MULTI */
void tuner_init(void)
{
#ifdef CONFIG_TUNER_MULTI
@ -97,3 +95,5 @@ void tuner_init(void)
#endif
}
}
#endif /* SIMULATOR */