OMAPDSS: HDMI: fix returned HDMI pixel clock
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 20 Oct 2011 10:36:59 +0000 (13:36 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 18 Nov 2011 08:09:16 +0000 (10:09 +0200)
hdmi_get_pixel_clock() returns the pixel clock in Hz, but the pck is
stored as kHz. This means the return value has to be multiplied by 1000,
not by 10000 as the code did.

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

index 3262f0f1fa35f395aec7637dc4e61f4fdf5766b1..c56378c555b0907255048e32384c1b5b191bc14f 100644 (file)
@@ -269,7 +269,7 @@ static void update_hdmi_timings(struct hdmi_config *cfg,
 unsigned long hdmi_get_pixel_clock(void)
 {
        /* HDMI Pixel Clock in Mhz */
-       return hdmi.ip_data.cfg.timings.timings.pixel_clock * 10000;
+       return hdmi.ip_data.cfg.timings.timings.pixel_clock * 1000;
 }
 
 static void hdmi_compute_pll(struct omap_dss_device *dssdev, int phy,
This page took 0.026605 seconds and 5 git commands to generate.