diff options
Diffstat (limited to 'firmware/export/lv24020lp.h')
-rw-r--r-- | firmware/export/lv24020lp.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/firmware/export/lv24020lp.h b/firmware/export/lv24020lp.h new file mode 100644 index 0000000000..0fc39b18df --- /dev/null +++ b/firmware/export/lv24020lp.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * Tuner header for the Sanyo LV24020LP | ||
10 | * | ||
11 | * Copyright (C) 2007 Michael Sevakis | ||
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 | #ifndef _LV24020LP_H_ | ||
22 | #define _LV24020LP_H_ | ||
23 | |||
24 | /* Define additional tuner messages here */ | ||
25 | #define HAVE_RADIO_REGION | ||
26 | |||
27 | #define LV24020LP_CTRL_STAT (RADIO_GET_CHIP_FIRST+0) | ||
28 | #define LV24020LP_REG_STAT (RADIO_GET_CHIP_FIRST+1) | ||
29 | #define LV24020LP_MSS_FM (RADIO_GET_CHIP_FIRST+2) | ||
30 | #define LV24020LP_MSS_IF (RADIO_GET_CHIP_FIRST+3) | ||
31 | #define LV24020LP_MSS_SD (RADIO_GET_CHIP_FIRST+4) | ||
32 | #define LV24020LP_IF_SET (RADIO_GET_CHIP_FIRST+5) | ||
33 | #define LV24020LP_SD_SET (RADIO_GET_CHIP_FIRST+6) | ||
34 | |||
35 | struct lv24020lp_region_data | ||
36 | { | ||
37 | unsigned char deemphasis; | ||
38 | } __attribute__((packed)); | ||
39 | |||
40 | const unsigned char lv24020lp_region_data[TUNER_NUM_REGIONS]; | ||
41 | |||
42 | int lv24020lp_set(int setting, int value); | ||
43 | int lv24020lp_get(int setting); | ||
44 | void lv24020lp_power(bool status); | ||
45 | |||
46 | #ifndef CONFIG_TUNER_MULTI | ||
47 | #define tuner_set lv24020lp_set | ||
48 | #define tuner_get lv24020lp_get | ||
49 | #endif | ||
50 | |||
51 | #endif /* _LV24020LP_H_ */ | ||