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 Philips TEA5767 |
| 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 _TEA5767_H_ |
| 24 | #define _TEA5767_H_ |
| 25 | |
| 26 | #define HAVE_RADIO_REGION |
| 27 | #define HAVE_RADIO_MUTE_TIMEOUT |
| 28 | |
| 29 | struct tea5767_region_data |
| 30 | { |
| 31 | unsigned char deemphasis; /* 0: 50us, 1: 75us */ |
| 32 | unsigned char band; /* 0: europe, 1: japan (BL in TEA spec)*/ |
| 33 | } __attribute__((packed)); |
| 34 | |
| 35 | const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS]; |
| 36 | |
| 37 | struct tea5767_dbg_info |
| 38 | { |
| 39 | unsigned char read_regs[5]; |
| 40 | unsigned char write_regs[5]; |
| 41 | }; |
| 42 | |
| 43 | int tea5767_set(int setting, int value); |
| 44 | int tea5767_get(int setting); |
| 45 | void tea5767_dbg_info(struct tea5767_dbg_info *info); |
| 46 | |
| 47 | #ifndef CONFIG_TUNER_MULTI |
| 48 | #define tuner_set tea5767_set |
| 49 | #define tuner_get tea5767_get |
| 50 | #endif |
| 51 | |
| 52 | #endif /* _TEA5767_H_ */ |