summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-07-20 22:52:14 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-08-06 15:44:02 +0100
commit9f07aebde85e1ec4a19beafbdd09ce26db5d7932 (patch)
tree797a9ce764615e5b4baeb39e72f5c15b4275c19b /src
parent6bc652ee1c4a102f3fe3f321afd6dedf7c233e01 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/android/camera_device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index fd68fe4a..e5cd0877 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -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: