[media] v4l2-dv-timings: Compare horizontal blanking
authorMats Randgaard <matrandg@cisco.com>
Thu, 12 Nov 2015 12:34:55 +0000 (10:34 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 16:39:34 +0000 (14:39 -0200)
hsync and hbackporch must also be compared

Signed-off-by: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-dv-timings.c

index 6a83d61916840347387f8fa454bbe18e1c3d6f57..edb4125d1018fa3846b352de9611a729c9fe8d54 100644 (file)
@@ -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 &&