From: jsg Date: Tue, 28 Mar 2023 00:16:13 +0000 (+0000) Subject: drm/display: Don't block HDR_OUTPUT_METADATA on unknown EOTF X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=efe459ef3d2a75473518f290136ef30f89e9603d;p=openbsd drm/display: Don't block HDR_OUTPUT_METADATA on unknown EOTF From Harry Wentland 9f6f6f42b9ef6b6ad2fcd01623593bef7eb5a47b in linux-6.1.y/6.1.20 e5eef23e267c72521d81f23f7f82d1f523d4a253 in mainline linux --- diff --git a/sys/dev/pci/drm/display/drm_hdmi_helper.c b/sys/dev/pci/drm/display/drm_hdmi_helper.c index 0264abe5527..faf5e9efa7d 100644 --- a/sys/dev/pci/drm/display/drm_hdmi_helper.c +++ b/sys/dev/pci/drm/display/drm_hdmi_helper.c @@ -44,10 +44,8 @@ int drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame, /* Sink EOTF is Bit map while infoframe is absolute values */ if (!is_eotf_supported(hdr_metadata->hdmi_metadata_type1.eotf, - connector->hdr_sink_metadata.hdmi_type1.eotf)) { - DRM_DEBUG_KMS("EOTF Not Supported\n"); - return -EINVAL; - } + connector->hdr_sink_metadata.hdmi_type1.eotf)) + DRM_DEBUG_KMS("Unknown EOTF %d\n", hdr_metadata->hdmi_metadata_type1.eotf); err = hdmi_drm_infoframe_init(frame); if (err < 0)