[Openchrome-devel] xf86-video-openchrome: 2 commits - configure.ac src/via_outputs.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Mon Apr 18 06:53:43 UTC 2016


 configure.ac      |    2 +-
 src/via_outputs.c |   18 +++++++++++++-----
 2 files changed, 14 insertions(+), 6 deletions(-)

New commits:
commit cb10ac0d0498d7df5e0f5e5e4e99fe9b4d09af07
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sun Apr 17 23:52:47 2016 -0700

    Version bumped to 0.4.126
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/configure.ac b/configure.ac
index 0e1a588..a001a8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
 # Initialize Autoconf
 AC_PREREQ(2.57)
 AC_INIT([xf86-video-openchrome],
-        [0.4.125],
+        [0.4.126],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
         [xf86-video-openchrome])
 
commit f7646d27b18717f2d49407b91aea383e27213ffd
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sun Apr 17 23:42:21 2016 -0700

    Code cleanup of via_analog_mode_set
    
    This function is located inside via_outputs.c.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_outputs.c b/src/via_outputs.c
index d825fa4..4d40957 100644
--- a/src/via_outputs.c
+++ b/src/via_outputs.c
@@ -614,18 +614,26 @@ via_analog_mode_set(xf86OutputPtr output, DisplayModePtr mode,
                     DisplayModePtr adjusted_mode)
 {
     ScrnInfoPtr pScrn = output->scrn;
+    vgaHWPtr hwp = VGAHWPTR(pScrn);
+    drmmode_crtc_private_ptr iga = output->crtc->driver_private;
+    CARD8 value = 0x00; /* Value for IGA 1 */
 
-    if (output->crtc) {
-        drmmode_crtc_private_ptr iga = output->crtc->driver_private;
-        CARD8 value = 0x00; /* Value for IGA 1 */
-        vgaHWPtr hwp = VGAHWPTR(pScrn);
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Entered via_analog_mode_set.\n"));
 
+    if (output->crtc) {
         /* IGA 2 */
-        if (iga->index)
+        if (iga->index) {
             value = 0x40;
+        }
+
         ViaSeqMask(hwp, 0x16, value, 0x40);
     }
+
     ViaDisplayEnableCRT(pScrn);
+
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Exiting via_analog_mode_set.\n"));
 }
 
 static xf86OutputStatus


More information about the Openchrome-devel mailing list