[PATCH] Fix wrong assumptions in cea_for_each_detailed_block

Christian Schmidt schmidt at digadd.de
Sat Nov 12 17:04:54 PST 2011


The current logic misunderstands the spec about CEA 18byte descriptors.
First, the spec doesn't state "detailed timing descriptors" but "18 byte
descriptors", so any data record could be stored, mixed timings and
other data, just as in the standard EDID.
Second, the lower four bit of byte 3 of the CEA record do not contain
the number of descriptors, but "the total number of DTDs defining native
formats in the whole EDID [...], starting with the first DTD in the DTD
list (which starts in the base EDID block)." A device can of course
support non-native formats.

As such the number can't be used to determine n, and the existing code
will filter non-timing 18byte descriptors anyway.

Signed-off-by: Christian Schmidt <schmidt at digadd,de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_cea_for_each_detailed_block.patch
Type: text/x-patch
Size: 774 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111113/f12018ca/attachment-0001.bin>


More information about the dri-devel mailing list