Skip to contentSkip to conversation

v4l2-dv-timings: Compare horizontal blanking

PATCH New [email protected] 1 participant 1 message Nov 12, 2015 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l2-dv-timings: Compare horizontal blanking

From: Mats Randgaard <[email protected]>

hsync and hbackporch must also be compared

---
 drivers/media/v4l2-core/v4l2-dv-timings.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/media/v4l2-core/v4l2-dv-timings.c +2 -0
index 6a83d61..edb4125 100644
@@ -239,6 +239,8 @@ bool v4l2_match_dv_timings(const struct v4l2_dv_timings *t1,
 	    t1->bt.pixelclock >= t2->bt.pixelclock - pclock_delta &&
 	    t1->bt.pixelclock <= t2->bt.pixelclock + pclock_delta &&
 	    t1->bt.hfrontporch == t2->bt.hfrontporch &&
+	    t1->bt.hsync == t2->bt.hsync &&
+	    t1->bt.hbackporch == t2->bt.hbackporch &&
 	    t1->bt.vfrontporch == t2->bt.vfrontporch &&
 	    t1->bt.vsync == t2->bt.vsync &&
 	    t1->bt.vbackporch == t2->bt.vbackporch &&
Signature · 1 line
2.5.0