blob: 16a8856a3fa49da15439fc2bf496c0c06b0b398e [file] [log] [blame]
Michael Sevakis7d759f62007-07-14 11:20:31 +00001/***************************************************************************
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 Stenberg2acc0ac2008-06-28 18:10:04 +000013 * 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 Sevakis7d759f62007-07-14 11:20:31 +000017 *
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 Sevakisdc051242007-07-14 22:00:50 +000037#define LV24020LP_DEBUG_FIRST LV24020LP_CTRL_STAT
38#define LV24020LP_DEBUG_LAST LV24020LP_SD_SET
Michael Sevakis7d759f62007-07-14 11:20:31 +000039
40const unsigned char lv24020lp_region_data[TUNER_NUM_REGIONS];
41
42int lv24020lp_set(int setting, int value);
43int lv24020lp_get(int setting);
44void lv24020lp_power(bool status);
Michael Sevakisdc051242007-07-14 22:00:50 +000045void lv24020lp_init(void);
46void lv24020lp_lock(void);
47void lv24020lp_unlock(void);
Michael Sevakis7d759f62007-07-14 11:20:31 +000048
49#ifndef CONFIG_TUNER_MULTI
50#define tuner_set lv24020lp_set
51#define tuner_get lv24020lp_get
52#endif
53
54#endif /* _LV24020LP_H_ */