This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: v4l2: Allow M2M job queuing w/o streaming CAP queue
Author:  Sebastian Fricke <sebastian.fri...@collabora.com>
Date:    Wed Nov 8 20:29:21 2023 +0100

Allow decoder drivers to enable set the ignore_streaming flag on their
CAPTURE queue, to allow queuing jobs to the M2M ready queue and perform
firmware sequence analysis with just a streaming OUTPUT queue and
available bitstream data.

Signed-off-by: Sebastian Fricke <sebastian.fri...@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufre...@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 drivers/media/v4l2-core/v4l2-mem2mem.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

---

diff --git a/drivers/media/v4l2-core/v4l2-mem2mem.c 
b/drivers/media/v4l2-core/v4l2-mem2mem.c
index 0cc30397fbad..9e983176542b 100644
--- a/drivers/media/v4l2-core/v4l2-mem2mem.c
+++ b/drivers/media/v4l2-core/v4l2-mem2mem.c
@@ -301,9 +301,12 @@ static void __v4l2_m2m_try_queue(struct v4l2_m2m_dev 
*m2m_dev,
 
        dprintk("Trying to schedule a job for m2m_ctx: %p\n", m2m_ctx);
 
-       if (!m2m_ctx->out_q_ctx.q.streaming
-           || !m2m_ctx->cap_q_ctx.q.streaming) {
-               dprintk("Streaming needs to be on for both queues\n");
+       if (!m2m_ctx->out_q_ctx.q.streaming ||
+           (!m2m_ctx->cap_q_ctx.q.streaming && 
!m2m_ctx->ignore_cap_streaming)) {
+               if (!m2m_ctx->ignore_cap_streaming)
+                       dprintk("Streaming needs to be on for both queues\n");
+               else
+                       dprintk("Streaming needs to be on for the OUTPUT 
queue\n");
                return;
        }
 

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to