summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index fad7f140..73e06a91 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -577,25 +577,20 @@ void PipelineHandlerIPU3::stop(Camera *camera)
int PipelineHandlerIPU3::queueRequest(Camera *camera, Request *request)
{
- IPU3CameraData *data = cameraData(camera);
- V4L2Device *output = data->imgu_->output_.dev;
- IPU3Stream *stream = &data->outStream_;
+ int error = 0;
- /* Queue a buffer to the ImgU output for capture. */
- Buffer *buffer = request->findBuffer(stream);
- if (!buffer) {
- LOG(IPU3, Error)
- << "Attempt to queue request with invalid stream";
- return -ENOENT;
- }
+ for (auto it : request->buffers()) {
+ IPU3Stream *stream = static_cast<IPU3Stream *>(it.first);
+ Buffer *buffer = it.second;
- int ret = output->queueBuffer(buffer);
- if (ret < 0)
- return ret;
+ int ret = stream->device_->dev->queueBuffer(buffer);
+ if (ret < 0)
+ error = ret;
+ }
PipelineHandler::queueRequest(camera, request);
- return 0;
+ return error;
}
bool PipelineHandlerIPU3::match(DeviceEnumerator *enumerator)