aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/au6610.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2007-01-27 14:41:35 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:35:31 -0500
commit705d41e5da674b449f900df97ad13ebe53e82b82 (patch)
tree058036817b0d597f778dc9e48f78ebb3c7df2efe /drivers/media/dvb/dvb-usb/au6610.c
parent38d0629fd80464247290450d8641890d6f94b6fa (diff)
V4L/DVB (5240): Qt1010: use i2c_gate_ctrl where appropriate
This patch adds calls to i2c_gate_ctrl in the qt1010 dvb tuner module, while removing the temporary hack in au6610 and gl861. Tested successfully against fi-Oulu frequencies with MSI Megasky 580 GL861 and Sigmatek DVB-110 AU6610. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/au6610.c')
-rw-r--r--drivers/media/dvb/dvb-usb/au6610.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/media/dvb/dvb-usb/au6610.c b/drivers/media/dvb/dvb-usb/au6610.c
index 456b89f4f761..0dc66a8d2baf 100644
--- a/drivers/media/dvb/dvb-usb/au6610.c
+++ b/drivers/media/dvb/dvb-usb/au6610.c
@@ -145,19 +145,6 @@ static struct qt1010_config au6610_qt1010_config = {
145 145
146static int au6610_qt1010_tuner_attach(struct dvb_usb_adapter *adap) 146static int au6610_qt1010_tuner_attach(struct dvb_usb_adapter *adap)
147{ 147{
148 /* TODO FIXME; probably I2C gate.
149 QT1010 tuner does not respond before we write 0x1a to ZL10353 demod
150 register 0x62. This ought to be done somewhere in demod initialization.
151 This solution is temporary hack. */
152
153 u8 buf[2] = { 0x62, 0x1a };
154 struct i2c_msg msg = { .addr = au6610_zl10353_config.demod_address,
155 .flags = 0, .buf = buf, .len = 2 };
156
157 if (i2c_transfer(&adap->dev->i2c_adap, &msg, 1) != 1) {
158 printk(KERN_WARNING "au6610 tuner attach failed\n");
159 return -EREMOTEIO;
160 }
161 return dvb_attach(qt1010_attach, 148 return dvb_attach(qt1010_attach,
162 adap->fe, &adap->dev->i2c_adap, 149 adap->fe, &adap->dev->i2c_adap,
163 &au6610_qt1010_config) == NULL ? -ENODEV : 0; 150 &au6610_qt1010_config) == NULL ? -ENODEV : 0;