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