diff options
| author | Hans Verkuil <[email protected]> | 2017-09-25 06:41:02 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-10-04 17:05:00 -0300 |
| commit | cecfe9b8a511ec0c9df456770abf547444c87de6 (patch) | |
| tree | 9df12370ca6fa60d7ebc53111a11829f44e95a24 /tools/perf/scripts/python | |
| parent | 5b2c8da1b040c4608c7cfdc0dd96bcaa190af268 (diff) | |
[media] v4l2-ctrls.c: allow empty control handlers
If you have a control handler that does not contain any controls, then
currently calling VIDIOC_G/S/TRY_EXT_CTRLS with count == 0 will return
-EINVAL in the class_check() function.
This is not correct, there is no reason why this should return an error.
The purpose of setting count to 0 is to test if the ioctl can mix controls
from different control classes. And this is possible. The fact that there
are not actually any controls defined is another matter that is unrelated
to this test.
This caused v4l2-compliance to fail, so that is fixed with this patch applied.
Signed-off-by: Hans Verkuil <[email protected]>
Reported-by: Dave Stevenson <[email protected]>
Tested-by: Dave Stevenson <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions