[PATCH] edid-decode: fix horizontal front porch for CVT RBv2

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

 



According to CVT 2.0 table 3-2, C_H_FRONT_PORCH is 8 for both
RBv2 and RBv3.

Signed-off-by: Simon Ser <contact@xxxxxxxxxxx>
---
 calc-gtf-cvt.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calc-gtf-cvt.cpp b/calc-gtf-cvt.cpp
index 6330bb7ac814..7d53ad9625a1 100644
--- a/calc-gtf-cvt.cpp
+++ b/calc-gtf-cvt.cpp
@@ -232,7 +232,7 @@ timings edid_state::calc_cvt_mode(unsigned h_pixels, unsigned v_lines,
 	t.vfp = v_blank - t.vbp - t.vsync;
 	t.pixclk_khz = round(1000.0 * pixel_freq);
 	t.hsync = h_sync;
-	if (rb == RB_CVT_V3)
+	if (rb >= RB_CVT_V2)
 		t.hfp = 8;
 	else
 		t.hfp = (h_blank / 2.0) - t.hsync;

base-commit: f1ff7ad7bcb2fbb85017bbb2baa6bed37c412895
-- 
2.38.1






[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