2004-10-15 21:41:46 +00:00
|
|
|
|
/***************************************************************************
|
|
|
|
|
* __________ __ ___.
|
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
|
* $Id$
|
|
|
|
|
* Tuner abstraction layer
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2004 J<EFBFBD>rg Hohensohn
|
|
|
|
|
*
|
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
|
*
|
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
|
* KIND, either express or implied.
|
|
|
|
|
*
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
#ifndef __TUNER_SAMSUNG_H__
|
|
|
|
|
#define __TUNER_SAMSUNG_H__
|
|
|
|
|
|
|
|
|
|
/* settings to the tuner layer */
|
2004-10-19 08:20:38 +00:00
|
|
|
|
#define RADIO_SLEEP 0
|
2004-10-15 21:41:46 +00:00
|
|
|
|
#define RADIO_FREQUENCY 1
|
|
|
|
|
#define RADIO_MUTE 2
|
|
|
|
|
#define RADIO_IF_MEASUREMENT 3
|
|
|
|
|
#define RADIO_SENSITIVITY 4
|
|
|
|
|
#define RADIO_FORCE_MONO 5
|
2006-10-05 12:40:13 +00:00
|
|
|
|
#if (CONFIG_TUNER & TEA5767)
|
|
|
|
|
#define RADIO_SET_DEEMPHASIS 6
|
|
|
|
|
#define RADIO_SET_BAND 7
|
|
|
|
|
#endif
|
2004-10-15 21:41:46 +00:00
|
|
|
|
/* readback from the tuner layer */
|
|
|
|
|
#define RADIO_PRESENT 0
|
2004-10-19 08:20:38 +00:00
|
|
|
|
#define RADIO_TUNED 1
|
2004-10-15 21:41:46 +00:00
|
|
|
|
#define RADIO_STEREO 2
|
2004-10-19 08:20:38 +00:00
|
|
|
|
#define RADIO_ALL 3 /* debug */
|
2004-10-15 21:41:46 +00:00
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_TUNER
|
|
|
|
|
|
|
|
|
|
#if (CONFIG_TUNER & S1A0903X01)
|
|
|
|
|
void samsung_set(int setting, int value);
|
|
|
|
|
int samsung_get(int setting);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if (CONFIG_TUNER & TEA5767)
|
|
|
|
|
void philips_set(int setting, int value);
|
|
|
|
|
int philips_get(int setting);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* #ifdef CONFIG_TUNER */
|
|
|
|
|
|
|
|
|
|
#endif
|