[Intel-gfx] [PATCH] gfx: The DS_UNKOWN block in EDID is used as DS_RANGE

yakui.zhao at intel.com yakui.zhao at intel.com
Fri Nov 6 08:23:31 CET 2009


From: Zhao Yakui <yakui.zhao at intel.com>

Sometimes nothing is contained in EDID detailed timing block. In such case
it is marked as DS_UNKOWN block type. And it is also used as the DS_RANGE in
order to match all the default modes by using wide open refresh rate.

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/drmmode_display.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 3417cab..2b7ee49 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -705,7 +705,9 @@ static int drmmode_output_lvds_edid(xf86OutputPtr output,
 		edid_det_block_num = sizeof(edid_mon->det_mon) /
 					sizeof(edid_mon->det_mon[0]);
 		for (i = 0; i < edid_det_block_num; i++) {
-			if (edid_mon->det_mon[i].type >= DS_VENDOR && j == -1)
+			if ((edid_mon->det_mon[i].type >= DS_VENDOR ||
+				edid_mon->det_mon[i].type == DS_UNKOWN) &&
+					j == -1)
 				j = i;
 			if (edid_mon->det_mon[i].type == DS_RANGES) {
 				j = i;
-- 
1.5.4.5




More information about the Intel-gfx mailing list