backend/drm: use libdisplay-info to parse EDID

This commit is contained in:
Simon Ser 2023-02-02 12:14:11 +01:00 committed by Alexander Orzechowski
parent 40117e1e0d
commit 35da997001
8 changed files with 34 additions and 57 deletions

View file

@ -13,12 +13,11 @@ gen_pnps()
}
cat << EOF
#include <stdint.h>
#include <stddef.h>
#include "backend/drm/util.h"
#define PNP_ID(a, b, c) ((a & 0x1f) << 10) | ((b & 0x1f) << 5) | (c & 0x1f)
const char *get_pnp_manufacturer(uint16_t code) {
switch (code) {
const char *get_pnp_manufacturer(const char code[static 3]) {
switch (PNP_ID(code[0], code[1], code[2])) {
$(gen_pnps)
}
return NULL;