Michael Sevakis | 7d759f6 | 2007-07-14 11:20:31 +0000 | [diff] [blame] | 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 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 13 | * This program is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU General Public License |
| 15 | * as published by the Free Software Foundation; either version 2 |
| 16 | * of the License, or (at your option) any later version. |
Michael Sevakis | 7d759f6 | 2007-07-14 11:20:31 +0000 | [diff] [blame] | 17 | * |
| 18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 19 | * KIND, either express or implied. |
| 20 | * |
| 21 | ****************************************************************************/ |
| 22 | |
| 23 | #ifndef _LV24020LP_H_ |
| 24 | #define _LV24020LP_H_ |
| 25 | |
| 26 | /* Define additional tuner messages here */ |
| 27 | #define HAVE_RADIO_REGION |
| 28 | |
| 29 | #define LV24020LP_CTRL_STAT (RADIO_GET_CHIP_FIRST+0) |
| 30 | #define LV24020LP_REG_STAT (RADIO_GET_CHIP_FIRST+1) |
| 31 | #define LV24020LP_MSS_FM (RADIO_GET_CHIP_FIRST+2) |
| 32 | #define LV24020LP_MSS_IF (RADIO_GET_CHIP_FIRST+3) |
| 33 | #define LV24020LP_MSS_SD (RADIO_GET_CHIP_FIRST+4) |
| 34 | #define LV24020LP_IF_SET (RADIO_GET_CHIP_FIRST+5) |
| 35 | #define LV24020LP_SD_SET (RADIO_GET_CHIP_FIRST+6) |
| 36 | |
Michael Sevakis | dc05124 | 2007-07-14 22:00:50 +0000 | [diff] [blame] | 37 | #define LV24020LP_DEBUG_FIRST LV24020LP_CTRL_STAT |
| 38 | #define LV24020LP_DEBUG_LAST LV24020LP_SD_SET |
Michael Sevakis | 7d759f6 | 2007-07-14 11:20:31 +0000 | [diff] [blame] | 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); |
Michael Sevakis | dc05124 | 2007-07-14 22:00:50 +0000 | [diff] [blame] | 45 | void lv24020lp_init(void); |
| 46 | void lv24020lp_lock(void); |
| 47 | void lv24020lp_unlock(void); |
Michael Sevakis | 7d759f6 | 2007-07-14 11:20:31 +0000 | [diff] [blame] | 48 | |
| 49 | #ifndef CONFIG_TUNER_MULTI |
| 50 | #define tuner_set lv24020lp_set |
| 51 | #define tuner_get lv24020lp_get |
| 52 | #endif |
| 53 | |
| 54 | #endif /* _LV24020LP_H_ */ |