]> 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)
commitfc51b9b5983a9555b7f4043cc2d36f7bf59426ef
treefb8f14e865474e22bcf38765ec32a1c2953ceb0b
parentd949e062355e6141298933816b7cc4e13643c3b7
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