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)
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

index 5712bd48e6870301c164ae56934a858c2dd64e62..5c675cbac4cfa05e9facda92f85cd299f8cd3b57 100644 (file)
@@ -279,7 +279,7 @@ EBUSY
        then it will set this flag to signal this to the application.
     * - ``V4L2_DV_FL_HALF_LINE``
       - Specific to interlaced formats: if set, then the vertical
-       backporch of field 1 (aka the odd field) is really one half-line
+       frontporch of field 1 (aka the odd field) is really one half-line
        longer and the vertical backporch of field 2 (aka the even field)
        is really one half-line shorter, so each field has exactly the
        same number of half-lines. Whether half-lines can be detected or