diff options
Diffstat (limited to 'firmware/tuner_philips.c')
-rw-r--r-- | firmware/tuner_philips.c | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/firmware/tuner_philips.c b/firmware/tuner_philips.c new file mode 100644 index 0000000000..50559af23e --- /dev/null +++ b/firmware/tuner_philips.c | |||
@@ -0,0 +1,70 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * Tuner "middleware" for Philips TEA5767 chip | ||
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 | |||
21 | #include <stdbool.h> | ||
22 | #include "tuner.h" /* tuner abstraction interface */ | ||
23 | #include "fmradio_i2c.h" /* physical interface driver */ | ||
24 | |||
25 | /* FIXME: this is just a dummy */ | ||
26 | |||
27 | /* tuner abstraction layer: set something to the tuner */ | ||
28 | void philips_set(int setting, int value) | ||
29 | { | ||
30 | (void)value; | ||
31 | switch(setting) | ||
32 | { | ||
33 | case RADIO_INIT: | ||
34 | break; | ||
35 | |||
36 | case RADIO_FREQUENCY: | ||
37 | break; | ||
38 | |||
39 | case RADIO_MUTE: | ||
40 | break; | ||
41 | |||
42 | case RADIO_IF_MEASUREMENT: | ||
43 | break; | ||
44 | |||
45 | case RADIO_SENSITIVITY: | ||
46 | break; | ||
47 | |||
48 | case RADIO_FORCE_MONO: | ||
49 | break; | ||
50 | } | ||
51 | } | ||
52 | |||
53 | /* tuner abstraction layer: read something from the tuner */ | ||
54 | int philips_get(int setting) | ||
55 | { | ||
56 | int val = -1; | ||
57 | switch(setting) | ||
58 | { | ||
59 | case RADIO_PRESENT: | ||
60 | val = 0; /* false */ | ||
61 | break; | ||
62 | |||
63 | case RADIO_IF_MEASURED: | ||
64 | break; | ||
65 | |||
66 | case RADIO_STEREO: | ||
67 | break; | ||
68 | } | ||
69 | return val; | ||
70 | } | ||