]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: fix usage of dispc_ovl_set_accu_uv
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 May 2012 12:54:15 +0000 (15:54 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 22 May 2012 07:59:14 +0000 (10:59 +0300)
commit318eca6218bf3073756e6c4de3ed738753e599b7
tree8965ddaa268af056f28922b4224a1225fd404574
parent88449a21a5534b7294fd8d631d325d938d4fa095
OMAPDSS: DISPC: fix usage of dispc_ovl_set_accu_uv

Commit 13b8ae4873af7fd9518041374b3e4359a842ad57 ("OMAPDSS: DISPC: Update
Accumulator configuration for chroma plane") adds
dispc_ovl_set_accu_uv() function that sets the accu, but the function
only handles YUV and NV12 modes, and BUGs otherwise.

The patch also adds a call to the function, but unfortunately the place
of call was such that the mode could be other than YUV or NV12, thus
crashing the driver.

This patchs moves the call to a slightly later spot, at which point only
YUV and NV12 modes are handled.

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