mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 08:55:06 +03:00
libcamera: pipeline: ipu3: Stop IPA before stopping devices
The IPA should be stopped before the hardware devices to ensure that all asynchronous actions have completed within the IPA before resources are removed and released. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
b50c12bf18
commit
4ce1a33e4b
1 changed files with 2 additions and 2 deletions
|
@ -764,13 +764,13 @@ void PipelineHandlerIPU3::stop(Camera *camera)
|
|||
IPU3CameraData *data = cameraData(camera);
|
||||
int ret = 0;
|
||||
|
||||
data->ipa_->stop();
|
||||
|
||||
ret |= data->imgu_->stop();
|
||||
ret |= data->cio2_.stop();
|
||||
if (ret)
|
||||
LOG(IPU3, Warning) << "Failed to stop camera " << camera->id();
|
||||
|
||||
data->ipa_->stop();
|
||||
|
||||
freeBuffers(camera);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue