29 static int dvb_usb_dtv5100_debug;
58 warn(
"wlen = %x, aborting.", wlen);
61 index = (addr << 8) + wbuf[0];
65 type, value, index, rbuf, rlen,
82 for (i = 0; i < num; i++) {
85 if (dtv5100_i2c_msg(d, msg[i].addr, msg[i].
buf,
86 msg[i].len, msg[i+1].buf,
90 }
else if (dtv5100_i2c_msg(d, msg[i].addr, msg[i].
buf,
91 msg[i].len,
NULL, 0) < 0)
105 .master_xfer = dtv5100_i2c_xfer,
106 .functionality = dtv5100_i2c_func,
119 &adap->
dev->i2c_adap);
137 &dtv5100_qt1010_config) ==
NULL ? -
ENODEV : 0;
147 struct usb_device *
udev = interface_to_usbdev(intf);
150 for (i = 0; dtv5100_init[
i].request; i++) {
152 dtv5100_init[i].request,
154 dtv5100_init[i].value,
155 dtv5100_init[i].index,
NULL, 0,
170 { USB_DEVICE(0x06be, 0xa232) },
185 .frontend_attach = dtv5100_frontend_attach,
186 .tuner_attach = dtv5100_tuner_attach,
201 .i2c_algo = &dtv5100_i2c_algo,
203 .num_device_descs = 1,
206 .name =
"AME DTV-5100 USB2.0 DVB-T",
207 .cold_ids = {
NULL },
208 .warm_ids = { &dtv5100_table[0],
NULL },
213 static struct usb_driver dtv5100_driver = {
214 .name =
"dvb_usb_dtv5100",
215 .probe = dtv5100_probe,
217 .id_table = dtv5100_table,