]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Fix support for interlaced modes on HDMI.
authorEric Anholt <eric@anholt.net>
Thu, 29 Sep 2016 00:30:25 +0000 (17:30 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 6 Oct 2016 18:58:27 +0000 (11:58 -0700)
commit628c220631b88163e94ffe9a5449c81210996118
treef8a37357784f3008869cfbff0ac84ea980fd696d
parent065c223cb6ec7b8459d40b8b2424dc66ad67bc47
drm/vc4: Fix support for interlaced modes on HDMI.

We really do need to be using the halved V fields.  I had been
confused by the code I was using as a reference because it stored
halved vsync fields but not halved vdisplay, so it looked like I only
needed to divide vdisplay by 2.

This reverts part of Mario's timestamping fixes that prevented
CRTC_HALVE_V from applying, and instead adjusts the timestamping code
to not use the crtc field in that case.

Fixes locking of 1920x1080x60i on my Dell 2408WFP.  There are black
bars on the top and bottom, but I suspect that might be an
under/overscan flags problem as opposed to video timings.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_regs.h