[PATCH v2 3/6] drm: Add DisplayPort colorspace property
Shankar, Uma
uma.shankar at intel.com
Mon Aug 26 19:18:09 UTC 2019
>-----Original Message-----
>From: Mun, Gwan-gyeong
>Sent: Friday, August 23, 2019 3:22 PM
>To: intel-gfx at lists.freedesktop.org
>Cc: dri-devel at lists.freedesktop.org; Shankar, Uma <uma.shankar at intel.com>;
>Sharma, Shashank <shashank.sharma at intel.com>
>Subject: [PATCH v2 3/6] drm: Add DisplayPort colorspace property
>
>In order to use colorspace property to Display Port connectors, it extends
>DRM_MODE_CONNECTOR_DisplayPort connector_type on
>drm_mode_create_colorspace_property function.
The changes look good to me.
Reviewed-by: Uma Shankar <uma.shankar at intel.com>
>Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
>---
> drivers/gpu/drm/drm_connector.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
>index 4c766624b20d..655ada9d4c16 100644
>--- a/drivers/gpu/drm/drm_connector.c
>+++ b/drivers/gpu/drm/drm_connector.c
>@@ -1703,7 +1703,9 @@ int drm_mode_create_colorspace_property(struct
>drm_connector *connector)
> struct drm_property *prop;
>
> if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
>- connector->connector_type == DRM_MODE_CONNECTOR_HDMIB) {
>+ connector->connector_type == DRM_MODE_CONNECTOR_HDMIB ||
>+ connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
>+ connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
> prop = drm_property_create_enum(dev, DRM_MODE_PROP_ENUM,
> "Colorspace",
> hdmi_colorspaces,
>--
>2.22.0
More information about the dri-devel
mailing list