linux_dsm_epyc7002/drivers/video/omap2/dss
Archit Taneja 11354dd58d OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting
On OMAP3, in order to enable alpha blending for LCD and TV managers, we needed
to set LCDALPHABLENDERENABLE/TVALPHABLENDERENABLE bits in DISPC_CONFIG. On
OMAP4, alpha blending is always enabled by default, if the above bits are set,
we switch to an OMAP3 compatibility mode where the zorder values in the pipeline
attribute registers are ignored and a fixed priority is configured.

Rename the manager_info member "alpha_enabled" to "partial_alpha_enabled" for
more clarity. Introduce two dss_features FEAT_ALPHA_FIXED_ZORDER and
FEAT_ALPHA_FREE_ZORDER which represent OMAP3-alpha compatibility mode and OMAP4
alpha mode respectively. Introduce an overlay cap for ZORDER. The DSS2 user is
expected to check for the ZORDER cap, if an overlay doesn't have this cap, the
user is expected to set the parameter partial_alpha_enabled. If the overlay has
ZORDER cap, the DSS2 user can assume that alpha blending is already enabled.

Don't support OMAP3 compatibility mode for now. Trying to read/write to
alpha_blending_enabled sysfs attribute issues a warning for OMAP4 and does not
set the LCDALPHABLENDERENABLE/TVALPHABLENDERENABLE bits.

Change alpha_enabled to partial_alpha_enabled in the omap_vout driver. Use
overlay cap "OMAP_DSS_OVL_CAP_GLOBAL_ALPHA" to check if overlay supports alpha
blending or not. Replace this with checks for VIDEO1 pipeline.

Cc: linux-media@vger.kernel.org
Cc: Lajos Molnar <molnar@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Acked-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2011-10-03 16:51:54 +03:00
..
core.c OMAPDSS: HDMI: Add support to dump registers through debugfs 2011-09-30 16:17:32 +03:00
dispc.c OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting 2011-10-03 16:51:54 +03:00
dispc.h OMAP: DSS2: Add new registers for NV12 support 2011-05-23 08:29:47 +03:00
display.c OMAP: DSS2: Create an enum for DSI pixel formats 2011-09-30 16:16:29 +03:00
dpi.c OMAP: DSS2: Clean up stallmode and io pad mode selection 2011-09-30 16:16:28 +03:00
dsi.c OMAP: DSS2: DSI Video mode support 2011-09-30 16:16:30 +03:00
dss_features.c OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting 2011-10-03 16:51:54 +03:00
dss_features.h OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting 2011-10-03 16:51:54 +03:00
dss.c OMAP: DSS2: add dss_get_hdmi_venc_clk_source() 2011-09-30 16:16:42 +03:00
dss.h OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting 2011-10-03 16:51:54 +03:00
hdmi_panel.c OMAP: DSS2: HDMI: implement detect() 2011-09-30 16:16:47 +03:00
hdmi.c OMAPDSS: HDMI: Add support to dump registers through debugfs 2011-09-30 16:17:32 +03:00
Kconfig OMAP: DSS2: Remove "EXPERIMENTAL" from Kconfig 2011-09-30 16:16:19 +03:00
Makefile OMAP4: DSS2: Rename hdmi_omap4_panel.c to hdmi_panel.c 2011-09-30 16:16:35 +03:00
manager.c OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting 2011-10-03 16:51:54 +03:00
overlay.c OMAP: DSS2: string parsing cleanups 2011-09-30 16:16:21 +03:00
rfbi.c OMAP: DSS2: Clean up stallmode and io pad mode selection 2011-09-30 16:16:28 +03:00
sdi.c OMAP: DSS2: Clean up stallmode and io pad mode selection 2011-09-30 16:16:28 +03:00
ti_hdmi_4xxx_ip.c OMAPDSS: HDMI: Add support to dump registers through debugfs 2011-09-30 16:17:32 +03:00
ti_hdmi_4xxx_ip.h OMAPDSS: HDMI: Add missing register definitions 2011-09-30 16:17:31 +03:00
ti_hdmi.h OMAPDSS: HDMI: Add support to dump registers through debugfs 2011-09-30 16:17:32 +03:00
venc.c OMAPDSS: DISPC: Get correct pixel clock for TV manager 2011-09-30 16:17:25 +03:00