[PATCH 03/10] edid-decode: correct calculation of DisplayID type 1 timings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix DisplayID type 1 timing calculations which is missing the +1 increment for pix_clock,ha,hbl,hso,hspw,va,vbl,vso,vspw.

Signed-off-by: Joe van Tunen <joevt@xxxxxxx>
---
 edid-decode.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/edid-decode.c b/edid-decode.c
index b2e57a3..e1386ce 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -2550,6 +2550,18 @@ static void parse_displayid_detailed_timing(const unsigned char *x)
 	vspw = x[18] | (x[19] << 8);
 	pvsync = ((x[17] >> 7) & 0x1 ) ? '+' : '-';
 
+	pix_clock++;
+
+	ha++;
+	hbl++;
+	hso++;
+	hspw++;
+	
+	va++;
+	vbl++;
+	vso++;
+	vspw++;
+	
 	printf("  Detailed mode: Clock %.3f MHz, %u mm x %u mm\n"
 	       "                 %4u %4u %4u %4u\n"
 	       "                 %4u %4u %4u %4u\n"
-- 
2.21.0 (Apple Git-122.2)




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux