mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
OMAPDSS: DISPC: fix check_horiz_timing_omap3 args
After calculating the required decimation for scaling, the dispc driver checks once more if the resulting configuration is valid by calling check_horiz_timing_omap3(). Earlier calls to this function have correctly used in_width and in_height as parameters, but the last call uses width and height. This causes the driver to possibly reject scaling that would work. This patch fixes the parameters. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
c4661b3318
commit
f5a734827b
1 changed files with 2 additions and 2 deletions
|
@ -2338,8 +2338,8 @@ static int dispc_ovl_calc_scaling_34xx(unsigned long pclk, unsigned long lclk,
|
|||
}
|
||||
} while (*decim_x <= *x_predecim && *decim_y <= *y_predecim && error);
|
||||
|
||||
if (check_horiz_timing_omap3(pclk, lclk, mgr_timings, pos_x, width,
|
||||
height, out_width, out_height, *five_taps)) {
|
||||
if (check_horiz_timing_omap3(pclk, lclk, mgr_timings, pos_x, in_width,
|
||||
in_height, out_width, out_height, *five_taps)) {
|
||||
DSSERR("horizontal timing too tight\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue