linux_dsm_epyc7002/drivers/media/platform/rcar-vin
Niklas Söderlund 015060cb77 media: rcar-vin: enable field toggle after a set number of lines for Gen3
The VIN Gen3 hardware don't have Line Post-Clip capabilities as VIN Gen2
hardware have. To protect against writing outside the capture window
enable field toggle after a set number of lines have been captured.

Capturing outside the allocated capture buffer where observed on R-Car
Gen3 Salvator-XS H3 from the CVBS input if the standard is
misconfigured. That is if a PAL source is connected to the system but
the adv748x standard is set to NTSC. In this case the format reported by
the adv748x is 720x480 and that is what is used for the media pipeline.
The PAL source generates frames in the format of 720x576 and the field
is not toggled until the VSYNC is detected and at that time data have
already been written outside the allocated capture buffer.

With this change the capture in the situation described above results in
garbage frames but that is far better then writing outside the capture
buffer.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-05 10:28:17 -04:00
..
Kconfig media: rcar-vin: enable support for r8a7795 2018-04-20 10:44:25 -04:00
Makefile [media] rcar-vin: add Renesas R-Car VIN driver 2016-06-16 07:42:32 -03:00
rcar-core.c media: rcar-vin: add support for MEDIA_BUS_FMT_UYVY8_1X16 2018-05-05 10:27:45 -04:00
rcar-dma.c media: rcar-vin: enable field toggle after a set number of lines for Gen3 2018-05-05 10:28:17 -04:00
rcar-v4l2.c media: rcar-vin: change name of video device 2018-04-20 10:08:55 -04:00
rcar-vin.h media: rcar-vin: parse Gen3 OF and setup media graph 2018-04-20 10:23:39 -04:00