Path: blob/master/drivers/media/common/tuners/mt2131.h
15112 views
/*1* Driver for Microtune MT2131 "QAM/8VSB single chip tuner"2*3* Copyright (c) 2006 Steven Toth <[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 __MT2131_H__22#define __MT2131_H__2324struct dvb_frontend;25struct i2c_adapter;2627struct mt2131_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_MT2131) || (defined(CONFIG_MEDIA_TUNER_MT2131_MODULE) && defined(MODULE))33extern struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe,34struct i2c_adapter *i2c,35struct mt2131_config *cfg,36u16 if1);37#else38static inline struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe,39struct i2c_adapter *i2c,40struct mt2131_config *cfg,41u16 if1)42{43printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);44return NULL;45}46#endif /* CONFIG_MEDIA_TUNER_MT2131 */4748#endif /* __MT2131_H__ */4950/*51* Local variables:52* c-basic-offset: 853*/545556