[Openchrome-devel] xf86-video-openchrome: src/via_lvds.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Wed Mar 16 10:43:55 UTC 2016


 src/via_lvds.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b4624fdb5be0377736b657371d30ea9dc583a567
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Wed Mar 16 03:37:38 2016 -0700

    Fixing OLPC XO-1.5 flat panel misdetection
    
    The specific code to handle OLPC XO-1.5 flat panel screen resolution was
    not written correctly, and it was causing flat panel detection problems
    with other laptops. Due to equipment availability, this fix was not
    tested on OLPC XO-1.5.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_lvds.c b/src/via_lvds.c
index fd5d4b9..ccf101f 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -1331,7 +1331,7 @@ via_lvds_detect(xf86OutputPtr output)
     vgaHWPtr hwp = VGAHWPTR(pScrn);
 
     /* Hardcode panel size for the XO */
-    if(strcmp(pVia->Id->String, xoId) == 0) {
+    if(strcmp(pVia->Id->String, xoId)) {
         panel->NativeWidth = 1200;
         panel->NativeHeight = 900;
         status = XF86OutputStatusConnected;
@@ -1427,7 +1427,7 @@ via_lvds_get_modes(xf86OutputPtr output)
             if (Panel->NativeWidth && Panel->NativeHeight) {
                 VIAPtr pVia = VIAPTR(pScrn);
 
-                if (!xf86NameCmp(pVia->Id->String, "OLPC XO 1.5"))
+                if (xf86NameCmp(pVia->Id->String, "OLPC XO 1.5"))
                     p = xf86DuplicateMode(&OLPCMode);
                 else
                     p = xf86CVTMode(Panel->NativeWidth, Panel->NativeHeight,


More information about the Openchrome-devel mailing list