Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275960
b: refs/heads/master
c: f95cb5e
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Nov 18, 2011
1 parent 288ac2e commit 6de2479
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 1c6bc899723ca8c0d58044c3661f13ac2369e55f
refs/heads/master: f95cb5ebd834117ff4829a460656095a0ae63921
11 changes: 5 additions & 6 deletions trunk/drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1720,12 +1720,11 @@ static int dispc_ovl_calc_scaling(enum omap_plane plane,
const int maxdownscale = dss_feat_get_param_max(FEAT_PARAM_DOWNSCALE);
unsigned long fclk = 0;

if ((ovl->caps & OMAP_DSS_OVL_CAP_SCALE) == 0) {
if (width != out_width || height != out_height)
return -EINVAL;
else
return 0;
}
if (width == out_width && height == out_height)
return 0;

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

if (out_width < width / maxdownscale ||
out_width > width * 8)
Expand Down

0 comments on commit 6de2479

Please sign in to comment.