aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-03-25edid-decode: test: update blockmap test filesHEADmasterHans Verkuil2-14/+14
Fixed edid-decode warnings in these test EDIDs. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-24edid-decode: give better message when the EDID is emptyHans Verkuil1-1/+7
If the EDID file is 0 bytes, then say so instead of saying 'unknown format'. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-24edid-decode: warn if a DTD closely matches a VIC or DMTHans Verkuil4-0/+72
Detailed Timing Descriptors often are identical to a VIC or DMT. But sometimes they are off a little bit, either due to slightly different porches or sync widths, or due to different polarities. Warn if this is the case, since it is probably a bug in the EDID. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-20edid-decode: don't report bogus CTA-861 pref/native timingsHans Verkuil1-2/+4
If the CTA-861 block is absent, then edid-decode would still show the preferred and native timings 'if Block 0 and CTA-861 Blocks are parsed'. Fix this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-20edid-decode: add --only-hex-dump optionHans Verkuil2-4/+12
This option only shows the hex dump of the EDID and doesn't do any parsing. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-19edid-decode: report the physical address in hexHans Verkuil1-1/+1
Report the physical address in hex, so it will look like f.f.f.f instead of 15.15.15.15. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-12edid-decode: add Microsoft HDM standard to the manpageHans Verkuil1-0/+2
Added "Microsoft EDID extension for head-mounted and specialized monitors, Version 3". Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-12edid-decode: introduce containerid2s()Hans Verkuil4-7/+16
Format the container IDs consistently. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-12edid-decode: support Microsoft extension for HMDs and specialized monitorsPhilipp Zabel1-0/+41
Add support for parsing VSDBs documented in Microsoft's "EDID extension for head-mounted and specialized monitors" [1]. [1] https://docs.microsoft.com/en-us/windows-hardware/drivers/display/specialized-monitors-edid-extension Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-05edid-decode: 'Missing VCDB' should be a failHans Verkuil1-1/+1
This is currently a warning, but it should be a failure. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-05edid-decode: improve Auto Lipsync checksHans Verkuil2-6/+42
Improve checks for the audio/video latency values in the HDMI H14b VSDB according to the HDMI 2.0b spec. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-25edid-decode: introduce RB_NONE, rename RB_FLAG to RB_ALTHans Verkuil4-19/+33
This is consistent with the other code. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-25edid-decode: improve pref timing warning, downgrade fail() to warn()Hans Verkuil1-3/+8
The 'VIC 97 is the preferred timing, overriding the first detailed timings. Is this intended?' message is confusing if the VIC and the first DTD have matching timings. In that case change the message to 'For improved preferred timing interoperability, set 'Native detailed modes' to 1.'. Also downgrade the 'Set Selectable YCbCr Quantization to avoid interop issues.' message to a warn(). Too many EDIDs do not set this, and the interop risks are a lot lower compared to RGB Quantization. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-16edid-decode: show byte/bit of established timingsHans Verkuil1-2/+4
This makes it a bit easier to map an established timing to a specific bit. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-15edid-decode: fix DTD and non-zero bordersHans Verkuil1-4/+26
EDID 1.3 and 1.4 have conflicting definitions about how to interpret borders and blanking in a DTD. And actual EDIDs interpret different from both specs. Follow what EDIDs do, and add a warning that non-zero borders in a DTD is not recommended. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-15edid-decode: show or calculate timingsHans Verkuil9-432/+916
Add new options to show all Established Timings, DMTs, VICs and HDMI VICs. Add new options to show the timings for specific Standard Timing codes, or DMT, VIC and HDMI VIC codes. Add new options to calculate GTF and CVT timings, fully implementing the GTF and CVT standards, including interlaced, overscan, reduced blanking and support for the GTF Secondary Curve. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-14edid-decode: the borders are not part of the front/back porchesHans Verkuil2-13/+25
Update DMT 4 and 5 accordingly, and add the borders to the horizontal and vertical blanking calculations. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-14edid-decode: fix 32 bit overflowHans Verkuil1-2/+2
The calculation of the min/max pixelclock had a 32 bit overflow. Cast the factor 1000 to unsigned long long (1000ULL). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-13edid-decode: improve GTF Secondary Curve handlingHans Verkuil1-10/+10
1) Add units where applicable for the sec. curve params. 2) Show only one decimal for C and J 3) Remove check if x[13] or x[17] > 127: this is wrong since x[13] is C / 2, not C. 4) Add check if the sec curve block is all 0, even though support for the sec curve is signaled in the EDID. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-13edid-decode: move up do_checks checkHans Verkuil1-2/+3
The print_timings() function skips the validation checks if !do_checks. But it should also skip the setting of min/max state variables used to determine whether any timings are out of range. I.e., if do_checks is false, just show the timings without any side-effects. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-09edid-decode: improve GTF/CVT checksHans Verkuil2-23/+47
1) Warn if a 1.4 EDID supports GTF instead of CVT (GTF is deprecated) 2) If a 1.4 EDID only supports GTF, then do not report Standard Timings as CVT. 3) Drop the check that GTF and/or CVT support must be present if an explicit GTF or CVT timing is supported: GTF/CVT support indicates that any GTF/CVT timings within the Display Range Limits is accepted, but explicitly indicated GTF/CVT timings are always assumed to be supported as discrete timings. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-03edid-decode: improve fail messageHans Verkuil1-1/+1
Explicitly state that all DTD image sizes fit inside 255x255cm. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-03edid-decode: improve image/display size checksHans Verkuil3-28/+47
1) when print_timings is called to show preferred and/or native timings, skip any checks. Those have been done already when these timings were first parsed, and doing it again results in duplicate messages. 2) if the display size is 0x0 and the max image size > 2559x2559mm, then do not fail since the display size can only report sizes smaller than that. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-02-02edid-decode: improve VCDB checksHans Verkuil1-14/+21
Selectable RGB/YCbCr Quantization is now required as per CTA-861-H, so make it a fail if it is 0. Also add an S_PT check: should be 0 if it is equal to S_IT and S_CE. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-01-28edid-decode: improve DisplayID native format handlingHans Verkuil3-4/+27
The DisplayID 1.3 reporting of the native format was off by 1. Also check if the resolution is either all 0 (no native format specified) or all non-0. Finally check for consistency with the reported native resolution by the CTA block. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-01-19edid-decode: use 4 decimals for color characteristicsHans Verkuil1-2/+2
The precision is only 4 decimals, so change %.6f to %.4f. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: val.zapod.vz@gmail.com
2021-01-19edid-decode: fix Video Timing Range Limits pixelclockHans Verkuil1-2/+2
The pixelclock min/max values were off by one. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: val.zapod.vz@gmail.com
2021-01-19edid-decode: improve Transfer CharacteristicsHans Verkuil1-3/+17
Show actual luminance values instead of just the bytes. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-01-19edid-decode: Clarify Power SequencingHans Verkuil1-6/+6
T4-T6 are Min values only, not ranges. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: val.zapod.vz@gmail.com
2021-01-15edid-decode: check for duplicate CTA data blocksHans Verkuil3-9/+56
CTA-861-H explicitly stated which Data Blocks are allowed to have multiple instances. Fail if duplicate Data Blocks are found where only a single instance is allowed. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-01-15edid-decode: improve RCDB/SLDB checksHans Verkuil5-36/+100
CTA-861-H more clearly described the relationship between the RCDB and SLDB Data Blocks, so implement new checks that verify the correctness of these DBs. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-01-14edid-decode: add support for AMD FreeSync VSDBHans Verkuil1-0/+55
This is all based on educated guesses since no freely available specification for this is available. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-01-11edid-decode: incorporated DisplayID v2.0 Errata E7 changesHans Verkuil3-6/+18
Added support for Display Device Theme Preference. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-30edid-decode: use DTD or T10VTDB for a T7VTDB if possibleHans Verkuil4-0/+57
Check if a T7VTDB can also be represented by a DTD or a T10VTDB. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-30edid-decode: add support for CVT RBv2 and RBv3Hans Verkuil3-20/+42
CVT Reduced Blanking version 2 was never implemented, do this now. Also add support for the new version 3. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-30edid-decode.1: update CTA-861 standard versionHans Verkuil1-1/+1
It's now up to date for CTA-861-H. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-30edid-decode: support VTDBs in VFPDBHans Verkuil3-2/+53
The VFPDB now supports references to VTDBs as well. Add support for this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-30edid-decode: parse new CTA DisplayID Data BlocksHans Verkuil4-16/+158
Add support for DisplayID Types VII, VIII and X to the CTA parser. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-30edid-decode: make check_displayid_datablock_revision() a methodHans Verkuil2-41/+52
This function will be needed in the CTA parser as well, so make this a method of edid_state. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-19edid-decode: drop unnecessary hash calc messageHans Verkuil1-4/+5
If only Dolby TrueHD is supported, then don't check bit 1 regarding the hash calculation, since that applies only to object audio PCM or channel-based PCM. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: SweetLow <sweetlow@tut.by>
2020-12-12edid-decode: also show 3D_Detail_X == 0Hans Verkuil1-1/+1
If 3D_Detail_X was 0 for side-by-side, then nothing was reported about the subsampling, i.e. 'nothing' just implied that any subsampling was supported. Make this explicit and now report 'any subsampling'. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: val.zapod.vz@gmail.com
2020-12-12edid-decode: support Dolby Vendor-Specific Audio Data BlockHans Verkuil1-4/+24
Added support for this VSDB. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-12-12edid-decode: improve MAT reporting, show AFCdvHans Verkuil1-8/+24
The MAT audio format has two bits in the Audio Format Code dependent value, show those. For other audio formats that have an AFCdv, show this value. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: val.zapod.vz@gmail.com
2020-12-12edid-decode: fix dolby vision low latencyHans Verkuil1-1/+1
This bit was inverted, fix that. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: val.zapod.vz@gmail.com
2020-11-28edid-decode: remove the old --extract optionHans Verkuil2-43/+0
This option gave a breakdown of the first block like this: Extracted contents: header: 00 ff ff ff ff ff ff 00 serial number: 22 f0 08 28 01 01 01 01 19 12 version: 01 04 basic params: a5 2f 1e 78 ee chroma info: ce 50 a3 54 4c 99 26 0f 50 54 established: a5 6b 80 standard: 81 40 81 80 95 00 b3 00 a9 00 01 01 01 01 01 01 descriptor 1: 21 39 90 30 62 1a 27 40 68 b0 36 00 d6 2c 11 00 00 1c descriptor 2: 00 00 00 fd 00 30 55 1e 5d 11 04 11 50 d2 f8 58 f0 00 descriptor 3: 00 00 00 fc 00 48 50 20 4c 50 32 32 37 35 77 0a 20 20 descriptor 4: 00 00 00 ff 00 43 4e 43 38 32 35 30 47 53 53 0a 20 20 extensions: 00 checksum: 63 This option was kept for backwards compatibility with the old edid-decode utility, but I never saw the point of such a breakdown. Remove this option. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-11-23edid-decode: all error/warn messages should end with '.'Hans Verkuil5-44/+44
Make sure the message formatting is consistent. Most fail/warn messages ended with a period, but not all. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-11-22edid-decode: drop duplicate assign to t.vsyncHans Verkuil1-1/+0
edid_cvt_mode() assigns t.vsync twice. Drop the first assignment. Reported by val.zapod.vz@gmail.com. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-11-22edid-decode: fix hdmi_vic_to_vic()Hans Verkuil1-1/+1
The edid_hdmi_mode_map array access is off by one, fix this. Reported by val.zapod.vz@gmail.com. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-11-22edid-decode: fix CVT bug in three test EDIDsHans Verkuil3-7575/+6
256-blocks.test, blockmap-128.test and blockmap-255.test all contain a CVT video format of 1920x1079, that should be 1920x1080. Fix this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-11-21edid-decode: add --hide-serial-numbers optionHans Verkuil6-14/+46
If this option is used, then all serial numbers in the human readable output are placed by ... Note that they can still be extracted via the hex dump at the start, but at least it is not easily readable anymore. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

Privacy Policy