Jörg Hohensohn | 8f8fbac | 2004-10-15 21:41:46 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 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 Hohensohn | ef8d508 | 2004-10-19 08:20:38 +0000 | [diff] [blame] | 24 | #define RADIO_SLEEP 0 |
Jörg Hohensohn | 8f8fbac | 2004-10-15 21:41:46 +0000 | [diff] [blame] | 25 | #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 Riebeling | e66b2ec | 2006-10-05 12:40:13 +0000 | [diff] [blame] | 30 | #if (CONFIG_TUNER & TEA5767) |
| 31 | #define RADIO_SET_DEEMPHASIS 6 |
| 32 | #define RADIO_SET_BAND 7 |
| 33 | #endif |
Jörg Hohensohn | 8f8fbac | 2004-10-15 21:41:46 +0000 | [diff] [blame] | 34 | /* readback from the tuner layer */ |
| 35 | #define RADIO_PRESENT 0 |
Jörg Hohensohn | ef8d508 | 2004-10-19 08:20:38 +0000 | [diff] [blame] | 36 | #define RADIO_TUNED 1 |
Jörg Hohensohn | 8f8fbac | 2004-10-15 21:41:46 +0000 | [diff] [blame] | 37 | #define RADIO_STEREO 2 |
Jörg Hohensohn | ef8d508 | 2004-10-19 08:20:38 +0000 | [diff] [blame] | 38 | #define RADIO_ALL 3 /* debug */ |
Jörg Hohensohn | 8f8fbac | 2004-10-15 21:41:46 +0000 | [diff] [blame] | 39 | |
Jens Arnold | c652218 | 2007-02-18 08:46:12 +0000 | [diff] [blame] | 40 | #if CONFIG_TUNER |
Jörg Hohensohn | 8f8fbac | 2004-10-15 21:41:46 +0000 | [diff] [blame] | 41 | |
| 42 | #if (CONFIG_TUNER & S1A0903X01) |
| 43 | void samsung_set(int setting, int value); |
| 44 | int samsung_get(int setting); |
| 45 | #endif |
| 46 | |
| 47 | #if (CONFIG_TUNER & TEA5767) |
| 48 | void philips_set(int setting, int value); |
| 49 | int philips_get(int setting); |
| 50 | #endif |
| 51 | |
Jens Arnold | c652218 | 2007-02-18 08:46:12 +0000 | [diff] [blame] | 52 | #endif /* #if CONFIG_TUNER */ |
Jörg Hohensohn | 8f8fbac | 2004-10-15 21:41:46 +0000 | [diff] [blame] | 53 | |
| 54 | #endif |