Skip to content

Commit

Permalink
media: v4l2: Allow M2M job queuing w/o streaming CAP queue
Browse files Browse the repository at this point in the history
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.fricke@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
  • Loading branch information
Sebastian Fricke authored and Hans Verkuil committed Nov 16, 2023
1 parent 103d15b commit 4f61d8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/media/v4l2-core/v4l2-mem2mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4f61d8a

Please sign in to comment.