Ricardo Ribalda 7faf8ae427 media: uvcvideo: Fix handling on Bitmask controls
Minimum and step values for V4L2_CTRL_TYPE_BITMASK controls should be 0.
There is no need to query the camera firmware about this and maybe get
invalid results.

Also value should be masked to the max value advertised by the
hardware.

Finally, handle UVC 1.5 mask controls that use MAX instead of RES to
describe the valid bits.

Fixes v4l2-compliane:
Control ioctls (Input 0):
                fail: v4l2-test-controls.cpp(97): minimum must be 0 for a bitmask control
	test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: FAIL

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2023-01-15 23:45:12 +02:00
..
2022-12-13 19:29:45 -08:00
2022-12-16 03:54:54 -08:00
2022-12-13 11:36:58 -08:00
2022-03-18 05:58:35 +01:00
2022-12-21 09:44:41 -08:00
2022-12-16 03:54:54 -08:00
2022-03-23 14:51:35 -07:00
2022-12-13 11:36:58 -08:00
2022-11-25 07:55:21 +00:00
2022-12-21 09:44:41 -08:00
2022-03-12 16:59:52 +01:00