diff options
author | Laurent Pinchart <[email protected]> | 2013-01-11 09:42:00 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2013-01-11 13:30:27 -0200 |
commit | 68d6f84ba0c47e658beff3a4bf0c43acee4b4690 (patch) | |
tree | e7bc2338632362b70faf53d2ed9ee7cf8aae7bb8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 29005c09f41d459c458eb8761a54703b56afb16a (diff) |
[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 <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions