diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-07 21:57:16 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-07 21:57:16 +0000 |
commit | 4e965b4b6c22a4ed206eed418c0e1b9296cc2113 (patch) | |
tree | d440a630bd43b4baab72138588bab8fa674a163b /firmware/export | |
parent | 8d4d4610b6814c0c4a4abe9523b4b6b2b80ac9a4 (diff) | |
download | rockbox-4e965b4b6c22a4ed206eed418c0e1b9296cc2113.tar.gz rockbox-4e965b4b6c22a4ed206eed418c0e1b9296cc2113.zip |
Meizu: implement i2c for the meizu fmradio and update the tea5760 tuner driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21703 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/tea5760.h | 56 | ||||
-rw-r--r-- | firmware/export/tuner.h | 5 |
2 files changed, 61 insertions, 0 deletions
diff --git a/firmware/export/tea5760.h b/firmware/export/tea5760.h new file mode 100644 index 0000000000..8fa54dfa78 --- /dev/null +++ b/firmware/export/tea5760.h | |||
@@ -0,0 +1,56 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * Tuner header for the Philips TEA5760 | ||
10 | * | ||
11 | * Copyright (C) 2009 Bertrik Sikken | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version 2 | ||
16 | * of the License, or (at your option) any later version. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | |||
23 | #ifndef _TEA5760_H_ | ||
24 | #define _TEA5760_H_ | ||
25 | |||
26 | #include "config.h" | ||
27 | #include "tuner.h" | ||
28 | |||
29 | #define HAVE_RADIO_REGION | ||
30 | |||
31 | struct tea5760_region_data | ||
32 | { | ||
33 | unsigned char deemphasis; /* 1: 50us, 0: 75us */ | ||
34 | unsigned char band; /* 0: europe, 1: japan (BL in TEA spec)*/ | ||
35 | } __attribute__((packed)); | ||
36 | |||
37 | extern const struct tea5760_region_data tea5760_region_data[TUNER_NUM_REGIONS]; | ||
38 | |||
39 | struct tea5760_dbg_info | ||
40 | { | ||
41 | unsigned char read_regs[16]; | ||
42 | unsigned char write_regs[7]; | ||
43 | }; | ||
44 | |||
45 | int tea5760_set(int setting, int value); | ||
46 | int tea5760_get(int setting); | ||
47 | void tea5760_init(void); | ||
48 | void tea5760_dbg_info(struct tea5760_dbg_info *info); | ||
49 | |||
50 | #ifndef CONFIG_TUNER_MULTI | ||
51 | #define tuner_set tea5760_set | ||
52 | #define tuner_get tea5760_get | ||
53 | #endif | ||
54 | |||
55 | #endif /* _TEA5760_H_ */ | ||
56 | |||
diff --git a/firmware/export/tuner.h b/firmware/export/tuner.h index 6d6a690d77..f92e94269c 100644 --- a/firmware/export/tuner.h +++ b/firmware/export/tuner.h | |||
@@ -96,6 +96,11 @@ extern int (*tuner_get)(int setting); | |||
96 | #include "s1a0903x01.h" | 96 | #include "s1a0903x01.h" |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | /** Philips TEA5760 **/ | ||
100 | #if (CONFIG_TUNER & TEA5760) | ||
101 | #include "tea5760.h" | ||
102 | #endif | ||
103 | |||
99 | /** Philips TEA5767 **/ | 104 | /** Philips TEA5767 **/ |
100 | #if (CONFIG_TUNER & TEA5767) | 105 | #if (CONFIG_TUNER & TEA5767) |
101 | /* Ondio FM, FM Recorder, Recorder V2, iRiver h100/h300, iAudio x5 */ | 106 | /* Ondio FM, FM Recorder, Recorder V2, iRiver h100/h300, iAudio x5 */ |