]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: check if scaling setup failed
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 10 Apr 2015 09:48:37 +0000 (12:48 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 17 Jun 2015 12:44:28 +0000 (15:44 +0300)
commitddbf01dce68b95bf7328a1cf59fd0e6aaf009298
tree1628bcb8d33d4742ad714bdf57ebf008d55c156a
parent4cdfb4903dae26c50defc1e01315f944be0bee7f
OMAPDSS: DISPC: check if scaling setup failed

The DISPC's scaling code seems to presume that decimation always
succeeds, and so we always do find a suitable downscaling setup.
However, this is not the case, and the algorithm can fail.

When that happens, the code just proceeds with wrong results, causing
issues later.

Add the necessary checks to bail out if the scaling algorithm failed.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/dispc.c