xfree86: Add a xf86MonitorFindHDMIBlock()
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 31 Jul 2013 18:11:45 +0000 (19:11 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Tue, 7 Jan 2014 17:24:38 +0000 (17:24 +0000)
commita279fb3ff3f3cfc41530aff1d9ff5620279348f6
tree54c0202d8596116f548b4ac25bd8646dae3ea8c2
parent2ea973e12f5d954211e1d10085a4c74581b43aca
xfree86: Add a xf86MonitorFindHDMIBlock()

The HDMI CEA vendor specific block has some interesting information,
such as the maximum TMDS dot clock.

v2: Don't parse CEA blocks with invalid offsets, remove spurious
    brackets (Chris Wilson)

v3: Fix the looping through the CEA data blocks, it had a typo using the
    wrong variable coming from the code it was ported from.
    Replace x << 16 + y << 8 + z by x << 16 | y << 8 | z
    (Chris Wilson)

v4: Remove the stray ';' at the end of "if (*end == 0)".
    (Dominik Behr on IRC)

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
hw/xfree86/ddc/interpret_edid.c
hw/xfree86/ddc/xf86DDC.h