summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/ipu3/frames.cpp
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-05-13 11:29:45 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-24 05:55:42 +0300
commit89dae58449648660e586322059de1cbe760832f9 (patch)
tree6dbda27b40130c398e5232f9e20e898c82e6023a /src/libcamera/pipeline/ipu3/frames.cpp
parentfd1cbe84476b25b458c3dbe78ec6c55e774ce435 (diff)
libcamera: pipeline: ipu3: Store requests in the case a buffer shortage
PipelineHandlerIPU3 returns -ENOBUFS and -ENOMEM on queueing a request when there are not sufficient buffers for the request. Since the request will be successful if it is queued later when enough buffers are available. The requests failed due to a buffer shortage should be stored and retried later in the FIFO order. This introduces the queue in IPU3CameraData to do that. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/ipu3/frames.cpp')
-rw-r--r--src/libcamera/pipeline/ipu3/frames.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/ipu3/frames.cpp b/src/libcamera/pipeline/ipu3/frames.cpp
index d0f55ab9..29d9aafc 100644
--- a/src/libcamera/pipeline/ipu3/frames.cpp
+++ b/src/libcamera/pipeline/ipu3/frames.cpp
@@ -44,12 +44,12 @@ IPU3Frames::Info *IPU3Frames::create(Request *request)
unsigned int id = request->sequence();
if (availableParamBuffers_.empty()) {
- LOG(IPU3, Error) << "Parameters buffer underrun";
+ LOG(IPU3, Debug) << "Parameters buffer underrun";
return nullptr;
}
if (availableStatBuffers_.empty()) {
- LOG(IPU3, Error) << "Statistics buffer underrun";
+ LOG(IPU3, Debug) << "Statistics buffer underrun";
return nullptr;
}