summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-06-15 13:07:41 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-06-16 15:42:38 +0100
commit3c9c2870e226950bd2a4ed98488aae0be6fea3b6 (patch)
tree65e7ac01502a48c1896c763eeea667ad4480ede1
parent94d1af771e5f59237c4f3357bcab2d78012f0fea (diff)
pipeline: ipu3: Report error when failing to configure
If the IPA fails to configure, this can now be caught by the pipeline handler but the cause may not be clear. If the IPA is isolated, then reports from that IPA will not be visible in the libcamera logs directly. Print the return error value to help identify any issue that has arisen. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 36256ea4..6c93bc6d 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -644,7 +644,8 @@ int PipelineHandlerIPU3::configure(Camera *camera, CameraConfiguration *c)
ret = data->ipa_->configure(configInfo);
if (ret) {
- LOG(IPU3, Error) << "Failed to configure IPA";
+ LOG(IPU3, Error) << "Failed to configure IPA: "
+ << strerror(-ret);
return ret;
}