android: camera_device: Report configuration changes from validate()
When we call validate on a configuration, if there are any adjustments on the configuration, we fail without showing why. Display the stream configuration after the validate stage to aid debugging stream startup failures. Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -1084,6 +1084,10 @@ int CameraDevice::configureStreams(camera3_stream_configuration_t *stream_list)
|
||||
break;
|
||||
case CameraConfiguration::Adjusted:
|
||||
LOG(HAL, Info) << "Camera configuration adjusted";
|
||||
|
||||
for (const StreamConfiguration &cfg : *config_)
|
||||
LOG(HAL, Info) << " - " << cfg.toString();
|
||||
|
||||
config_.reset();
|
||||
return -EINVAL;
|
||||
case CameraConfiguration::Invalid:
|
||||
|
||||
Reference in New Issue
Block a user