mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-11 19:26:34 +00:00
Use a proper edid structure definition rather than indexing into a data blob. This also adds additional helper functions to work with the returned edid data. There is much room for further improvements still. We should simply read the first block, then use that to actually determine the number of blocks we need to read from the device. We cant simply read all the potential blocks as that can be up to 32K of data. Once we are reading all the EDID extensions, we should iterate over the blocks to find the CEA block rather than assuming that the device is sending the CEA block as the first block (especially given that the VESA spec calls for block 1 to be an extension map if there are more than 1 block present).