From: Laurent Pinchart Date: Mon, 20 Sep 2010 08:53:21 +0000 (-0300) Subject: [media] uvcvideo: Hardcode the index/selector relationship for XU controls X-Git-Tag: v2.6.37-rc1~64^2~222 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba2fa99668bb9bf03757a020f15bba295d5c0a3e;p=pandora-kernel.git [media] uvcvideo: Hardcode the index/selector relationship for XU controls Devices advertise XU controls using a bitmask, in which each bit corresponds to a control. The control selector, used to query the control, isn't available in the USB descriptors. All known UVC devices use control selectors equal to the control bit index plus one. Hardcode that relationship in the driver, making the UVCIOC_CTRL_ADD ioctl obsolete. All necessary information about XU controls can be obtained by the driver at enumeration time. The UVCIOC_CTRL_ADD ioctl is still supported for compatibility reasons, but now always returns -EEXIST. Finally, control mappings are now on a per-device basis and no longer global. As this changes the userspace interface, bump the driver version number to 1.0.0 (it was about time). Signed-off-by: Martin Rubli Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed