From 43950da130503eeb6f9a9304aa7b7d482d535ad6 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Sat, 25 Mar 2006 09:19:18 +0100 Subject: Adding support for MT2060 and thus for some DVB-USB-devices based on it From: Olivier DANET - MT2060 tuner driver - Added support for some USB DVB-T devices based on Dib3000P Signed-off-by: Olivier DANET Signed-off-by: Patrick Boettcher --- linux/drivers/media/dvb/frontends/mt2060.h | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 linux/drivers/media/dvb/frontends/mt2060.h (limited to 'linux/drivers/media/dvb/frontends/mt2060.h') diff --git a/linux/drivers/media/dvb/frontends/mt2060.h b/linux/drivers/media/dvb/frontends/mt2060.h new file mode 100644 index 000000000..5ced83edd --- /dev/null +++ b/linux/drivers/media/dvb/frontends/mt2060.h @@ -0,0 +1,42 @@ +/* + * Driver for Microtune MT2060 "Single chip dual conversion broadband tuner" + * + * Copyright (c) 2006 Olivier DANET + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.= + */ + +#ifndef MT2060_H +#define MT2060_H + +#include +#include + +struct mt2060_config { + u8 i2c_address; + /* Shall we add settings for the discrete outputs ? */ +}; + +struct mt2060_state { + struct mt2060_config *config; + struct i2c_adapter *i2c; +}; + +extern int mt2060_init(struct mt2060_state *state); +extern int mt2060_set(struct mt2060_state *state, struct dvb_frontend_parameters *fep); +extern int mt2060_attach(struct mt2060_state *state, struct mt2060_config *config, struct i2c_adapter *i2c); + +#endif -- cgit v1.2.3 From a91d0858325681bae8a94013aaa1833341aa6da4 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Sun, 26 Mar 2006 19:34:39 +0200 Subject: Cleanups for mt2060-integration From: Patrick Boettcher - some coding style fixes for newly added mt2060 - moved agc-config from fixed values in dib3000mc to configurable ones - whitespace clean-ups for usb-id-file Signed-off-by: Patrick Boettcher --- linux/drivers/media/dvb/frontends/mt2060.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux/drivers/media/dvb/frontends/mt2060.h') diff --git a/linux/drivers/media/dvb/frontends/mt2060.h b/linux/drivers/media/dvb/frontends/mt2060.h index 5ced83edd..9996fd668 100644 --- a/linux/drivers/media/dvb/frontends/mt2060.h +++ b/linux/drivers/media/dvb/frontends/mt2060.h @@ -33,6 +33,8 @@ struct mt2060_config { struct mt2060_state { struct mt2060_config *config; struct i2c_adapter *i2c; + + u8 fmfreq; }; extern int mt2060_init(struct mt2060_state *state); -- cgit v1.2.3 From afdbbc48eaea9b0d9a539643a88aa5a74a63dde3 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Mon, 17 Apr 2006 18:22:15 +0200 Subject: MT2060: IF1 Offset from EEPROM, several updates From: Patrick Boettcher - AGC gain set to 3 - The tuning sequence has been changed to match the DibCom driver ( from I2C spy captures ) - For LITE-ON adapters : The IF1 frequency is now tuned according to the calibration values stored in EEPROM. Signed-off-by: Patrick Boettcher Signed-off-by: Olivier DANET --- linux/drivers/media/dvb/frontends/mt2060.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/mt2060.h') diff --git a/linux/drivers/media/dvb/frontends/mt2060.h b/linux/drivers/media/dvb/frontends/mt2060.h index 9996fd668..d5dae102f 100644 --- a/linux/drivers/media/dvb/frontends/mt2060.h +++ b/linux/drivers/media/dvb/frontends/mt2060.h @@ -33,12 +33,12 @@ struct mt2060_config { struct mt2060_state { struct mt2060_config *config; struct i2c_adapter *i2c; - + u16 if1_freq; u8 fmfreq; }; extern int mt2060_init(struct mt2060_state *state); extern int mt2060_set(struct mt2060_state *state, struct dvb_frontend_parameters *fep); -extern int mt2060_attach(struct mt2060_state *state, struct mt2060_config *config, struct i2c_adapter *i2c); +extern int mt2060_attach(struct mt2060_state *state, struct mt2060_config *config, struct i2c_adapter *i2c,u16 if1); #endif -- cgit v1.2.3 From e94018d54aa38ab9118db9a3e312f09f7eabd4ee Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Tue, 4 Jul 2006 18:35:40 +0200 Subject: Update for MT2060 to use dvb_tuner_ops From: Olivier DANET new tuner api minor fixes for tuning Signed-off-by: Olivier DANET Signed-off-by: Patrick Boettcher --- linux/drivers/media/dvb/frontends/mt2060.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/mt2060.h') diff --git a/linux/drivers/media/dvb/frontends/mt2060.h b/linux/drivers/media/dvb/frontends/mt2060.h index d5dae102f..c58b03e82 100644 --- a/linux/drivers/media/dvb/frontends/mt2060.h +++ b/linux/drivers/media/dvb/frontends/mt2060.h @@ -22,23 +22,14 @@ #ifndef MT2060_H #define MT2060_H -#include -#include +struct dvb_frontend; +struct i2c_adapter; struct mt2060_config { u8 i2c_address; /* Shall we add settings for the discrete outputs ? */ }; -struct mt2060_state { - struct mt2060_config *config; - struct i2c_adapter *i2c; - u16 if1_freq; - u8 fmfreq; -}; - -extern int mt2060_init(struct mt2060_state *state); -extern int mt2060_set(struct mt2060_state *state, struct dvb_frontend_parameters *fep); -extern int mt2060_attach(struct mt2060_state *state, struct mt2060_config *config, struct i2c_adapter *i2c,u16 if1); +extern int mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1); #endif -- cgit v1.2.3