V4L/DVB: gspca - pac7302/11: Bad request value in USB write
authorJean-François Moine <moinejf@free.fr>
Thu, 24 Jun 2010 07:50:26 +0000 (04:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:51:30 +0000 (14:51 -0300)
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/pac7302.c
drivers/media/video/gspca/pac7311.c

index 7c0f265fae9da24bc3cfe78548756b76ceb7c7eb..bf47180a4e2fa322997f5a1fd464c0c73cdac4ec 100644 (file)
@@ -402,7 +402,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev,
        memcpy(gspca_dev->usb_buf, buffer, len);
        ret = usb_control_msg(gspca_dev->dev,
                        usb_sndctrlpipe(gspca_dev->dev, 0),
-                       1,              /* request */
+                       0,              /* request */
                        USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
                        0,              /* value */
                        index, gspca_dev->usb_buf, len,
index 44fed9686729340777e9425b1ad5e10e56204651..c978599a69dd4e2982dac2acbd107ab404ad92ef 100644 (file)
@@ -270,7 +270,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev,
        memcpy(gspca_dev->usb_buf, buffer, len);
        ret = usb_control_msg(gspca_dev->dev,
                        usb_sndctrlpipe(gspca_dev->dev, 0),
-                       1,              /* request */
+                       0,              /* request */
                        USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
                        0,              /* value */
                        index, gspca_dev->usb_buf, len,