media: uvcvideo: Apply flags from device to actual properties
authorEdgar Thier <info@edgarthier.net>
Thu, 12 Oct 2017 07:54:17 +0000 (03:54 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 07:04:13 +0000 (02:04 -0500)
commit859086ae3636eae0bf9f0fbbce2daf4d41ae9474
treeef02c2dd48d99cd5abb4f1bd93c4e59bce0189c7
parent4395fb475a27ddcb33c27380e132ef5354ff67c6
media: uvcvideo: Apply flags from device to actual properties

Use flags the device exposes for UVC controls.
This allows the device to define which property flags are set.

Since some cameras offer auto-adjustments for properties (e.g. auto-gain),
the values of other properties (e.g. gain) can change in the camera.
Examining the flags ensures that the driver is aware of such properties.

Signed-off-by: Edgar Thier <info@edgarthier.net>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_ctrl.c