linux/drivers/media/platform/rcar-vin
Niklas Söderlund a5991c4e94 media: rcar-vin: Use user provided buffers when starting
When adding an internal scratch buffer to improve buffer handling when
stopping it was also erroneously used when syncing at capture start.
This led to that the first three buffers captured were always dropped
as they were captured in the scratch buffer instead of in a buffer
provided by the user.

Allow the hardware to be given user provided buffers when preparing for
capture in the stopped state. This still allows the driver to sync with
the hardware and always completes the buffers to user-space in the
correct order as no buffers are completed before the sync is complete.
This change improves the driver as buffers are completed and given to
the user three frames earlier than before.

The change also fixes a warning produced by v4l2-compliance,

    warn: v4l2-test-buffers.cpp(448): got sequence number 3, expected 0

[hverkuil: fixed some typos in the Subject and the log message]

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-09-30 10:07:59 +02:00
..
Kconfig media: rcar-vin: Kconfig: Update help description for VIDEO_RCAR_VIN config 2020-09-26 10:54:41 +02:00
Makefile media: rcar-vin: convert to SPDX identifiers 2018-08-03 16:03:45 -04:00
rcar-core.c media: rcar-vin: Remove explicit device availability check 2021-09-30 10:07:35 +02:00
rcar-csi2.c media: rcar-csi2: Make use of the helper function devm_platform_ioremap_resource() 2021-09-30 10:07:51 +02:00
rcar-dma.c media: rcar-vin: Use user provided buffers when starting 2021-09-30 10:07:59 +02:00
rcar-v4l2.c media: v4l2-subdev: fix some NULL vs IS_ERR() checks 2021-07-22 14:01:54 +02:00
rcar-vin.h media: rcar-vin: Add r8a779a0 support 2021-09-30 10:07:35 +02:00