libcamera: v4l2_controls: Use the ControlValue class for data storage

Use the ControlValue class to replace the manually crafted data storage
in V4L2Control. This will help sharing code when more data types will be
supported.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2019-09-28 05:16:26 +03:00
parent ace50f75a4
commit 186ae04c0c
5 changed files with 25 additions and 21 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ int PipelineHandlerUVC::processControls(UVCCameraData *data, Request *request)
LOG(UVC, Debug)
<< "Setting control 0x"
<< std::hex << std::setw(8) << ctrl.id() << std::dec
<< " to " << ctrl.value();
<< " to " << ctrl.value().toString();
int ret = data->video_->setControls(&controls);
if (ret) {