]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: fix predecimation for YUV modes
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 27 Feb 2015 11:07:58 +0000 (13:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 17 Jun 2015 12:38:43 +0000 (15:38 +0300)
commit400fecd7e9eec210cb054f9feba5bf115ed2813d
treefb8f14e865474e22bcf38765ec32a1c2953ceb0b
parentec8fcd325f08c6f7d52d6ead850e5545373c72bc
OMAPDSS: DISPC: fix predecimation for YUV modes

DISPC needs even input buffer width for YUV modes. The DISPC driver
doesn't check this at the moment (although omapdrm does), but worse,
when DISPC driver does x predecimation the result may be uneven. This
causes sometimes sync losts, underflows, or just visual errors.

This patch makes DISPC driver return an error if the user gives uneven
input width for a YUV buffer. It also makes the input width even in case
of predecimation.

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