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

Kevin Brace kevinbrace at kemper.freedesktop.org
Tue Mar 29 11:02:58 UTC 2016


 src/via_lvds.c |   25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

New commits:
commit a60b53eb99a3c78ff10ba0a6ea8c5eb439b2879d
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Tue Mar 29 04:01:18 2016 -0700

    Modified debug messages within via_lvds_detect
    
    Modified debug messages within via_lvds_detect function inside via_lvds.c.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_lvds.c b/src/via_lvds.c
index 79e0667..c057cf9 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -840,11 +840,22 @@ via_lvds_detect(xf86OutputPtr output)
     VIAPtr pVia = VIAPTR(pScrn);
     vgaHWPtr hwp = VGAHWPTR(pScrn);
 
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Entered via_lvds_detect.\n"));
+
     /* Hardcode panel size for the XO */
     if (pVia->IsOLPCXO15) {
         panel->NativeWidth = 1200;
         panel->NativeHeight = 900;
         status = XF86OutputStatusConnected;
+        DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
+                            "Setting up OLPC XO-1.5 flat panel.\n"));
+        DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
+                            "Detected Flat Panel Screen Resolution: "
+                            "%dx%d\n",
+                            panel->NativeWidth, panel->NativeHeight));
+        DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                            "Exiting via_lvds_detect.\n"));
         return status;
     }
 
@@ -855,7 +866,10 @@ via_lvds_detect(xf86OutputPtr output)
         ret = ViaPanelGetSizeFromDDCv1(output, &width, &height);
         if (ret) {
             panel->NativeModeIndex = ViaPanelLookUpModeIndex(width, height);
-            DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "ViaPanelLookUpModeIndex, Width %d, Height %d, NativeModeIndex%d\n", width, height, panel->NativeModeIndex));
+            DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
+                                "ViaPanelLookUpModeIndex: Width %d, "
+                                "Height %d, NativeModeIndex%d\n", 
+                                width, height, panel->NativeModeIndex));
             if (panel->NativeModeIndex != VIA_PANEL_INVALID) {
                 panel->NativeWidth = width;
                 panel->NativeHeight = height;
@@ -868,12 +882,17 @@ via_lvds_detect(xf86OutputPtr output)
             if (panel->NativeWidth && panel->NativeHeight)
                 status = XF86OutputStatusConnected;
         }
-        DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "NativeMode: %d %d\n",
-                        panel->NativeWidth, panel->NativeHeight));
+
+        DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
+                            "Detected Flat Panel Screen Resolution: "
+                            "%dx%d\n",
+                            panel->NativeWidth, panel->NativeHeight));
     } else {
         status = XF86OutputStatusConnected;
     }
 
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Exiting via_lvds_detect.\n"));
     return status;
 }
 


More information about the Openchrome-devel mailing list