media: vidioc-g-dv-timings.rst: fix wrong porch
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 Dec 2019 11:46:17 +0000 (12:46 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 13 Dec 2019 08:23:09 +0000 (09:23 +0100)
commit7b575b6d8de03ca6b6ab85fa1dd53d2ce921a4a0
tree82e9db1a2c412872c86deb931155fad0ccd34f8c
parent3d15c7643ba78b71c5c8fae25d7d9af52442882a
media: vidioc-g-dv-timings.rst: fix wrong porch

It is the vfrontporch of field 1 that is one half-line longer,
not the backporch.

The order of the vertical signals in an interlaced system is:

Field 1:

vsync
vbackporch
active video of field 1
vfrontporch + 0.5

Field 2:

il_vsync
il_vbackporch - 0.5
active video of field 2
il_vfrontporch

Interlaced systems that use HALF_LINE set the il_ fields as follows:

il_vfrontporch = vfrontporch
il_vsync = vsync
il_vbackporch = vbackporch + 1

So the total vertical blanking for field 1 is:

vsync + vbackporch + vfrontporch + 0.5

and for field 2:

vsync + vbackporch + 1 + vfrontporch - 0.5 ==
vsync + vbackporch + vfrontporch + 0.5

So each field has the same number of half-lines.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/media/uapi/v4l/vidioc-g-dv-timings.rst