]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbefe131c46664a75ad7d5789e6795acb3da173ff
tree8321a7197eec77ba9f55c8acb7c180235ca850e4
parentc5fe1462134bf6b229107c53aaf924fa5785d29e
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