linux/drivers/media
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
..
common [media] tda18271: allow restricting max out to 4 bytes 2010-10-21 01:17:43 -02:00
dvb [media] af9015: move remote controllers to new RC core 2010-10-21 01:18:14 -02:00
IR [media] fix A-Link DTU(m) remote controller PIP button 2010-10-21 01:18:13 -02:00
radio [media] radio-mr800: fix locking order 2010-10-21 01:18:15 -02:00
video [media] uvcvideo: Hardcode the index/selector relationship for XU controls 2010-10-21 01:18:21 -02:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00