forked from len0rd/rockbox
Philips tuner prepared, new middle layer to abstract which tuner is used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5289 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
566eae2e11
commit
8f8fbac1fd
12 changed files with 340 additions and 72 deletions
49
firmware/export/tuner.h
Normal file
49
firmware/export/tuner.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
* Tuner abstraction layer
|
||||
*
|
||||
* Copyright (C) 2004 Jö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 */
|
||||
#define RADIO_INIT 0
|
||||
#define RADIO_FREQUENCY 1
|
||||
#define RADIO_MUTE 2
|
||||
#define RADIO_IF_MEASUREMENT 3
|
||||
#define RADIO_SENSITIVITY 4
|
||||
#define RADIO_FORCE_MONO 5
|
||||
/* readback from the tuner layer */
|
||||
#define RADIO_PRESENT 0
|
||||
#define RADIO_IF_MEASURED 1
|
||||
#define RADIO_STEREO 2
|
||||
|
||||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue