diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-09-19 12:51:40 -0300 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2006-09-19 12:51:40 -0300 |
commit | d6e3c1d9036faa5f183ea1864e55a323c0498d8d (patch) | |
tree | e6e64c61528ca3476a7e70a97027cebe20143caa /linux/drivers/media/dvb/frontends/mt2060.c | |
parent | 9a0142aef97ddb0d8608df27ce99b4ffb1af2506 (diff) | |
download | mediapointer-dvb-s2-d6e3c1d9036faa5f183ea1864e55a323c0498d8d.tar.gz mediapointer-dvb-s2-d6e3c1d9036faa5f183ea1864e55a323c0498d8d.tar.bz2 |
Hauppauge Nova-T 500 support added
From: Patrick Boettcher <pb@linuxtv.org>
This changeset finalizes the support of the Hauppauge Nova-T 500 (Dual DVB-T).
It adds correct AGC setting for the 3000P, correct firmware download state
detection.
Additionally it fixes the mt2060-driver to be able to be used with dvb_attach.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/mt2060.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/mt2060.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt2060.c b/linux/drivers/media/dvb/frontends/mt2060.c index 7c21b01ac..2122b0696 100644 --- a/linux/drivers/media/dvb/frontends/mt2060.c +++ b/linux/drivers/media/dvb/frontends/mt2060.c @@ -338,14 +338,14 @@ static const struct dvb_tuner_ops mt2060_tuner_ops = { }; /* This functions tries to identify a MT2060 tuner by reading the PART/REV register. This is hasty. */ -int mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1) +struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1) { struct mt2060_priv *priv = NULL; u8 id = 0; priv = kzalloc(sizeof(struct mt2060_priv), GFP_KERNEL); if (priv == NULL) - return -ENOMEM; + return NULL; priv->cfg = cfg; priv->i2c = i2c; @@ -353,12 +353,12 @@ int mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt206 if (mt2060_readreg(priv,REG_PART_REV,&id) != 0) { kfree(priv); - return -ENODEV; + return NULL; } if (id != PART_REV) { kfree(priv); - return -ENODEV; + return NULL; } printk(KERN_INFO "MT2060: successfully identified (IF1 = %d)\n", if1); memcpy(&fe->ops.tuner_ops, &mt2060_tuner_ops, sizeof(struct dvb_tuner_ops)); @@ -367,7 +367,7 @@ int mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt206 mt2060_calibrate(priv); - return 0; + return fe; } EXPORT_SYMBOL(mt2060_attach); |