linux_dsm_epyc7002/drivers/media/video/uvc
Laurent Pinchart ba2fa99668 [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 <martin_rubli@logitech.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-10-21 01:18:21 -02:00
..
Kconfig V4L/DVB (11439): UVC: uvc_status_cleanup(): undefined reference to `input_unregister_device' 2009-04-06 21:44:52 -03:00
Makefile V4L/DVB (8178): uvc: Fix compilation breakage for the other drivers, if uvc is selected 2008-07-02 08:58:15 -03:00
uvc_ctrl.c [media] uvcvideo: Hardcode the index/selector relationship for XU controls 2010-10-21 01:18:21 -02:00
uvc_driver.c [media] uvcvideo: Hardcode the index/selector relationship for XU controls 2010-10-21 01:18:21 -02:00
uvc_isight.c [media] uvcvideo: Update e-mail address and copyright notices 2010-10-21 01:18:18 -02:00
uvc_queue.c [media] uvcvideo: Generate discontinuous sequence numbers when frames are lost 2010-10-21 01:18:20 -02:00
uvc_status.c [media] uvcvideo: Update e-mail address and copyright notices 2010-10-21 01:18:18 -02:00
uvc_v4l2.c [media] uvcvideo: Hardcode the index/selector relationship for XU controls 2010-10-21 01:18:21 -02:00
uvc_video.c [media] uvcvideo: Generate discontinuous sequence numbers when frames are lost 2010-10-21 01:18:20 -02:00
uvcvideo.h [media] uvcvideo: Hardcode the index/selector relationship for XU controls 2010-10-21 01:18:21 -02:00