[media] uvcvideo: Fix reading the current exposure value of UVC
authorAnton V. Shokurov <shokurov.anton.v@yandex.ru>
Sun, 18 Oct 2015 21:01:26 +0000 (19:01 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 17:21:34 +0000 (15:21 -0200)
commit1ab8c3fc750321726313b222230343de897744b1
tree72987f1be44bf1af186205f98d6cca30a3a9ee2a
parentf0b0faff78c2c2e8efe843de55405a1f0470b8c4
[media] uvcvideo: Fix reading the current exposure value of UVC

V4L2_CID_EXPOSURE_ABSOLUTE property does not return an updated value when
autoexposure (V4L2_CID_EXPOSURE_AUTO) is turned on. This patch fixes this
issue by adding the UVC_CTRL_FLAG_AUTO_UPDATE flag.

Tested on a C920 camera.

Signed-off-by: Anton V. Shokurov <shokurov.anton.v@yandex.ru>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_ctrl.c