Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344633
b: refs/heads/master
c: 5d50108
h: refs/heads/master
i:
  344631: 777e5e2
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Nov 12, 2012
1 parent f41aa33 commit 279d384
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76eed4bcb6f90e77764ec024411d6b409ce7c8a1
refs/heads/master: 5d501085d4a949c1d60e289d5ed3df9e20acc494
10 changes: 6 additions & 4 deletions trunk/drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2264,14 +2264,16 @@ static int dispc_ovl_calc_scaling_44xx(enum omap_plane plane,
u16 in_height = DIV_ROUND_UP(height, *decim_y);
const int maxsinglelinewidth =
dss_feat_get_param_max(FEAT_PARAM_LINEWIDTH);
unsigned long pclk = dispc_plane_pclk_rate(plane);
const int maxdownscale = dss_feat_get_param_max(FEAT_PARAM_DOWNSCALE);

if (mem_to_mem)
in_width_max = DIV_ROUND_UP(out_width, maxdownscale);
else
if (mem_to_mem) {
in_width_max = out_width * maxdownscale;
} else {
unsigned long pclk = dispc_plane_pclk_rate(plane);

in_width_max = dispc_core_clk_rate() /
DIV_ROUND_UP(pclk, out_width);
}

*decim_x = DIV_ROUND_UP(width, in_width_max);

Expand Down

0 comments on commit 279d384

Please sign in to comment.