]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] v4l2-dv-timings: only check standards if non-zero
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 20 Sep 2014 10:36:38 +0000 (07:36 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:40:33 +0000 (20:40 -0300)
commitc166845c9c452e9639a2e8b44581ce95942e89a5
treeea6c4c9102317a2ab293b0a449e460f89dffd117
parent62f28725a8dc5c16d3d63606f046899ae41fcf4a
[media] v4l2-dv-timings: only check standards if non-zero

If one or both of the timings being compared have the standards field
with value 0, then accept that. Only check for matching standards if
both timings have actually filled in that field.

Otherwise no match will ever be found since when timings are detected
the standards field will typically be set to 0 by the driver.

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