From ff007523a7b770a24284a22af6719268021feef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Wed, 15 Dec 2004 15:16:21 +0000 Subject: On PowerPC platforms, byteswap product_code so that ids match MonitorsDB contents --- tools/ddcprobe/of.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ddcprobe/of.c b/tools/ddcprobe/of.c index aab0632f1..f8fdc30dd 100644 --- a/tools/ddcprobe/of.c +++ b/tools/ddcprobe/of.c @@ -138,6 +138,9 @@ int vbe_get_edid_info(struct vbe_edid1_info * ret) man = ntohs(man); memcpy(&ret->manufacturer_name, &man, 2); + /* byteswap to match the contents of MonitorsDB */ + ret->product_code = ((ret->product_code >> 8) & 0xff) | ((ret->product_code & 0xff) << 8); + free(mem); return 1; } -- cgit v1.2.1