mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
OMAPDSS: skip pclk check for WB mem2mem
When doing mem-to-mem writeback, there's no pixelclock. However, the code that calculates scaling factors check that there is a pixel clock. We can just skip the check when doing mem-to-mem writeback. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
ecb0b366af
commit
fd2eac5a66
1 changed files with 1 additions and 1 deletions
|
@ -2477,7 +2477,7 @@ static int dispc_ovl_calc_scaling(unsigned long pclk, unsigned long lclk,
|
|||
if (width == out_width && height == out_height)
|
||||
return 0;
|
||||
|
||||
if (pclk == 0 || mgr_timings->pixelclock == 0) {
|
||||
if (!mem_to_mem && (pclk == 0 || mgr_timings->pixelclock == 0)) {
|
||||
DSSERR("cannot calculate scaling settings: pclk is zero\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue