Skip to contentSkip to conversation

spca561: add USB_DIR_OUT to reg_w_val()

PATCH New Shane 1 participant 1 message Sep 11, 2008 Media (V4L/DVB)

lore
Share & tools
lore

Shane

author
#0 lore raw

PATCH 1/1 spca561: add USB_DIR_OUT to reg_w_val()

Looks like USB_DIR_OUT was missing in reg_w_val(...)

drivers/media/video/gspca/spca561.c +0 -0
@@ -152,7 +152,7 @@ static void reg_w_val(struct usb_device *dev,

__u16 index, __u8 value)

ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
0, /* request */
- USB_TYPE_VENDOR | USB_RECIP_DEVICE,
+ USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,

                              value, index, NULL, 0, 500);
        PDEBUG(D_USBO, "reg write: 0x%02x:0x%02x", index, value);
        if (ret < 0)

Shane Shrybman

drivers/media/video/gspca/spca561.c +1 -1
index 95fcfcb..ad49939 100644
@@ -152,7 +152,7 @@ static void reg_w_val(struct usb_device *dev, __u16 index, __u8 value)
 
 	ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
 			      0,		/* request */
-			      USB_TYPE_VENDOR | USB_RECIP_DEVICE,
+			      USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
 			      value, index, NULL, 0, 500);
 	PDEBUG(D_USBO, "reg write: 0x%02x:0x%02x", index, value);
 	if (ret < 0)

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list