libcamera: v4l2_controls: Remove V4L2ControlInfo::size()

We don't support V4L2 compound controls, the size field is thus unused.
Remove it to ease merging of the libcamera and V4L2 control info
classes. Support for array controls can then be added later on top, and
would be useful for libcamera controls too.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Laurent Pinchart 2019-10-13 21:20:44 +03:00
parent 876b900862
commit 35e6319b35
3 changed files with 7 additions and 12 deletions

View file

@ -362,6 +362,13 @@ void V4L2Device::listControls()
ctrl.flags & V4L2_CTRL_FLAG_DISABLED)
continue;
if (ctrl.elems != 1 || ctrl.nr_of_dims) {
LOG(V4L2, Debug)
<< "Array control " << utils::hex(ctrl.id)
<< " not supported";
continue;
}
switch (ctrl.type) {
case V4L2_CTRL_TYPE_INTEGER:
case V4L2_CTRL_TYPE_BOOLEAN: