Skip to content

Commit

Permalink
OMAPDSS: DISPC: Remove hardcoded use of PPL in five tap clock calcula…
Browse files Browse the repository at this point in the history
…tion

The function calc_fclk_five_taps() uses a fixed value of pixels per line which
is used in calculations to get the minimum fclk needed for scaling with five
taps to work.

Remove this by providing the width of the panel connected to the manager.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Sep 30, 2011
1 parent c3dc6a7 commit ebdc524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,8 +1630,8 @@ static unsigned long calc_fclk_five_taps(enum omap_channel channel, u16 width,
u64 tmp, pclk = dispc_mgr_pclk_rate(channel);

if (height > out_height) {
/* FIXME get real display PPL */
unsigned int ppl = 800;
struct omap_dss_device *dssdev = dispc_mgr_get_device(channel);
unsigned int ppl = dssdev->panel.timings.x_res;

tmp = pclk * height * out_width;
do_div(tmp, 2 * out_height * ppl);
Expand Down

0 comments on commit ebdc524

Please sign in to comment.