mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
backend/drm: use libdisplay-info to parse EDID
This commit is contained in:
parent
40117e1e0d
commit
35da997001
8 changed files with 34 additions and 57 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue