From e646d882cf4949d290fff2ba3b7ae4c124f6f13d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 May 2022 11:58:17 +0200 Subject: backend/drm: fetch EDID manufacturer from udev_hwdb Maintaining our internal table up-to-date is tedious: one needs to manually go through the PnP ID registry [1] and check whether we're missing any entry. udev_hwdb already has an API to fetch a manufacturer name from its PnP ID. Use that instead. [1]: https://uefi.org/pnp_id_list --- include/backend/drm/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/backend/drm/util.h') diff --git a/include/backend/drm/util.h b/include/backend/drm/util.h index b4cdee7d..323894b5 100644 --- a/include/backend/drm/util.h +++ b/include/backend/drm/util.h @@ -2,15 +2,15 @@ #define BACKEND_DRM_UTIL_H #include -#include #include #include +struct wlr_drm_connector; + // Calculates a more accurate refresh rate (mHz) than what mode itself provides int32_t calculate_refresh_rate(const drmModeModeInfo *mode); // Populates the make/model/phys_{width,height} of output from the edid data -void parse_edid(struct wlr_output *restrict output, size_t len, - const uint8_t *data); +void parse_edid(struct wlr_drm_connector *conn, size_t len, const uint8_t *data); // Returns the string representation of a DRM output type const char *conn_get_name(uint32_t type_id); -- cgit v1.2.3