MLK-18104: drm: imx: dcss: Fix brightness on some HDMI 1.4 ports
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 20 Apr 2018 11:19:56 +0000 (14:19 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitb929eb3c059126abf92be5f26c18a98e782be75b
treeb93c73b8238012b35a975832a6d3c7e7652b552b
parent2e11d7aef8610b2b1475562b4a3a839cbdb84968
MLK-18104: drm: imx: dcss: Fix brightness on some HDMI 1.4 ports

Some HDR TVs have multiple HDMI ports but only one of them is HDMI 2.0
compliant, hence HDR capable. The rest are HDMI 1.4.

The HDMI 1.4 ports' supported colorimetry is only REC.709 and REC.601.
However, the supported EOTF in HDR metadata block can be BT.2084 which
should be matched with REC.2020.

This patch makes sure that BT2084 is used only if colorimetry supports
REC.2020. Otherwise, REC.709 will be used.

Additionally, change a message from info to debug. No need for it to
show up all the time.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-crtc.c