From e10faae889b531ea1aa738db46869f1236f416da Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Tue, 16 Feb 2021 09:16:12 +0100 Subject: [PATCH] edid-decode: show byte/bit of established timings This makes it a bit easier to map an established timing to a specific bit. Signed-off-by: Hans Verkuil --- parse-base-block.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parse-base-block.cpp b/parse-base-block.cpp index 28665ee..a2c12c5 100644 --- a/parse-base-block.cpp +++ b/parse-base-block.cpp @@ -356,7 +356,7 @@ static const struct timings *find_std_id(unsigned short std_id, unsigned char &d void edid_state::list_established_timings() { - printf("Established Timings I & II:\n\n"); + printf("Established Timings I & II, 'Byte' is the EDID address:\n\n"); for (unsigned i = 0; i < ARRAY_SIZE(established_timings12); i++) { unsigned char dmt_id = established_timings12[i].dmt_id; const struct timings *t; @@ -369,14 +369,16 @@ void edid_state::list_established_timings() t = &established_timings12[i].t; sprintf(type, "%-8s", established_timings12[i].type); } + printf("Byte 0x%02x, Bit %u: ", 0x23 + i / 8, 7 - i % 8); print_timings("", t, type, "", false, false); } - printf("\nEstablished timings III:\n\n"); + printf("\nEstablished timings III, 'Byte' is the offset from the start of the descriptor:\n\n"); for (unsigned i = 0; i < ARRAY_SIZE(established_timings3_dmt_ids); i++) { unsigned char dmt_id = established_timings3_dmt_ids[i]; char type[16]; sprintf(type, "DMT 0x%02x", dmt_id); + printf("Byte 0x%02x, Bit %u: ", 6 + i / 8, 7 - i % 8); print_timings("", find_dmt_id(dmt_id), type, "", false, false); } } -- 2.11.4.GIT