aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/gl861.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/dvb-usb/gl861.c')
-rw-r--r--drivers/media/dvb/dvb-usb/gl861.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/media/dvb/dvb-usb/gl861.c b/drivers/media/dvb/dvb-usb/gl861.c
index d62edb533d00..c9f38a5e70d3 100644
--- a/drivers/media/dvb/dvb-usb/gl861.c
+++ b/drivers/media/dvb/dvb-usb/gl861.c
@@ -122,19 +122,6 @@ static struct qt1010_config gl861_qt1010_config = {
122 122
123static int gl861_tuner_attach(struct dvb_usb_adapter *adap) 123static int gl861_tuner_attach(struct dvb_usb_adapter *adap)
124{ 124{
125 /* TODO FIXME; probably I2C gate.
126 QT1010 tuner does not respond before we write 0x1a to ZL10353 demod
127 register 0x62. This ought to be done somewhere in demod initialization.
128 This solution is temporary hack. */
129
130 u8 buf[2] = { 0x62, 0x1a };
131 struct i2c_msg msg = { .addr = gl861_zl10353_config.demod_address,
132 .flags = 0, .buf = buf, .len = 2 };
133
134 if (i2c_transfer(&adap->dev->i2c_adap, &msg, 1) != 1) {
135 printk(KERN_WARNING "gl861 tuner attach failed\n");
136 return -EREMOTEIO;
137 }
138 return dvb_attach(qt1010_attach, 125 return dvb_attach(qt1010_attach,
139 adap->fe, &adap->dev->i2c_adap, 126 adap->fe, &adap->dev->i2c_adap,
140 &gl861_qt1010_config) == NULL ? -ENODEV : 0; 127 &gl861_qt1010_config) == NULL ? -ENODEV : 0;