aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-02-09 17:02:38 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-02-09 17:02:38 +0000
commitd5a0a2c30080c644b441cc5ba4259a1066c192a4 (patch)
treeb26e6b0fd9279b8018734c4325b6cc1c9483d79c
parent0c6f2f75402475c7021f14d9c8e7b7c3f072d76f (diff)
downloadmonitor-edid-d5a0a2c30080c644b441cc5ba4259a1066c192a4.tar
monitor-edid-d5a0a2c30080c644b441cc5ba4259a1066c192a4.tar.gz
monitor-edid-d5a0a2c30080c644b441cc5ba4259a1066c192a4.tar.bz2
monitor-edid-d5a0a2c30080c644b441cc5ba4259a1066c192a4.tar.xz
monitor-edid-d5a0a2c30080c644b441cc5ba4259a1066c192a4.zip
- monitor-get-edid-using-vbe:
o stop retrieval when a retrieved EDID extension block appears identical to the main EDID block (observed with Onkyo TX-SR607 A/V receiver)
-rw-r--r--NEWS5
-rw-r--r--vbe.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8195353..9bc88b7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+- monitor-get-edid-using-vbe:
+ o stop retrieval when a retrieved EDID extension block appears
+ identical to the main EDID block (observed with Onkyo TX-SR607 A/V
+ receiver)
+
Version 3.0 - 3 January 2010, by Anssi Hannula
- monitor-get-edid-using-vbe:
diff --git a/vbe.c b/vbe.c
index fcd9d7f..f79187f 100644
--- a/vbe.c
+++ b/vbe.c
@@ -300,6 +300,10 @@ int get_edid(char *edid, int port, int skip_vbe_check)
log_err("EDID: Failure reading extension block %d\n", i);
break;
}
+ if (memcmp(edid, edid + i * EDID_BLOCK_SIZE, EDID_BLOCK_SIZE) == 0) {
+ log_err("EDID: Extension block %d is identical to main EDID block, stopping retrieval\n", i);
+ break;
+ }
}
return i * EDID_BLOCK_SIZE;