libcamera: pipeline: ipu3: Check for failures when loading IPA
The ipa_->init() method can fail if the IPA can't load correctly. This should be caught by the pipeline handler to prevent continuing with an invalid IPA. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -1145,7 +1145,11 @@ int IPU3CameraData::loadIPA()
|
||||
ipa_->queueFrameAction.connect(this, &IPU3CameraData::queueFrameAction);
|
||||
|
||||
CameraSensor *sensor = cio2_.sensor();
|
||||
ipa_->init(IPASettings{ "", sensor->model() });
|
||||
int ret = ipa_->init(IPASettings{ "", sensor->model() });
|
||||
if (ret) {
|
||||
LOG(IPU3, Error) << "Failed to initialise the IPU3 IPA";
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user