diff options
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2018-12-06 15:24:43 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2018-12-06 15:24:43 +0100
commit6def7bc83dfb0338632e06a8b14c93faa6af8879 (patch)
parent5eeb151a748788666534d6ea3da07f90400d24c2 (diff)
edid-decode: make it easier to find the out-of-range monitor values
When the EDID is checked, it verifies if all the modes listed fit within the ranges reported by the monitor. It warns if that is not the case, but fails to show the actual monitor ranges. By adding that information it is much easier to find which monitor range needs to be extended. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 files changed, 8 insertions, 3 deletions
diff --git a/edid-decode.c b/edid-decode.c
index 9e64efb..e53ee0d 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -3241,9 +3241,14 @@ static int edid_from_file(const char *from_file, const char *to_file,
printf("Warning: ");
printf("One or more of the timings is out of range of the Monitor Ranges:\n");
- printf(" Vertical Freq: %d - %d Hz\n", min_vert_freq_hz, max_vert_freq_hz);
- printf(" Horizontal Freq: %d - %d Hz\n", min_hor_freq_hz, max_hor_freq_hz);
- printf(" Maximum Clock: %.3f MHz\n", max_pixclk_khz / 1000.0);
+ printf(" Vertical Freq: %d - %d Hz (Monitor: %d - %d Hz)\n",
+ min_vert_freq_hz, max_vert_freq_hz,
+ mon_min_vert_freq_hz, mon_max_vert_freq_hz);
+ printf(" Horizontal Freq: %d - %d Hz (Monitor: %d - %d Hz)\n",
+ min_hor_freq_hz, max_hor_freq_hz,
+ mon_min_hor_freq_hz, mon_max_hor_freq_hz);
+ printf(" Maximum Clock: %.3f MHz (Monitor: %.3f MHz)\n",
+ max_pixclk_khz / 1000.0, mon_max_pixclk_khz / 1000.0);
if (nonconformant_extension ||

Privacy Policy