Simulate backlight for colour targets. Implements the idea from FS #9884, but uses...
[kugel-rb.git] / firmware / export / tea5767.h
blobdceb0f41687d6666a01ea7e1f359473cf00a4995
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 * Tuner header for the Philips TEA5767
11 * Copyright (C) 2007 Michael Sevakis
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.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
23 #ifndef _TEA5767_H_
24 #define _TEA5767_H_
26 #define HAVE_RADIO_REGION
27 #define HAVE_RADIO_MUTE_TIMEOUT
29 struct tea5767_region_data
31 unsigned char deemphasis; /* 0: 50us, 1: 75us */
32 unsigned char band; /* 0: europe, 1: japan (BL in TEA spec)*/
33 } __attribute__((packed));
35 extern const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS];
37 struct tea5767_dbg_info
39 unsigned char read_regs[5];
40 unsigned char write_regs[5];
43 int tea5767_set(int setting, int value);
44 int tea5767_get(int setting);
45 void tea5767_dbg_info(struct tea5767_dbg_info *info);
47 #ifndef CONFIG_TUNER_MULTI
48 #define tuner_set tea5767_set
49 #define tuner_get tea5767_get
50 #endif
52 #endif /* _TEA5767_H_ */