]> git.karo-electronics.de Git - linux-beck.git/commitdiff
OMAPDSS: DISPC: reject interlace for lcd out
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 5 Jun 2014 08:35:10 +0000 (11:35 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 4 Jul 2014 08:17:57 +0000 (11:17 +0300)
OMAP2/3 does not support interlace for LCD out. OMAP4+ does, but is not
supported by the driver at the moment.

The driver still accepts interlaced mode for LCD out, causing broken
display output.

This patch makes dispc reject interlace for LCD out.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/dispc.c

index d1f0dbb486b85aca141f1d8c592069d6f50ad6b4..37373b61784ec113055eec1b1f223726c334b1cf 100644 (file)
@@ -2886,6 +2886,9 @@ bool dispc_mgr_timings_ok(enum omap_channel channel,
        timings_ok &= _dispc_mgr_pclk_ok(channel, timings->pixelclock);
 
        if (dss_mgr_is_lcd(channel)) {
+               /* TODO: OMAP4+ supports interlace for LCD outputs */
+               timings_ok &= timings->interlace == false;
+
                timings_ok &= _dispc_lcd_timings_ok(timings->hsw, timings->hfp,
                                timings->hbp, timings->vsw, timings->vfp,
                                timings->vbp);