Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/sti: hdmi fix CEA-861E video format timing error

HDMI analyzer tests showed that Vsync and Hsync signal were not
compliant with the HDMI protocol.

The first active pixel of a line is defined by HDMI_ACTIVE_VID_XMIN.
The last active pixel of a line is defined by HDMI_ACTIVE_VID_XMAX.

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>

authored by

Vincent Abriou and committed by
Benjamin Gaignard
8661532a 8b0a99ce

+2 -2
+2 -2
drivers/gpu/drm/sti/sti_hdmi.c
··· 192 192 u32 xmin, xmax; 193 193 u32 ymin, ymax; 194 194 195 - xmin = sti_vtg_get_pixel_number(hdmi->mode, 0); 196 - xmax = sti_vtg_get_pixel_number(hdmi->mode, hdmi->mode.hdisplay - 1); 195 + xmin = sti_vtg_get_pixel_number(hdmi->mode, 1); 196 + xmax = sti_vtg_get_pixel_number(hdmi->mode, hdmi->mode.hdisplay); 197 197 ymin = sti_vtg_get_line_number(hdmi->mode, 0); 198 198 ymax = sti_vtg_get_line_number(hdmi->mode, hdmi->mode.vdisplay - 1); 199 199