39 usb_rcvctrlpipe(d->
udev, 0),
42 value, index, b, blen,
46 warn(
"usb in operation failed. (%d)", ret);
52 deb_xfer(
"in: req. %02x, val: %04x, ind: %04x, buffer: ",req,value,index);
64 ret = vp702x_usb_in_op_unlocked(d, req, value, index, b, blen);
74 deb_xfer(
"out: req. %02x, val: %04x, ind: %04x, buffer: ",req,value,index);
78 usb_sndctrlpipe(d->
udev,0),
83 warn(
"usb out operation failed. (%d)",ret);
110 ret = vp702x_usb_in_op_unlocked(d,
REQUEST_IN, 0, 0, i, ilen);
117 int olen,
u8 *
i,
int ilen,
int msec)
134 info(
"successfully reallocated a bigger buffer");
231 vp702x_set_pld_mode(adap, 1);
234 vp702x_set_pid(adap, 0xffff, i, 1);
248 static int vp702x_streaming_ctrl(
struct dvb_usb_adapter *adap,
int onoff)
274 deb_rc(
"remote query key: %x %d\n",key[1],key[1]);
276 if (key[1] == 0x44) {
282 for (i = 0; i <
ARRAY_SIZE(rc_map_vp702x_table); i++)
283 if (rc5_custom(&rc_map_vp702x_table[i]) == key[1]) {
285 *
event = rc_map_vp702x_table[
i].
keycode;
300 for (i = 6; i < 12; i++)
319 info(
"system string: %s",&buf[1]);
321 vp702x_init_pid_filter(adap);
358 static void vp702x_usb_disconnect(
struct usb_interface *intf)
378 .firmware =
"dvb-usb-vp702x-02.fw",
390 .streaming_ctrl = vp702x_streaming_ctrl,
391 .frontend_attach = vp702x_frontend_attach,
408 .read_mac_address = vp702x_read_mac_addr,
411 .rc_map_table = rc_map_vp702x_table,
412 .rc_map_size =
ARRAY_SIZE(rc_map_vp702x_table),
414 .rc_query = vp702x_rc_query,
417 .num_device_descs = 1,
419 { .name =
"TwinhanDTV StarBox DVB-S USB2.0 (VP7021)",
420 .cold_ids = { &vp702x_usb_table[0],
NULL },
421 .warm_ids = {
NULL },
432 static struct usb_driver vp702x_usb_driver = {
433 .name =
"dvb_usb_vp702x",
434 .probe = vp702x_usb_probe,
435 .disconnect = vp702x_usb_disconnect,
436 .id_table = vp702x_usb_table,