diff options
author | Simon Ser <contact@emersion.fr> | 2021-01-13 00:33:19 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-17 12:42:25 +0100 |
commit | cb6f58449683f7b30a6a8718bac5475c39b291d8 (patch) | |
tree | 05b4b44053c64ec0b4c8f496cf23b69ef0d769e8 /include/backend/drm | |
parent | 6af748171a3f21c48847b53337df792576750a18 (diff) |
backend/drm: add support for the subconnector property
The subconnector property indicates the connector sub-type. This is
useful because that usually indicates what kind of connector the user
has plugged in to their monitor, e.g. a DisplayPort-to-DVI cable will
indicate a DVI subconnector. Also some laptops have non-DP connectors
that are internally linked to a DP port on the GPU.
Set the output description accordingly.
See https://drmdb.emersion.fr/properties/3233857728/subconnector
Diffstat (limited to 'include/backend/drm')
-rw-r--r-- | include/backend/drm/properties.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/backend/drm/properties.h b/include/backend/drm/properties.h index c2027c4f..9e1fe0b6 100644 --- a/include/backend/drm/properties.h +++ b/include/backend/drm/properties.h @@ -17,6 +17,7 @@ union wlr_drm_connector_props { uint32_t link_status; // not guaranteed to exist uint32_t path; uint32_t vrr_capable; // not guaranteed to exist + uint32_t subconnector; // not guaranteed to exist // atomic-modesetting only @@ -69,5 +70,6 @@ bool get_drm_plane_props(int fd, uint32_t id, union wlr_drm_plane_props *out); bool get_drm_prop(int fd, uint32_t obj, uint32_t prop, uint64_t *ret); void *get_drm_prop_blob(int fd, uint32_t obj, uint32_t prop, size_t *ret_len); +char *get_drm_prop_enum(int fd, uint32_t obj, uint32_t prop); #endif |