Commit 7e5219d1 authored by Pete's avatar Pete Committed by Mauro Carvalho Chehab

[media] go7007: Fix 2250 urb type

commit a846d8fce9e8be30046be3c512982bd0345e7015

The 2250 board uses bulk endpoint for interrupt handling,
and should use a bulk urb instead of an int urb.
Signed-off-by: default avatarPete Eberlein <pete@sensoray.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6d00c9aa
...@@ -1054,6 +1054,12 @@ static int go7007_usb_probe(struct usb_interface *intf, ...@@ -1054,6 +1054,12 @@ static int go7007_usb_probe(struct usb_interface *intf,
else else
go->hpi_ops = &go7007_usb_onboard_hpi_ops; go->hpi_ops = &go7007_usb_onboard_hpi_ops;
go->hpi_context = usb; go->hpi_context = usb;
if (go->board_id == GO7007_BOARDID_SENSORAY_2250)
usb_fill_bulk_urb(usb->intr_urb, usb->usbdev,
usb_rcvbulkpipe(usb->usbdev, 4),
usb->intr_urb->transfer_buffer, 2*sizeof(u16),
go7007_usb_readinterrupt_complete, go);
else
usb_fill_int_urb(usb->intr_urb, usb->usbdev, usb_fill_int_urb(usb->intr_urb, usb->usbdev,
usb_rcvintpipe(usb->usbdev, 4), usb_rcvintpipe(usb->usbdev, 4),
usb->intr_urb->transfer_buffer, 2*sizeof(u16), usb->intr_urb->transfer_buffer, 2*sizeof(u16),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment