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>
This commit is contained in:
Kieran Bingham
2021-06-15 13:07:41 +01:00
parent 94d1af771e
commit 3c9c2870e2
+2 -1
View File
@@ -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;
}