]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Fix control value clamping for unsigned integer controls
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 26 Sep 2012 11:15:24 +0000 (08:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 28 Nov 2012 12:31:14 +0000 (10:31 -0200)
commit87acc64d0eac2220a235bfb269e8ce6b191a5106
tree5627e3ef1ab2e1dbe6093f60b9705cbe119d41ef
parent033658d1359b3b7851287fc4704f0b330d11598c
[media] uvcvideo: Fix control value clamping for unsigned integer controls

V4L2 integer controls are stored in signed 32-bit values. However, UVC
controls can be either signed or unsigned. Take the UVC control
signedness into account when clamping the control value to the min-max
range.

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