summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/ipu3/frames.cpp
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-05-13 11:29:46 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-24 05:55:56 +0300
commit5a9d19210fad8371a9d706a6b276e0d3c7d24978 (patch)
treed418e478c318c1bfd7b2f08f23cc6f806602cd87 /src/libcamera/pipeline/ipu3/frames.cpp
parent89dae58449648660e586322059de1cbe760832f9 (diff)
libcamera: pipeline: ipu3: Try queuing pending requests if a buffer is available
IPU3CameraData stores requests that have been failed due to a buffer shortage. The requests should be retried once enough buffers are available. This sets the retry function as signal to CIO2Device and IPU3Frame, and invokes it from CIO2Device::tryReturnBuffer() and IPU3Frame::remove(). 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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/ipu3/frames.cpp b/src/libcamera/pipeline/ipu3/frames.cpp
index 29d9aafc..d9a2249b 100644
--- a/src/libcamera/pipeline/ipu3/frames.cpp
+++ b/src/libcamera/pipeline/ipu3/frames.cpp
@@ -103,6 +103,8 @@ bool IPU3Frames::tryComplete(IPU3Frames::Info *info)
remove(info);
+ bufferAvailable.emit();
+
return true;
}