Hi Daniel, On Monday 23 March 2009 23:20:54 ZhangDaniel wrote: > Hi, > I tried to access controls on the second extension unit by UVCIOC_CTRL_ADD, > but they all failed with error code 1
1 is EPERM. You need to be root to add extension unit definitions and mappings. Accessing the extension units (either directly with UVCIOC_CTRL_GET/UVCIOC_CTRL_SET or through mappings with VIDIOC_G_CTRL/VIDIOC_S_CTRL) can be done as a non-privileged user. Have you tried to add your extension unit definitions with uvcdynctrl instead of rolling out your own code ? uvcdynctrl takes a (rather simple) XML input file and configures the driver accordingly. Best regards, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
