summaryrefslogtreecommitdiff
path: root/firmware/export/tea5760.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/tea5760.h')
-rw-r--r--firmware/export/tea5760.h56
1 files changed, 56 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
31struct 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
37extern const struct tea5760_region_data tea5760_region_data[TUNER_NUM_REGIONS];
38
39struct tea5760_dbg_info
40{
41 unsigned char read_regs[16];
42 unsigned char write_regs[7];
43};
44
45int tea5760_set(int setting, int value);
46int tea5760_get(int setting);
47void tea5760_init(void);
48void 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