summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorPete <pete@sensoray.com>2011-11-18 15:00:15 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 21:09:25 -0200
commit7e5219d18e93dd23e834a53b1ea73ead19cfeeb1 (patch)
treefef0a08143309ac99a3ce161c4b7de8b7e17b683 /drivers/staging
parent6d00c9aa2bb98909de21eaaf767b9ed76fe26f86 (diff)
downloadlinux-stable-7e5219d18e93dd23e834a53b1ea73ead19cfeeb1.tar.gz
linux-stable-7e5219d18e93dd23e834a53b1ea73ead19cfeeb1.tar.bz2
linux-stable-7e5219d18e93dd23e834a53b1ea73ead19cfeeb1.zip
[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: Pete Eberlein <pete@sensoray.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/go7007/go7007-usb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/staging/media/go7007/go7007-usb.c b/drivers/staging/media/go7007/go7007-usb.c
index 3db3b0a91cc1..cffb0b3b93e8 100644
--- a/drivers/staging/media/go7007/go7007-usb.c
+++ b/drivers/staging/media/go7007/go7007-usb.c
@@ -1054,7 +1054,13 @@ static int go7007_usb_probe(struct usb_interface *intf,
else
go->hpi_ops = &go7007_usb_onboard_hpi_ops;
go->hpi_context = usb;
- usb_fill_int_urb(usb->intr_urb, usb->usbdev,
+ 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_rcvintpipe(usb->usbdev, 4),
usb->intr_urb->transfer_buffer, 2*sizeof(u16),
go7007_usb_readinterrupt_complete, go, 8);