kernel-ark/drivers/media/video/uvc
Laurent Pinchart e54532e591 V4L/DVB: uvcvideo: Clamp control values to the minimum and maximum values
When setting a control, the V4L2 specification requires drivers to
either clamp the control value to the [minimum, maximum] range or return
the -ERANGE error.

Fix the driver to clamp control values to the valid range in
uvc_ctrl_set() and make sure the value differs from the minimum by an
integer multiple of step.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-02-26 15:11:04 -03:00
..
Kconfig V4L/DVB (11439): UVC: uvc_status_cleanup(): undefined reference to `input_unregister_device' 2009-04-06 21:44:52 -03:00
Makefile
uvc_ctrl.c V4L/DVB: uvcvideo: Clamp control values to the minimum and maximum values 2010-02-26 15:11:04 -03:00
uvc_driver.c V4L/DVB: uvcvideo: Use %pUl printk format specifier to print GUIDs 2010-02-26 15:11:04 -03:00
uvc_isight.c V4L/DVB (12378): uvcvideo: Restructure the driver to support multiple simultaneous streams. 2009-09-12 12:18:32 -03:00
uvc_queue.c V4L/DVB (13827): uvcvideo: Switch to a monotonic clock for V4L2 buffers timestamps 2010-02-26 15:10:24 -03:00
uvc_status.c V4L/DVB (12380): uvcvideo: Avoid flooding the kernel log with "unknown event type" messages 2009-08-13 20:39:05 -03:00
uvc_v4l2.c V4L/DVB: uvcvideo: Clamp control values to the minimum and maximum values 2010-02-26 15:11:04 -03:00
uvc_video.c V4L/DVB (13827): uvcvideo: Switch to a monotonic clock for V4L2 buffers timestamps 2010-02-26 15:10:24 -03:00
uvcvideo.h V4L/DVB: uvcvideo: Cache control min, max, res and def query results 2010-02-26 15:11:04 -03:00