diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/tuner/si4700.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/firmware/drivers/tuner/si4700.c b/firmware/drivers/tuner/si4700.c new file mode 100644 index 0000000000..9233afae24 --- /dev/null +++ b/firmware/drivers/tuner/si4700.c | |||
@@ -0,0 +1,47 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Tuner "middleware" for Silicon Labs SI4700 chip | ||
11 | * | ||
12 | * Copyright (C) 2008 ??? | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or | ||
15 | * modify it under the terms of the GNU General Public License | ||
16 | * as published by the Free Software Foundation; either version 2 | ||
17 | * of the License, or (at your option) any later version. | ||
18 | * | ||
19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
20 | * KIND, either express or implied. | ||
21 | * | ||
22 | ****************************************************************************/ | ||
23 | #include "config.h" | ||
24 | #include <stdbool.h> | ||
25 | #include <string.h> | ||
26 | #include <stdlib.h> | ||
27 | #include "kernel.h" | ||
28 | #include "tuner.h" /* tuner abstraction interface */ | ||
29 | #include "fmradio.h" | ||
30 | #include "fmradio_i2c.h" /* physical interface driver */ | ||
31 | |||
32 | /* tuner abstraction layer: set something to the tuner */ | ||
33 | int si4700_set(int setting, int value) | ||
34 | { | ||
35 | (void)setting; | ||
36 | (void)value; | ||
37 | |||
38 | return 1; | ||
39 | } | ||
40 | |||
41 | /* tuner abstraction layer: read something from the tuner */ | ||
42 | int si4700_get(int setting) | ||
43 | { | ||
44 | (void)setting; | ||
45 | |||
46 | return -1; | ||
47 | } | ||