OMAPDSS: DISPC: Get correct pixel clock for TV manager
authorArchit Taneja <archit@ti.com>
Tue, 13 Sep 2011 12:58:41 +0000 (18:28 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Sep 2011 13:17:25 +0000 (16:17 +0300)
commitc3dc6a7afb47735b82a4c0061e814454a649dbfc
treed04f7a341aed9d9aae42d33479526f9d26c7e74b
parentdac57a05fcf4808bbc91a96a034cae84716f0077
OMAPDSS: DISPC: Get correct pixel clock for TV manager

dispc_mgr_pclk_rate() is used to calculate minimum required functional clock for
scaling in calc_fclk() and calc_fclk_five_taps(). This function returns the
correct pixel clock for LCD and LCD2 managers, but not for TV manager. Extend
this function so that it gets the correct pixel clock for TV manager.

This also prevents the crash we get when we try to scale overlays connected to
TV manager. The current code leads to a BUG() being executed if we call
dispc_mgr_pclk_rate() for the TV manager.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dss.h
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/venc.c