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
This commit is contained in:
Simon Ser 2022-05-06 11:58:17 +02:00 committed by Simon Zeni
parent fa9b61004b
commit e646d882cf
5 changed files with 67 additions and 81 deletions

View file

@ -1314,7 +1314,7 @@ void scan_drm_connectors(struct wlr_drm_backend *drm,
size_t edid_len = 0;
uint8_t *edid = get_drm_prop_blob(drm->fd,
wlr_conn->id, wlr_conn->props.edid, &edid_len);
parse_edid(&wlr_conn->output, edid_len, edid);
parse_edid(wlr_conn, edid_len, edid);
free(edid);
char *subconnector = NULL;