V4L/DVB (9288): gspca: Write to the USB device and not USB interface in t613.
authorJean-Francois Moine <moinejf@free.fr>
Fri, 17 Oct 2008 07:45:27 +0000 (04:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 17 Oct 2008 20:40:43 +0000 (17:40 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/t613.c

index 9c8562f2390015aac4003b1dbac486844559067f..6aa3bca91b2f67125a7481ebffa9d1ff9673c64e 100644 (file)
@@ -385,7 +385,7 @@ static void reg_w(struct gspca_dev *gspca_dev,
        usb_control_msg(gspca_dev->dev,
                        usb_sndctrlpipe(gspca_dev->dev, 0),
                        0,
-                       USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+                       USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
                        0, index,
                        NULL, 0, 500);
 }
@@ -398,7 +398,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev,
                usb_control_msg(gspca_dev->dev,
                                usb_sndctrlpipe(gspca_dev->dev, 0),
                                0,
-                          USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+                          USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
                                0x01, 0,
                                gspca_dev->usb_buf, len, 500);
        } else {
@@ -409,7 +409,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev,
                usb_control_msg(gspca_dev->dev,
                                usb_sndctrlpipe(gspca_dev->dev, 0),
                                0,
-                          USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+                          USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
                                0x01, 0,
                                tmpbuf, len, 500);
                kfree(tmpbuf);