Apparently, there are HDMI sinks out there that advertise Rec.2020
support in the Colorimetry Data Block but are not HDR capable devices.
In this case, there's no HDR Static metadata data block and EOTF is 0.
This patch will allow setting up the DCSS output pipe non-linearity to
Rec.2020, irrespective of sink's supported EOTF in HDR static metadata.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
else
dcss_crtc->opipe_g = G_REC709;
- if ((eotf & (1 << 2)) && dcss_crtc->opipe_g == G_REC2020)
+ if (dcss_crtc->opipe_g == G_REC2020)
dcss_crtc->opipe_nl = NL_REC2084;
else if (dcss_crtc->opipe_g == G_ADOBE_ARGB)
dcss_crtc->opipe_nl = NL_SRGB;