blob: 0a136137110c1d6a7efa66991180908897509d4a [file] [log] [blame]
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 * Tuner abstraction layer
10 *
11 * Copyright (C) 2004 Jörg Hohensohn
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#ifndef __TUNER_SAMSUNG_H__
21#define __TUNER_SAMSUNG_H__
22
23/* settings to the tuner layer */
Jörg Hohensohnef8d5082004-10-19 08:20:38 +000024#define RADIO_SLEEP 0
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +000025#define RADIO_FREQUENCY 1
26#define RADIO_MUTE 2
27#define RADIO_IF_MEASUREMENT 3
28#define RADIO_SENSITIVITY 4
29#define RADIO_FORCE_MONO 5
Dominik Riebelinge66b2ec2006-10-05 12:40:13 +000030#if (CONFIG_TUNER & TEA5767)
31#define RADIO_SET_DEEMPHASIS 6
32#define RADIO_SET_BAND 7
33#endif
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +000034/* readback from the tuner layer */
35#define RADIO_PRESENT 0
Jörg Hohensohnef8d5082004-10-19 08:20:38 +000036#define RADIO_TUNED 1
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +000037#define RADIO_STEREO 2
Jörg Hohensohnef8d5082004-10-19 08:20:38 +000038#define RADIO_ALL 3 /* debug */
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +000039
Jens Arnoldc6522182007-02-18 08:46:12 +000040#if CONFIG_TUNER
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +000041
42#if (CONFIG_TUNER & S1A0903X01)
43void samsung_set(int setting, int value);
44int samsung_get(int setting);
45#endif
46
47#if (CONFIG_TUNER & TEA5767)
48void philips_set(int setting, int value);
49int philips_get(int setting);
50#endif
51
Jens Arnoldc6522182007-02-18 08:46:12 +000052#endif /* #if CONFIG_TUNER */
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +000053
54#endif