diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index c9b9ba4..1daf16d 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c @@ -798,11 +798,14 @@ static void intel_sdvo_get_mode_from_dtd(struct drm_display_mode * mode, mode->clock = dtd->part1.clock * 10; - mode->flags &= ~(DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC); - if (dtd->part2.dtd_flags & 0x2) - mode->flags |= DRM_MODE_FLAG_PHSYNC; - if (dtd->part2.dtd_flags & 0x4) - mode->flags |= DRM_MODE_FLAG_PVSYNC; + DRM_DEBUG_KMS("mode->flags: %x, dtd_flags: %x\n", mode->flags, dtd->part2.dtd_flags); + mode->flags &= ~(DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC | + DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC); + mode->flags |= dtd->part2.dtd_flags & 0x2 ? + DRM_MODE_FLAG_PHSYNC : DRM_MODE_FLAG_NHSYNC; + mode->flags |= dtd->part2.dtd_flags & 0x4 ? + DRM_MODE_FLAG_PVSYNC : DRM_MODE_FLAG_NVSYNC; + DRM_DEBUG_KMS("mode->flags2: %x\n", mode->flags); } static bool intel_sdvo_check_supp_encode(struct intel_sdvo *intel_sdvo)