summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-06-21This project has movedHEADmasterAdam Jackson22-3218/+5
2018-03-07makefile: also honor LDFLAGSAdam Jackson1-1/+1
Mmm, PIE. Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-09-18edid-decode: Speaker location typoHans Verkuil1-2/+2
TpFH -> TpFR Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: add support for the HDMI Audio Data BlockHans Verkuil1-1/+69
This was introduced in HDMI 2.0. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: add support for InfoFrame data blockHans Verkuil1-0/+32
Support this CTA-861 block. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: rename CEA/cea to CTA/ctaHans Verkuil1-65/+65
The Consumer Electronics Association was renamed to Consumer Technology Association. Update all cea references to cta. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: sync cea_block data block names with standardHans Verkuil1-10/+10
The names where a bit irregular, sync them up with the CTA-861-G standard. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: add HDR Dynamic Metadata Data BlockHans Verkuil1-0/+35
Support this CTA-861-G data block. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: support HLG, decode luminance valuesHans Verkuil2-6/+11
Add support for the new CTA-861-G Hybrid Log-Gamma transfer function. Also decode the luminance values in the static metadata block to cd/m^2 values. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: add DCI-P3 support in colorimetry blockHans Verkuil1-0/+2
This bit was added in CTA-861-G. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: add new CTA-861-G VIC codesHans Verkuil1-12/+81
The CTA-861-G standard (successor to CEA-861-F) adds new VIC codes. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: add support for Room/Speaker data blocksHans Verkuil1-3/+109
Support the Room Configuration Data Block and the Speaker Location Data Block. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: update Speaker Allocation data blockHans Verkuil1-16/+23
More bits are now in use, implement support for those. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: update Audio Block with CEA-861.2Hans Verkuil1-7/+44
Add support for extended audio formats and report the format specific information. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-18edid-decode: fix broken bit testsHans Verkuil1-3/+3
'if (x[0] >> i)' is not how you test if bit i is set. 'if (x[0] & (1 << i))' works a lot better! Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: show correct EDID version in stringHans Verkuil1-3/+12
Show correct EDID version in a string. Also turn the monitor range check into a warning for EDID 1.4 (an 1.4 Errata says that explicitly mentioned timings supersede the monitor range definition). Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: calculate hfreq and clock from CVTHans Verkuil1-32/+204
Support CVT 3 byte codes and calculate the horizontal frequencies and max clock from them. Use this to improve the range checking. Also always print the hfreq and clock for the timings to help figuring out which timings are out of the monitor range. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: check if HDMI VICs are also in the VSBHans Verkuil1-9/+27
Issue a warning if that is not the case. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: check Max TMDS RatesHans Verkuil1-3/+19
The max TMDS rate in the HDMI VSDB is 340 MHz and the max TMDS rate in the HDMI Forum VSDB is 0 or in the range 341-600 MHz. Check for this. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: allow the year to be one year in the futureHans Verkuil1-1/+1
Prototypes may have a year that is in the future, so give this a bit more slack. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
2017-09-07edid-decode: allow for comma separated hex valuesHans Verkuil1-1/+1
Useful when the hex dump comes from source code. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
2017-09-07edid-decode: improve the hex dump parser to be more genericHans Verkuil1-2/+2
Allow for spaces and '0x' prefixes. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
2017-09-07edid-decode: return 1 if no edid was foundHans Verkuil1-2/+2
Commit e12845d9 accidentally commented out the return 1 when no edid was found. Uncomment it and also use stderr for the error message. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
2017-09-07edid-decode: fix 1.3/1.4 differences in Model Year and Feature SupportHans Verkuil1-22/+21
The Model Year is only available in 1.4. And in 1.3 bits 4-3 are always for the Display Type. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
2017-09-07edid-decode: fix week/year interpretation.Hans Verkuil1-3/+5
Correctly interpret the week/year bytes. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: fix has_preferred_timing handling for 1.4Hans Verkuil1-1/+8
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>
2017-09-07edid-decode: YCbCr 4:2:0 Capability Map supportHans Verkuil1-0/+17
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: SVDs in the 4:2:0 Data Block have half the pixclkHans Verkuil1-4/+5
SVDs in the 4:2:0 Capability Data Block run at half the normal pixelclock. Take that into consideration when updating the max pixelclock. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: check monitor min/max range against supported timingsHans Verkuil1-189/+298
Calculate the minimum and maximum required frequencies given the list of timings. Check this against the listed monitor frequencies. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: add horizontal freq and pixelclockHans Verkuil1-180/+201
Add the horizontal frequency and pixelclock information to the established timings and VIC codes. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: add support for Established Timings IIIHans Verkuil1-2/+64
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: add support for the Color PointHans Verkuil1-2/+28
Support the Color Point Descriptor Definition (tag 0xfb). Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: add Display Color Management supportHans Verkuil1-2/+8
Print the contents of the DCM definition. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: add support for the "More standard timings" blockHans Verkuil1-42/+46
Support display descriptor tag 0xFA which reports more standard timings. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: fix "Supports CVT standard blanking"Hans Verkuil1-1/+1
The wrong bit was tested. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: fix CVT versionHans Verkuil1-1/+1
Parenthesis are needed to correctly report the CVT version. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: bit 0, byte 0x18 has been renamed for EDID 1.4Hans Verkuil1-2/+6
This bit was "Supports GTF timings within operating range", but for EDID 1.4 it has been renamed to "Display is continuous frequency". Update the text accordingly. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: verify 640x480p60 is defined for CEA-861Hans Verkuil1-0/+11
Support for this format is required by the CEA-861 spec. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: add check for both serial number and stringHans Verkuil1-0/+9
According to CEA-861-F if the serial string is provided in the detailed block, then the serial number should be 0. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: report picture aspect ratioHans Verkuil1-139/+157
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: print the chromaticitiesHans Verkuil1-2/+36
Also warn if the sRGB bit is set but the chromaticities do not match sRGB. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-09-07edid-decode: add HDMI Forum VSDB supportHans Verkuil1-2/+43
Besides printing the contents of that data block, also check that the HF VSDB comes immediately after the HDMI VSDB as per the spec. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-08-25Clean up the makefile a bitAdam Jackson1-4/+1
2017-08-25Remove "valid extension count" checkAdam Jackson1-12/+1
I don't think I've ever seen a block map in the wild, and at least data/dell-up2715k-dp has the value 2 here and seems otherwise cromulent, so let's stop calling this a problem.
2017-08-25data: Dell UP2718QAdam Jackson1-0/+0
Sample for HDR metadata.
2017-03-29data: Add Dell UP2715k 5k EDID with DisplayIDMark Ferry1-0/+0
Test data for DisplayID extension parsing.
2017-03-28Report broken CEA and DisplayID checksums.Mark Ferry1-3/+18
Reviewed-by: Adam Jackson <ajax@redhat.com>
2017-03-28Make do_checksum reusable for DisplayID checksums.Mark Ferry1-17/+28
DisplayID, unlike EDID and CEA, is a variable length structure. Allow for reuse of do_checksum by adding a length parameter. Return a boolean to allow the caller to record failure. Reviewed-by: wharms@bfs.de
2017-03-28Fix valid termination checkAdam Jackson1-0/+2
This was mishandling spaces before the terminating newline, the result would be truncated and we'd falsely consider the block to be incorrectly terminated. Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-07-15Add Samsung UE40KU6070 UHD TV EDIDArnaud Vrac1-0/+0