]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Fix timings for interlaced modes
authorMateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Mon, 13 Jun 2022 14:47:57 +0000 (16:47 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 28 Jun 2022 12:56:13 +0000 (14:56 +0200)
commit74334d7409f2ce17358610230f39e3808990111e
tree5479112c22341d0ea8cf793adcd2d775c4c1fb4f
parent10acb78dba1ccc6bc6a5897d5f90478a4de47063
drm/vc4: hdmi: Fix timings for interlaced modes

Increase the number of post-sync blanking lines on odd fields instead of
decreasing it on even fields. This makes the total number of lines
properly match the modelines.

Additionally fix the value of PV_VCONTROL_ODD_DELAY, which did not take
pixels_per_clock into account, causing some displays to invert the
fields when driven by bcm2711.

Fixes: 5d915add54a1 ("drm/vc4: Fix support for interlaced modes on HDMI.")
Signed-off-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Link: https://lore.kernel.org/r/20220613144800.326124-31-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_hdmi.c