summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNícolas F. R. A. Prado <nfraprado@collabora.com>2021-04-06 15:23:33 -0300
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2021-04-14 16:32:54 +0200
commit330ea9d946f97001593f65a08276c44076fb0f10 (patch)
treec03af957952833c9769420079127475d5d483090
parent58f558fddaf3d7d149ab1c320c2cee7c6948ec01 (diff)
libcamera: pipeline: rkisp1: Stop IPA before streams
The IPA should be stopped before stopping the streams in order to avoid a "No BufferCache available to queue" issue. This issue happened while running lc-compliance. Suggested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 03757327..c122c9be 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -827,6 +827,8 @@ void PipelineHandlerRkISP1::stop(Camera *camera)
isp_->setFrameStartEnabled(false);
+ data->ipa_->stop();
+
selfPath_.stop();
mainPath_.stop();
@@ -840,8 +842,6 @@ void PipelineHandlerRkISP1::stop(Camera *camera)
LOG(RkISP1, Warning)
<< "Failed to stop parameters for " << camera->id();
- data->ipa_->stop();
-
data->frameInfo_.clear();
freeBuffers(camera);