[media] uvcvideo: Fix bogus XU controls information
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 1 Oct 2010 18:39:49 +0000 (15:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:18:25 +0000 (01:18 -0200)
commitb5977a58c330ac6afdc64bab9b1dd674f11c0635
tree3bf9956d28f067aca41cc87e4812abfe53eda7af
parent52c58ad6f95ff60343bf0c517182d5f649ca0403
[media] uvcvideo: Fix bogus XU controls information

XU control information is supposed to be entirely discoverable using
standard UVC queries. As some devices report bogus information (such as
reporting a read-only control as being read-write), add a fixup table
for XU controls.

This table can also be used to selectively disable requests supposed to
be supported by all XU controls (GET_MIN, GET_MAX, GET_DEF, GET_RES) but
not correctly (or at all) supported by the device.

The table currently disables GET_CUR on the Logitech motor control XU
pan/tilt controls.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_ctrl.c