From 159a2f3d4d1dccf4d16da767a1d581c808991d64 Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Fri, 23 Mar 2018 08:25:05 -0500 Subject: [PATCH] MLK-17703-7: drm: imx: dcss: configure output pipe according to what sink supports Output pipe tables' configuration was hardcoded. This patch will allow the output pipe to be configured according to what the sink supports. Also, since there's no way to pass gamut and nonlinearity settings from userspace, configure the input pipe as REC2020/REC2084. Signed-off-by: Laurentiu Palcu --- drivers/gpu/drm/imx/dcss/dcss-plane.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/imx/dcss/dcss-plane.c b/drivers/gpu/drm/imx/dcss/dcss-plane.c index f01a68e354b3..ae2d706e93e4 100644 --- a/drivers/gpu/drm/imx/dcss/dcss-plane.c +++ b/drivers/gpu/drm/imx/dcss/dcss-plane.c @@ -463,18 +463,13 @@ static void dcss_plane_atomic_update(struct drm_plane *plane, drm_mode_vrefresh(&crtc_state->mode)); ipipe_cfg.pixel_format = pixel_format; - ipipe_cfg.nl = NL_REC709; + + ipipe_cfg.nl = NL_REC2084; ipipe_cfg.pr = PR_FULL; - ipipe_cfg.g = G_REC709; + ipipe_cfg.g = G_REC2020; dcss_crtc_get_opipe_cfg(state->crtc, &opipe_cfg); - /* apparently the other settins that are read from connector are not good, - * so hardcode */ - opipe_cfg.nl = NL_REC709; - opipe_cfg.pr = PR_FULL; - opipe_cfg.g = G_REC2020; - dcss_hdr10_setup(dcss_plane->dcss, dcss_plane->ch_num, &ipipe_cfg, &opipe_cfg); -- 2.17.1