mirror of https://gitee.com/openkylin/linux.git
V4L/DVB: gspca - pac7302/11: Bad request value in USB write
Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
4e6aeefeb8
commit
a1317135d1
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue