From 09e30808bf28bc81a72c869021af1f3569a92aba Mon Sep 17 00:00:00 2001 From: Liviu Dudau Date: Wed, 30 Jul 2014 15:45:53 +0100 Subject: [PATCH] drm: Re-add DMT modes for monitors Commit 196e077dc165a307efbd9e7569f81bbdbcf18f65 "drm: don't add inferred modes for monitors that don't support them" It remove the call add_inferred_modes when DRM_EDID_FEATURE_DEFAULT_GTF in feature support field is zero, this remove all inferred modes come from GTF or CVT range information, and also remove DMT modes, this make me lost some avaiable modes for my TV. Signed-off-by: Wang YanQing Signed-off-by: Liviu Dudau --- drivers/gpu/drm/drm_edid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index a9e3ad6..5031003 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2056,7 +2056,8 @@ do_inferred_modes(struct detailed_timing *timing, void *c) closure->edid, timing); - if (!version_greater(closure->edid, 1, 1)) + if (!version_greater(closure->edid, 1, 1) || + !(closure->edid->features & DRM_EDID_FEATURE_DEFAULT_GTF)) return; /* GTF not defined yet */ switch (range->flags) { @@ -3503,8 +3504,7 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid) num_modes += add_cvt_modes(connector, edid); num_modes += add_standard_modes(connector, edid); num_modes += add_established_modes(connector, edid); - if (edid->features & DRM_EDID_FEATURE_DEFAULT_GTF) - num_modes += add_inferred_modes(connector, edid); + num_modes += add_inferred_modes(connector, edid); num_modes += add_cea_modes(connector, edid); num_modes += add_alternate_cea_modes(connector, edid); -- 2.7.4