OMAPDSS: HDMI: make hdmi pclk check more permissive
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 24 Oct 2012 08:55:54 +0000 (11:55 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 29 Oct 2012 10:44:42 +0000 (12:44 +0200)
commitf236b892b1cb736edbb9b61ace60ca4dd862e53a
tree8f5463adf3ff13f06f24134b35ee37ea907aacd6
parent7a7ce2c771fe7ebcc6ff0ab2bf09b0014087ab9c
OMAPDSS: HDMI: make hdmi pclk check more permissive

The hdmi driver tries to find the given video timings from its static
list of timings, to find the required ID for the mode. The check tries
to find exact match for the pixel clock, among other checks.

with omapfb driver there can be some amount of error in the give pixel
clock, as the pixel clock is converted between Hz and ps, thus the
hdmi's check fails to find the mode.

This patch makes the check more allowing, by rounding the pixel clocks
to nearest MHz.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Ricardo Neri <ricardo.neri@ti.com>
drivers/video/omap2/dss/hdmi.c