Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344665
b: refs/heads/master
c: 74e1645
h: refs/heads/master
i:
  344663: 850c39c
v: v3
  • Loading branch information
Tomi Valkeinen committed Nov 27, 2012
1 parent 01d4eaf commit 7ca9c95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 0c6921de3710465ca35179b6e327e8b67b9ffaf7
refs/heads/master: 74e164588ec0b0c570f5525d10800f54342833b1
10 changes: 5 additions & 5 deletions trunk/drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@ static int dispc_ovl_calc_scaling_44xx(unsigned long pclk, unsigned long lclk,
return 0;
}

static int dispc_ovl_calc_scaling(enum omap_plane plane,
static int dispc_ovl_calc_scaling(unsigned long pclk, unsigned long lclk,
enum omap_overlay_caps caps,
const struct omap_video_timings *mgr_timings,
u16 width, u16 height, u16 out_width, u16 out_height,
Expand All @@ -2296,16 +2296,14 @@ static int dispc_ovl_calc_scaling(enum omap_plane plane,
const int max_decim_limit = 16;
unsigned long core_clk = 0;
int decim_x, decim_y, ret;
unsigned long pclk = dispc_plane_pclk_rate(plane);
unsigned long lclk = dispc_plane_lclk_rate(plane);

if (width == out_width && height == out_height)
return 0;

if ((caps & OMAP_DSS_OVL_CAP_SCALE) == 0)
return -EINVAL;

if (plane == OMAP_DSS_WB) {
if (mem_to_mem) {
*x_predecim = *y_predecim = 1;
} else {
*x_predecim = max_decim_limit;
Expand Down Expand Up @@ -2377,6 +2375,8 @@ static int dispc_ovl_setup_common(enum omap_plane plane,
u16 in_width = width;
int x_predecim = 1, y_predecim = 1;
bool ilace = mgr_timings->interlace;
unsigned long pclk = dispc_plane_pclk_rate(plane);
unsigned long lclk = dispc_plane_lclk_rate(plane);

if (paddr == 0)
return -EINVAL;
Expand All @@ -2401,7 +2401,7 @@ static int dispc_ovl_setup_common(enum omap_plane plane,
if (!dss_feat_color_mode_supported(plane, color_mode))
return -EINVAL;

r = dispc_ovl_calc_scaling(plane, caps, mgr_timings, in_width,
r = dispc_ovl_calc_scaling(pclk, lclk, caps, mgr_timings, in_width,
in_height, out_width, out_height, color_mode,
&five_taps, &x_predecim, &y_predecim, pos_x,
rotation_type, mem_to_mem);
Expand Down

0 comments on commit 7ca9c95

Please sign in to comment.