linux/drivers/media
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
..
common V4L/DVB: tuner-xc2028: Fix demod breakage for XC3028L 2010-02-26 15:11:03 -03:00
dvb V4L/DVB: dvb-usb/opera1: misplaced parenthesis 2010-02-26 15:11:03 -03:00
IR V4L/DVB: Kworld 315U remote support 2010-02-26 15:10:58 -03:00
radio V4L/DVB: radio_timberdale: depends on I2c 2010-02-26 15:11:02 -03:00
video V4L/DVB: uvcvideo: Clamp control values to the minimum and maximum values 2010-02-26 15:11:04 -03:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00