drm/vc4: vec: Add the margin properties to the connector
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 24 Nov 2023 16:22:10 +0000 (16:22 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:15 +0000 (11:35 +0000)
All the handling for the properties was present, but they
were never attached to the connector to allow userspace
to change them.

Add them to the connector.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_vec.c

index e77eef9..c57df20 100644 (file)
@@ -584,6 +584,8 @@ static int vc4_vec_connector_init(struct drm_device *dev, struct vc4_vec *vec)
 
        drm_object_attach_property(&connector->base, prop, legacy_default_mode);
 
+       drm_connector_attach_tv_margin_properties(connector);
+
        drm_connector_attach_encoder(connector, &vec->encoder.base);
 
        return 0;