Path: blob/master/drivers/media/common/tuners/mt2060.h
15112 views
/*1* Driver for Microtune MT2060 "Single chip dual conversion broadband tuner"2*3* Copyright (c) 2006 Olivier DANET <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13*14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.=19*/2021#ifndef MT2060_H22#define MT2060_H2324struct dvb_frontend;25struct i2c_adapter;2627struct mt2060_config {28u8 i2c_address;29u8 clock_out; /* 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1 */30};3132#if defined(CONFIG_MEDIA_TUNER_MT2060) || (defined(CONFIG_MEDIA_TUNER_MT2060_MODULE) && defined(MODULE))33extern struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1);34#else35static inline struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1)36{37printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);38return NULL;39}40#endif // CONFIG_MEDIA_TUNER_MT20604142#endif434445