Commit bc95698959b43f451c667996ec2c22ad9336e745
1 parent
b58e87f04e
Exists in
smarc_8mm_imx_4.14.98_2.0.0_ga
and in
4 other branches
MLK-21249: drm/imx/hdp: do not set BT2020 colorimetry for 8bit color depth
Currently, we set the colorimetry to BT.2020 even if the color-depth is 8 bit. This is not according to HDMI specification. This patch makes sure we follow the specs. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com> CC: Sandor Yu <sandor.yu@nxp.com> Reviewed-by: Sandor Yu <sandor.yu@nxp.com> Reviewed-by: Robert Chiras <robert.chiras@nxp.com> (cherry picked from commit cdacfaadd5dccfdca5dd68640d8f08506f6a9114)
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
drivers/gpu/drm/imx/hdp/imx-hdmi.c
... | ... | @@ -51,6 +51,10 @@ |
51 | 51 | allowed_colorimetry = format == PXL_RGB ? RGB_ALLOWED_COLORIMETRY : |
52 | 52 | YCC_ALLOWED_COLORIMETRY; |
53 | 53 | |
54 | + if (hdp->bpc == 8) | |
55 | + allowed_colorimetry &= ~(BIT(HDMI_EXTENDED_COLORIMETRY_BT2020) | | |
56 | + BIT(HDMI_EXTENDED_COLORIMETRY_BT2020_CONST_LUM)); | |
57 | + | |
54 | 58 | sink_colorimetry = di->hdmi.colorimetry & allowed_colorimetry; |
55 | 59 | |
56 | 60 | if (sink_colorimetry & BIT(HDMI_EXTENDED_COLORIMETRY_BT2020)) |