OSDN Git Service

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)
commitc4661b33181708cddb96c72f629eae9cdeea271f
treefb8f14e865474e22bcf38765ec32a1c2953ceb0b
parent3397cc6a7199993150d09d9bf055ae130058a684
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