OSDN Git Service

drm/i915: Use round to closest when computing the CEA 1.001 pixel clocks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Oct 2015 08:43:34 +0000 (11:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Oct 2015 15:56:02 +0000 (17:56 +0200)
commit606bb5e0b28b540685fb94c22902cd9a948a3779
tree8321a7197eec77ba9f55c8acb7c180235ca850e4
parentc562657a75282afb00498ea82949ba7a9944ed15
drm/i915: Use round to closest when computing the CEA 1.001 pixel clocks

drm_edid.c now computes the alternate CEA clocks using
DIV_ROUND_CLOSEST(), so follow suit in the N/CTS setup to make sure we
pick the right setting for the mode.

Unfortunately we can't actually use DIV_ROUND_CLOSEST() here due to the
({}) construct used, so just stick in raw numbers instead.

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/i915/intel_audio.c