mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
26 lines
967 B
Diff
26 lines
967 B
Diff
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;
|