From: Laurent Pinchart Date: Fri, 11 Jan 2013 12:42:00 +0000 (-0300) Subject: [media] uvcvideo: Set error_idx properly for S_EXT_CTRLS failures X-Git-Tag: v3.8-rc5~13^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d6f84ba0c47e658beff3a4bf0c43acee4b4690;p=pandora-kernel.git [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 Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed