drm: Add Content protection type property
[sfrench/cifs-2.6.git] / drivers / gpu / drm / drm_atomic_uapi.c
index abe38bdf85ae6872ef31a0cb76c8ded6cd774b3b..19ae119f1a5daba4c33a5881309e8ac103c53e56 100644 (file)
@@ -747,6 +747,8 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,
                        return -EINVAL;
                }
                state->content_protection = val;
+       } else if (property == config->hdcp_content_type_property) {
+               state->hdcp_content_type = val;
        } else if (property == connector->colorspace_property) {
                state->colorspace = val;
        } else if (property == config->writeback_fb_id_property) {
@@ -831,6 +833,8 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
                        state->hdr_output_metadata->base.id : 0;
        } else if (property == config->content_protection_property) {
                *val = state->content_protection;
+       } else if (property == config->hdcp_content_type_property) {
+               *val = state->hdcp_content_type;
        } else if (property == config->writeback_fb_id_property) {
                /* Writeback framebuffer is one-shot, write and forget */
                *val = 0;