Hi,
I tried to access controls on the second extension unit by UVCIOC_CTRL_ADD, but 
they all failed with error code 1

For example, for the fist control: 

    // These settings are common to all XU Controls...
    memcpy(ci.entity, EXT_UNIT_GUID, GUID_SIZE);
    ci.size = 2;
    ci.flags = UVC_CONTROL_SET_CUR | UVC_CONTROL_GET_CUR;

    ci.index = 1;  
    ci.selector =1;

    if (xioctl(hCamera, UVCIOC_CTRL_ADD, &ci) == -1)
    {
        if (errno != 17)
        {
            CLogStream::LogErrorMessage("MapExtUnitControls Failed!.", errno);
        }
        //return -1;
    }

Getting or setting this first control is ok. But failed on other controls.

By dmesg, it shows:
[28045.674782] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'U', dir=rw, #3 
(0xc0085503))
[28045.675530] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'U', dir=rw, #3 
(0xc0085503))
[28045.675540] uvcvideo: Control 2812ae3f-bcd7-4e11-a357-6f1edef7d61d/2 not 
found.
[28045.675987] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'U', dir=rw, #3 
(0xc0085503))
[28045.675999] uvcvideo: Control 2812ae3f-bcd7-4e11-a357-6f1edef7d61d/5 not 
found.
[28045.676348] uvcvideo: uvc_v4l2_ioctl(unknown ioctl 'U', dir=rw, #3 
(0xc0085503))
[28045.676359] uvcvideo: Control 2812ae3f-bcd7-4e11-a357-6f1edef7d61d/3 not 
found.

May I know why? Is there any flag I need turn on? Please help!

Daniel Zhang

_________________________________________________________________
上Windows Live 中国首页,下载最新版 MSN!
http://im.live.cn/
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to