Hi,

i'm not sure, but it looks like all non-uvc controls are done in
libwebcam and uvcdynctrl-data. For example this one is for logitech
uvcdynctrl-data: /usr/share/uvcdynctrl/data/046d/logitech.xml


On 21.11.2011 02:52, DIXLOR wrote:
> Good day All!
> 
> How and where in your uvc driver code to be inserted,
> тo pass in the USB a few bytes?
> 
> With libusb this string looks like:
> 
> #define ON_LED  "\x00\x00\x01\xc2\x00\x00\x00"
> memcpy(buf, ON_LED, 0x7);
> usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE,  1, 0x600, 0x400,
> buf, 0x7, 1000);
> 
> The problem is that this code works only when the camera is turned on.
> 
> ---
> In kernel code with looks like
> 
> #define ON_LED  "\x00\x00\x01\xc2\x00\x00\x00"
> 
> buff = kmalloc(0x7, GFP_KERNEL);
> memcpy(buff, ON_LED, 0x7);
> ret = usb_control_msg(udev, usb_sndctrlpipe(udev, 0x83), 0x21, 0x1, 0x600,
> 0x400, buff, 0x7, 1000);
> 
> uvc_printk(KERN_ERR, "retval = %d\n", ret);
> 
> But where to insert this code?
> And it should be sent only after the start the video.
> 
> _______________________________________________
> Linux-uvc-devel mailing list
> Linux-uvc-devel@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to