linux_dsm_epyc7002/drivers/gpu/drm/omapdrm/dss
Tomi Valkeinen 4cba7071b7 drm/omap: cleanup color space conversion
The setup code for color space conversion is a bit messy. This patch
cleans it up.

For some reason the TRM uses values in YCrCb order, which is also used
in the current driver, whereas everywhere else it's YCbCr (which also
matches YUV order). This patch changes the tables to use the common
order to avoid confusion.

The tables are split into separate lines, and comments added for
clarity.

WB color conversion registers are similar but different than non-WB, but
the same function was used to write both. It worked fine because the
coef table was adjusted accordingly, but that was rather confusing. This
patch adds a separate function to write the WB values so that the coef
table can be written in an understandable way.

Recalculation also showed that 'bcb' value in yuv-to-rgb conversion had
been rounded wrongly, and it should be 516 instead of 517.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-03-01 09:18:18 +02:00
..
base.c drm: omapdrm: dispc: Pass DISPC pointer to dispc_ops operations 2018-03-01 09:18:18 +02:00
core.c drm: omapdrm: Simplify platform registration 2017-12-19 11:21:32 +02:00
dispc_coefs.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
dispc.c drm/omap: cleanup color space conversion 2018-03-01 09:18:18 +02:00
dispc.h drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
display.c drm: omapdrm: dss: Make omapdss_default_get_timings static 2018-03-01 09:18:18 +02:00
dpi.c drm: omapdrm: dispc: Pass DISPC pointer to remaining dispc API functions 2018-03-01 09:18:18 +02:00
dsi.c drm: omapdrm: dispc: Pass DISPC pointer to remaining dispc API functions 2018-03-01 09:18:18 +02:00
dss-of.c drm: omapdrm: dss: Don't export functions internal to omapdss-base 2018-03-01 09:18:18 +02:00
dss.c drm: omapdrm: dispc: Pass DISPC pointer to remaining dispc API functions 2018-03-01 09:18:18 +02:00
dss.h drm/omap: add writeback funcs to dispc_ops 2018-03-01 09:18:18 +02:00
hdmi4_cec.c drm: omapdrm: hdmi4: Allocate the omap_hdmi data structure dynamically 2018-03-01 09:18:18 +02:00
hdmi4_cec.h omapdrm: hdmi4_cec: add OMAP4 HDMI CEC support 2017-10-12 10:49:14 +03:00
hdmi4_core.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
hdmi4_core.h drm: omapdrm: hdmi4: Allocate the omap_hdmi data structure dynamically 2018-03-01 09:18:18 +02:00
hdmi4.c drm/omap: Allow HDMI audio setup even if we do not have video configured 2018-03-01 09:18:18 +02:00
hdmi5_core.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
hdmi5_core.h
hdmi5.c drm/omap: Allow HDMI audio setup even if we do not have video configured 2018-03-01 09:18:18 +02:00
hdmi_common.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hdmi_phy.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
hdmi_pll.c drm: omapdrm: dss: Store the registered plls array in struct dss_device 2018-03-01 09:18:18 +02:00
hdmi_wp.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
hdmi.h drm: omapdrm: hdmi4: Allocate the omap_hdmi data structure dynamically 2018-03-01 09:18:18 +02:00
Kconfig omapdrm: hdmi4: hook up the HDMI CEC support 2017-10-12 10:49:14 +03:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
omapdss-boot-init.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omapdss.h drm/omap: add writeback funcs to dispc_ops 2018-03-01 09:18:18 +02:00
output.c drm: omapdrm: dss: Pass omap_drm_private pointer to dss_mgr_ops 2018-03-01 09:18:18 +02:00
pll.c drm: omapdrm: dss: Store the registered plls array in struct dss_device 2018-03-01 09:18:18 +02:00
sdi.c drm: omapdrm: sdi: Allocate the sdi private data structure dynamically 2018-03-01 09:18:18 +02:00
venc.c drm: omapdrm: venc: Allocate the venc private data structure dynamically 2018-03-01 09:18:18 +02:00
video-pll.c drm: omapdrm: dss: Store the registered plls array in struct dss_device 2018-03-01 09:18:18 +02:00