From: Niklas Söderlund Date: Wed, 24 May 2017 00:15:32 +0000 (-0300) Subject: [media] rcar-vin: decrease buffers needed to capture X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45a6e6043693c52e98103d423a3c0875cac397be;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] rcar-vin: decrease buffers needed to capture It's possible to grab frames using only one buffer, this should never have been set to anything else then 1. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/rcar-vin/rcar-dma.c b/drivers/media/platform/rcar-vin/rcar-dma.c index 9ccd5ff55e19..c37f7a2993fb 100644 --- a/drivers/media/platform/rcar-vin/rcar-dma.c +++ b/drivers/media/platform/rcar-vin/rcar-dma.c @@ -1183,7 +1183,7 @@ int rvin_dma_probe(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_buffers_needed = 2; + q->min_buffers_needed = 1; q->dev = vin->dev; ret = vb2_queue_init(q);