]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/gpu/drm/drm_edid.c
drm/edid: Fix up clock for CEA/HDMI modes specified via detailed timings
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Oct 2015 08:43:32 +0000 (11:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Oct 2015 10:01:28 +0000 (12:01 +0200)
commitfa3a7340eaa174a36c12c31747dc6eccd08530b5
treedd7f5b7239b9fd7adad05a61466b2902bbbee0f7
parentaffa0e033b04996700434312c76df3c78f683870
drm/edid: Fix up clock for CEA/HDMI modes specified via detailed timings

EDID detailed timings have a resolution of 10kHz for the pixel clock, so
they can't represent certain CEA/HDMI modes accurately. If we see a mode
coming in via detailed timings which otherwise matches one of the
CEA/HDMI modes except the clock is just a bit off, let's assume that the
intention was for that mode to be one of the CEA/HDMI modes and go ahead
and fix up the clock to match the CEA/HDMI spec exactly (well, as close
as we can get with the 1 kHz resolution we use).

This should help code that's looking for an exact clock match (eg. i915
audio N/CTS setup).

Cc: Adam Jackson <ajax@redhat.com>
Cc: Clint Taylor <clinton.a.taylor@intel.com>
Cc: Libin Yang <libin.yang@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c