From 864275121f769190ce67e917316b1091f7b6711c Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 24 Nov 2015 09:41:18 -0600 Subject: [PATCH] intel_extreme: Fix LVDS polarity flags --- src/add-ons/accelerants/intel_extreme/Ports.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/Ports.cpp b/src/add-ons/accelerants/intel_extreme/Ports.cpp index 01e6ab3af7..289a97f574 100644 --- a/src/add-ons/accelerants/intel_extreme/Ports.cpp +++ b/src/add-ons/accelerants/intel_extreme/Ports.cpp @@ -526,9 +526,11 @@ LVDSPort::SetDisplayMode(display_mode* target, uint32 colorMode) // Set LVDS sync polarity lvds &= ~(LVDS_HSYNC_POLARITY | LVDS_VSYNC_POLARITY); - if ((target->timing.flags & B_POSITIVE_HSYNC) != 0) + + // set on - polarity. + if ((target->timing.flags & B_POSITIVE_HSYNC) == 0) lvds |= LVDS_HSYNC_POLARITY; - if ((target->timing.flags & B_POSITIVE_VSYNC) != 0) + if ((target->timing.flags & B_POSITIVE_VSYNC) == 0) lvds |= LVDS_VSYNC_POLARITY; write32(_PortRegister(), lvds);