summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-01-25 20:50:06 +0400
committerAlejandro Mery <amery@geeks.cl>2013-01-28 16:49:21 +0400
commit7d352db70e82f2f5e17a03c44f8ba8f54923d145 (patch)
treecf838e61d2b85b5516d359174874c310002dc97d
parent19aff9aab3a70e56f56733927dcf07539b4201a0 (diff)
downloadlinux-sunxi-7d352db70e82f2f5e17a03c44f8ba8f54923d145.tar.xz
sunxi-disp: Fix lcd controller timing programming for interlaced modes
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--drivers/video/sunxi/disp/de_lcdc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/sunxi/disp/de_lcdc.c b/drivers/video/sunxi/disp/de_lcdc.c
index 100a2d8ad5e1..9ef6839dc6e0 100644
--- a/drivers/video/sunxi/disp/de_lcdc.c
+++ b/drivers/video/sunxi/disp/de_lcdc.c
@@ -556,6 +556,9 @@ __u32 TCON1_set_hdmi_mode(__u32 sel, __u8 mode)
if (gdisp.init_para.hdmi_get_video_timing(mode, &video_timing) != 0)
return 0;
+ if (video_timing.I)
+ video_timing.INPUTY /= 2;
+
cfg.b_interlace = video_timing.I;
cfg.src_x = video_timing.INPUTX;
cfg.src_y = video_timing.INPUTY;