openwrt/target/linux/bcm27xx/patches-5.15/950-0584-media-rpivid-remove-min_buffers_needed-from-src-queu.patch

26 lines
967 B
Diff
Raw Normal View History

From c18a8b7b527e97391c212a18906ab07fb5f2f476 Mon Sep 17 00:00:00 2001
From: John Cox <jc@kynesim.co.uk>
Date: Mon, 29 Nov 2021 16:39:35 +0000
Subject: [PATCH] media: rpivid: remove min_buffers_needed from src
queue
Remove min_buffers_needed=1 from src queue init. Src buffers are bound
to media requests therefore this setting is not needed and generates
a WARN in kernel 5.16.
Signed-off-by: John Cox <jc@kynesim.co.uk>
---
drivers/staging/media/rpivid/rpivid_video.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/staging/media/rpivid/rpivid_video.c
+++ b/drivers/staging/media/rpivid/rpivid_video.c
@@ -680,7 +680,6 @@ int rpivid_queue_init(void *priv, struct
src_vq->io_modes = VB2_MMAP | VB2_DMABUF;
src_vq->drv_priv = ctx;
src_vq->buf_struct_size = sizeof(struct rpivid_buffer);
- src_vq->min_buffers_needed = 1;
src_vq->ops = &rpivid_qops;
src_vq->mem_ops = &vb2_dma_contig_memops;
src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;