]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: VENC/DISPC: Delay dividing Y resolution for managers connected to VENC
authorArchit Taneja <archit@ti.com>
Fri, 18 May 2012 09:06:54 +0000 (14:36 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 22 May 2012 08:00:01 +0000 (11:00 +0300)
commit78a89f69a5217cd275f5bb83b46962b26dbcc9e6
tree0fb4f039679cfcb544d795b21eb3c148fe9c1287
parent33c8b7b86c25fcdc84b7225d0065efc70e5af0f3
OMAPDSS: VENC/DISPC: Delay dividing Y resolution for managers connected to VENC

DSS2 driver uses the timings in manager's private data to check the validity of
overlay and manager infos written by the user. For VENC interface, we divide the
Y resolution by half when writing to the DISPC_DIGIT_SIZE register as the
content is interlaced. However, the height of the manager/display with respect
to the content shown through VENC still remains the same.

The VENC driver divides the y_res parameter in omap_video_timings by half, and
then applies the configuration. This leads to manager's private data storing
the wrong Y resolution. Hence, overlay related checks fail.

Ensure that manager's private data stores the original timings, and the Y
resolution is halved only when we write to the DISPC register. This is a hack,
the proper solution would be to pass some sort of interlace parameter which
makes the call whether we should divide y_res or not.

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