libcamera: pipeline: raspberrypi: Update ControlInfoMap after sensor format change

The Raspberry Pi pipeline handler does not update the sensor format
using CameraSensor::setFormat(), so it must manually force the update of
the associated ControlInfoMap.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman
2021-05-05 14:53:08 +01:00
committed by Laurent Pinchart
parent 91122dea97
commit 82e4a98026

View File

@@ -608,6 +608,13 @@ int PipelineHandlerRPi::configure(Camera *camera, CameraConfiguration *config)
if (ret)
return ret;
/*
* The control ranges associated with the sensor may need updating
* after a format change.
* \todo Use the CameraSensor::setFormat API instead.
*/
data->sensor_->updateControlInfo();
LOG(RPI, Info) << "Sensor: " << camera->id()
<< " - Selected mode: " << sensorFormat.toString();