Skip to content

Commit

Permalink
Print high-resolution dotclock limit from CVT subblock
Browse files Browse the repository at this point in the history
  • Loading branch information
nwnk committed Mar 9, 2009
1 parent 7d64600 commit 76d2d26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ detailed_block(unsigned char *x, int in_extension)

printf("CVT version %d.%d\n", x[11] & 0xf0 >> 4, x[11] & 0x0f);

if (x[12] & 0xfc) {
/* XXX should warn if the offset is > 10MHz */
printf("Real max dotclock: %.2fMHz\n",
(x[9] * 10) - ((x[12] & 0xfc) >> 2) * 0.25);
}

max_h_pixels = x[12] & 0x03;
max_h_pixels <<= 8;
max_h_pixels |= x[13];
Expand Down

0 comments on commit 76d2d26

Please sign in to comment.