소스 검색

OMAPDSS: HDMI: fix returned HDMI pixel clock

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>
Tomi Valkeinen 14 년 전
부모
커밋
ef319c6e09
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/video/omap2/dss/hdmi.c

+ 1 - 1
drivers/video/omap2/dss/hdmi.c

@@ -269,7 +269,7 @@ static void update_hdmi_timings(struct hdmi_config *cfg,
 unsigned long hdmi_get_pixel_clock(void)
 unsigned long hdmi_get_pixel_clock(void)
 {
 {
 	/* HDMI Pixel Clock in Mhz */
 	/* 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,
 static void hdmi_compute_pll(struct omap_dss_device *dssdev, int phy,