Add iAudio M5 FM radio mod to the advanced build options. * Unify iAudio audio driver, fmradio i2c driver, and power driver (M5 + X5 only).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21264 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2009-06-12 18:53:44 +00:00
parent 94823c65ac
commit 81b87fe13d
10 changed files with 74 additions and 327 deletions

View file

@ -16,7 +16,11 @@
/* Define bitmask of input sources - recordable bitmask can be defined
explicitly if different */
#ifdef HAVE_FMRADIO_IN /* FM modded M5 */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
#else /* stock M5 */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
#endif
/* define the bitmask of hardware sample rates */
#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
@ -109,6 +113,12 @@
/* The number of bytes reserved for loadable plugins */
#define PLUGIN_BUFFER_SIZE 0x80000
#ifdef HAVE_FMRADIO_IN /* FM modded M5 */
/* FM Tuner */
#define CONFIG_TUNER TEA5767
#define CONFIG_TUNER_XTAL 32768
#endif
#define HAVE_TLV320
/* TLV320 has no tone controls, so we use the software ones */