diff options
Diffstat (limited to 'firmware/export/tuner.h')
-rw-r--r-- | firmware/export/tuner.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/firmware/export/tuner.h b/firmware/export/tuner.h new file mode 100644 index 0000000000..ae31c6d354 --- /dev/null +++ b/firmware/export/tuner.h | |||
@@ -0,0 +1,49 @@ | |||
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 */ | ||
24 | #define RADIO_INIT 0 | ||
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 | ||
30 | /* readback from the tuner layer */ | ||
31 | #define RADIO_PRESENT 0 | ||
32 | #define RADIO_IF_MEASURED 1 | ||
33 | #define RADIO_STEREO 2 | ||
34 | |||
35 | #ifdef CONFIG_TUNER | ||
36 | |||
37 | #if (CONFIG_TUNER & S1A0903X01) | ||
38 | void samsung_set(int setting, int value); | ||
39 | int samsung_get(int setting); | ||
40 | #endif | ||
41 | |||
42 | #if (CONFIG_TUNER & TEA5767) | ||
43 | void philips_set(int setting, int value); | ||
44 | int philips_get(int setting); | ||
45 | #endif | ||
46 | |||
47 | #endif /* #ifdef CONFIG_TUNER */ | ||
48 | |||
49 | #endif | ||