linux/drivers/media/usb/uvc
Laurent Pinchart 68d6f84ba0 [media] uvcvideo: Set error_idx properly for S_EXT_CTRLS failures
The uvc_set_ctrl() calls don't write to the hardware. A failure at that
point thus leaves the device in a clean state, with no control modified.
Set the error_idx field to the count value to reflect that, as per the
V4L2 specification.
TRY_EXT_CTRLS is unchanged and the error_idx field must always be set to
the failed control index in that case.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-01-11 13:30:27 -02:00
..
Kconfig
Makefile
uvc_ctrl.c [media] uvcvideo: Return -EACCES when trying to set a read-only control 2013-01-11 13:30:01 -02:00
uvc_debugfs.c
uvc_driver.c [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00
uvc_entity.c [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00
uvc_isight.c
uvc_queue.c [media] v4l: uvc: add support for DMABUF importing 2012-11-25 17:19:31 -02:00
uvc_status.c
uvc_v4l2.c [media] uvcvideo: Set error_idx properly for S_EXT_CTRLS failures 2013-01-11 13:30:27 -02:00
uvc_video.c [media] uvcvideo: Don't fail when an unsupported format is requested 2012-11-28 10:27:49 -02:00
uvcvideo.h [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00