media: rcar-vin: Add support for V4L2_FIELD_SEQ_{TB,BT}
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 10 Dec 2019 02:05:59 +0000 (03:05 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 15:18:45 +0000 (16:18 +0100)
commit7e0cfdadd1aafdb6963291b65358e60a7af3a4cf
tree906cf89382dedf9f638dddbfc0f3fbf130cad732
parente72b7359be18b9c488ed51a653cd51dfa793b67d
media: rcar-vin: Add support for V4L2_FIELD_SEQ_{TB,BT}

The hardware does not support capturing the field types
V4L2_FIELD_SEQ_TB and V4L2_FIELD_SEQ_BT. To capture in these formats the
driver needs to adjust the offset of the capture buffer and capture
twice to each vb2 buffer.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-dma.c
drivers/media/platform/rcar-vin/rcar-v4l2.c
drivers/media/platform/rcar-vin/rcar-vin.h