drm: Handle the DBLCLK flag in the common infoframe helper
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 6 Aug 2013 19:32:22 +0000 (20:32 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 12:04:50 +0000 (14:04 +0200)
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/i915/intel_hdmi.c

index 8d1139f602ec3d1d51352cfab4f429ad99c577ae..a9c8980367e0729225d5ade4c6a962487a6b373b 100644 (file)
@@ -3102,6 +3102,9 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
        if (err < 0)
                return err;
 
+       if (mode->flags & DRM_MODE_FLAG_DBLCLK)
+               frame->pixel_repeat = 1;
+
        frame->video_code = drm_match_cea_mode(mode);
        if (!frame->video_code)
                return 0;
index b7514886debc08090c636c380e1fd9b232817af9..b54fe29f2eb5bfb596d972aa53f7848dd5843d38 100644 (file)
@@ -364,9 +364,6 @@ static void intel_hdmi_set_avi_infoframe(struct drm_encoder *encoder,
                return;
        }
 
-       if (adjusted_mode->flags & DRM_MODE_FLAG_DBLCLK)
-               frame.avi.pixel_repeat = 1;
-
        if (intel_hdmi->rgb_quant_range_selectable) {
                if (intel_crtc->config.limited_color_range)
                        frame.avi.quantization_range =