Path: blob/master/drivers/media/common/tuners/tea5767.h
15112 views
/*1This program is free software; you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation; either version 2 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program; if not, write to the Free Software13Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.14*/1516#ifndef __TEA5767_H__17#define __TEA5767_H__1819#include <linux/i2c.h>20#include "dvb_frontend.h"2122enum tea5767_xtal {23TEA5767_LOW_LO_32768 = 0,24TEA5767_HIGH_LO_32768 = 1,25TEA5767_LOW_LO_13MHz = 2,26TEA5767_HIGH_LO_13MHz = 3,27};2829struct tea5767_ctrl {30unsigned int port1:1;31unsigned int port2:1;32unsigned int high_cut:1;33unsigned int st_noise:1;34unsigned int soft_mute:1;35unsigned int japan_band:1;36unsigned int deemph_75:1;37unsigned int pllref:1;38enum tea5767_xtal xtal_freq;39};4041#if defined(CONFIG_MEDIA_TUNER_TEA5767) || (defined(CONFIG_MEDIA_TUNER_TEA5767_MODULE) && defined(MODULE))42extern int tea5767_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr);4344extern struct dvb_frontend *tea5767_attach(struct dvb_frontend *fe,45struct i2c_adapter* i2c_adap,46u8 i2c_addr);47#else48static inline int tea5767_autodetection(struct i2c_adapter* i2c_adap,49u8 i2c_addr)50{51printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",52__func__);53return -EINVAL;54}5556static inline struct dvb_frontend *tea5767_attach(struct dvb_frontend *fe,57struct i2c_adapter* i2c_adap,58u8 i2c_addr)59{60printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);61return NULL;62}63#endif6465#endif /* __TEA5767_H__ */666768