summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-31 13:41:10 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-07 12:13:32 -0400
commit918bdf78c518465485a232df0ddac39e602d4965 (patch)
tree25c9affe8bf174a69062c515e7b630bec5b8fb41
parent86a43ab066079e63b1f22f6954b31a55c9877aed (diff)
edid-decode: fix has_preferred_timing handling for 1.4
The meaning of the preferred timing bit changed in 1.4. In that case there is always a preferred timing, but how it is interpreted depends on this bit. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--edid-decode.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/edid-decode.c b/edid-decode.c
index c150336..38cd72b 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -2325,9 +2325,16 @@ int main(int argc, char **argv)
memcmp(edid + 0x19, srgb_chromaticity, sizeof(srgb_chromaticity));
}
if (edid[0x18] & 0x02) {
- printf("First detailed timing is preferred timing\n");
+ if (claims_one_point_four)
+ printf("First detailed timing includes the native pixel format and preferred refresh rate\n");
+ else
+ printf("First detailed timing is preferred timing\n");
+ has_preferred_timing = 1;
+ } else if (claims_one_point_four) {
+ /* 1.4 always has a preferred timing and this bit means something else. */
has_preferred_timing = 1;
}
+
if (edid[0x18] & 0x01) {
if (claims_one_point_four)
printf("Display is continuous frequency\n");