summaryrefslogtreecommitdiff
path: root/firmware/export/tea5767.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/tea5767.h')
-rw-r--r--firmware/export/tea5767.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/firmware/export/tea5767.h b/firmware/export/tea5767.h
new file mode 100644
index 0000000000..dfa6149f20
--- /dev/null
+++ b/firmware/export/tea5767.h
@@ -0,0 +1,50 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 * Tuner header for the Philips TEA5767
10 *
11 * Copyright (C) 2007 Michael Sevakis
12 *
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
15 *
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
18 *
19 ****************************************************************************/
20
21#ifndef _TEA5767_H_
22#define _TEA5767_H_
23
24#define HAVE_RADIO_REGION
25#define HAVE_RADIO_MUTE_TIMEOUT
26
27struct tea5767_region_data
28{
29 unsigned char deemphasis; /* 0: 50us, 1: 75us */
30 unsigned char band; /* 0: europe, 1: japan (BL in TEA spec)*/
31} __attribute__((packed));
32
33const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS];
34
35struct tea5767_dbg_info
36{
37 unsigned char read_regs[5];
38 unsigned char write_regs[5];
39};
40
41int tea5767_set(int setting, int value);
42int tea5767_get(int setting);
43void tea5767_dbg_info(struct tea5767_dbg_info *info);
44
45#ifndef CONFIG_TUNER_MULTI
46#define tuner_set tea5767_set
47#define tuner_get tea5767_get
48#endif
49
50#endif /* _TEA5767_H_ */