blob: 874c4190c5a2bb07e03cf9d09c046d0f454f815d [file] [log] [blame]
Michael Sevakis7d759f62007-07-14 11:20:31 +00001/***************************************************************************
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 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000013 * 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.
Michael Sevakis7d759f62007-07-14 11:20:31 +000017 *
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 _TEA5767_H_
24#define _TEA5767_H_
25
26#define HAVE_RADIO_REGION
27#define HAVE_RADIO_MUTE_TIMEOUT
28
29struct tea5767_region_data
30{
31 unsigned char deemphasis; /* 0: 50us, 1: 75us */
32 unsigned char band; /* 0: europe, 1: japan (BL in TEA spec)*/
33} __attribute__((packed));
34
35const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS];
36
37struct tea5767_dbg_info
38{
39 unsigned char read_regs[5];
40 unsigned char write_regs[5];
41};
42
43int tea5767_set(int setting, int value);
44int tea5767_get(int setting);
45void tea5767_dbg_info(struct tea5767_dbg_info *info);
46
47#ifndef CONFIG_TUNER_MULTI
48#define tuner_set tea5767_set
49#define tuner_get tea5767_get
50#endif
51
52#endif /* _TEA5767_H_ */