intel_extreme: Fix LVDS polarity flags

This commit is contained in:
Alexander von Gluck IV 2015-11-24 09:41:18 -06:00
parent bc98dc421e
commit 864275121f

@ -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);