]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: Pass overlay caps as a parameter to dispc plane functions
authorArchit Taneja <archit@ti.com>
Wed, 26 Sep 2012 11:25:27 +0000 (16:55 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 26 Sep 2012 11:58:49 +0000 (14:58 +0300)
commit0a5b3f6766123608ad600055deb50eeab7d3bf78
tree31cd54f2e4c2bab238669cf9d10e4a8af196d846
parentcb541a2b37e8e276c1d1bd99ac164051a336d99d
OMAPDSS: DISPC: Pass overlay caps as a parameter to dispc plane functions

Currently, the functions below take the omap_plane parameter and derive the
overlay caps within them. Pass the overlay caps as a parameter to the function
to allow these to be used by writeback too.

- dispc_ovl_set_zorder()
- dispc_ovl_set_pre_mult_alpha()
- dispc_ovl_setup_global_alpha()
- dispc_ovl_calc_scaling()
- dispc_ovl_setup()

These functions will be used for writeback later, and the caps will help in
deciding if they are to be used for writeback or not. This allows reuse of
overlay caps for writeback.

Using omap_overlay_caps for writeback seems a bit incorrect, but caps is
something already in use by users of OMAPDSS(omapfb/omap_vout), so we use
overlay caps for overlay like features of writeback too.

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