aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_edid.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2012-04-13 16:33:36 -0400
committerDave Airlie <airlied@redhat.com>2012-04-20 07:57:32 -0400
commitcb21aafe121b1c3ad4c77cc5c22320163f16ba42 (patch)
treef8fb66b423e84bc89c0cf71c7e9d862ca454b8d6 /drivers/gpu/drm/drm_edid.c
parent6201ee39263e9ae251648e90e0cbb2496de92016 (diff)
drm/edid: Do drm_dmt_modes_for_range() for all range descriptor types
EDID 1.4 retcons the meaning of the "GTF feature" bit to mean "is continuous frequency", and moves the set of supported timing formulas into the range descriptor itself. In any event, the range descriptor can act as a filter on the DMT list without regard to a specific timing formula. Signed-off-by: Adam Jackson <ajax@redhat.com> Tested-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
-rw-r--r--drivers/gpu/drm/drm_edid.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index cb40611a1d1d..9363349fa034 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -1042,12 +1042,13 @@ do_inferred_modes(struct detailed_timing *timing, void *c)
1042{ 1042{
1043 struct detailed_mode_closure *closure = c; 1043 struct detailed_mode_closure *closure = c;
1044 struct detailed_non_pixel *data = &timing->data.other_data; 1044 struct detailed_non_pixel *data = &timing->data.other_data;
1045 int gtf = (closure->edid->features & DRM_EDID_FEATURE_DEFAULT_GTF);
1046 1045
1047 if (gtf && data->type == EDID_DETAIL_MONITOR_RANGE) 1046 if (data->type != EDID_DETAIL_MONITOR_RANGE)
1048 closure->modes += drm_dmt_modes_for_range(closure->connector, 1047 return;
1049 closure->edid, 1048
1050 timing); 1049 closure->modes += drm_dmt_modes_for_range(closure->connector,
1050 closure->edid,
1051 timing);
1051} 1052}
1052 1053
1053static int 1054static int