]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: rcar-vin: Drop min_queued_buffers
authorJacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Mon, 4 May 2026 12:43:14 +0000 (14:43 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 27 May 2026 08:44:04 +0000 (10:44 +0200)
The R-Car VIN driver already uses a scratch buffer to sustain capture
operations in absence of a frame buffer provided by userspace.

There is no reason to require 4 buffers queued at all times for the
driver to operate. Drop min_queued_buffers from the VIN driver to allow
single-frame capture operations.

Signed-off-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Reviewed-by: Jai Luthra <jai.luthra+renesas@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/rcar-vin/rcar-dma.c

index f9af9177e02ffa943c3c77b31d46793d51cb6085..73cda0e2d45a94236f3009b5c95f0240e8aa451c 100644 (file)
@@ -1494,7 +1494,6 @@ int rvin_dma_register(struct rvin_dev *vin, int irq)
        q->ops = &rvin_qops;
        q->mem_ops = &vb2_dma_contig_memops;
        q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
-       q->min_queued_buffers = 4;
        q->dev = vin->dev;
 
        ret = vb2_queue_init(q);