OSDN Git Service

drm/edid: Check both 60Hz and 59.94Hz when looking for a CEA mode
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 24 Apr 2013 16:07:18 +0000 (19:07 +0300)
committerDave Airlie <airlied@redhat.com>
Fri, 26 Apr 2013 00:25:54 +0000 (10:25 +1000)
commita90b590e957d66ea357aeff4cee8425f2567ed33
tree1a6b3ecf19c610c65ab2b8b050cd8768d1d48bbb
parentee7925bb16bc7c4e02f3b64abc7e0dbfbd6ebe86
drm/edid: Check both 60Hz and 59.94Hz when looking for a CEA mode

drm_match_cea_mode() should be able to match both the 60Hz version,
and the 59.94Hz version of modes.

We only store one pixel clock value per mode in edid_cea_modes, so the
other value must be calculated. Depending on the mode, edid_cea_modes
contains the pixel clock for either the 60Hz version or the 59.94Hz
version, so a bit of care is needed so that the calculation produces
the correct result.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46800
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c