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:
parent
6bc652ee1c
commit
9f07aebde8
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue