]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-dv-timing: avoid rounding twice in gtf hblank calc
authorPrashant Laddha <prladdha@cisco.com>
Fri, 5 Jun 2015 08:13:31 +0000 (05:13 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 9 Jun 2015 20:41:47 +0000 (17:41 -0300)
commitdfb422896ce05ad243f6e65a15bdbd076863736e
tree4454f3fea0c3bbd00990217616dba826ca35bee1
parenta736af9fa6875ba4c2407dfa87635106b75c7dd6
[media] v4l2-dv-timing: avoid rounding twice in gtf hblank calc

Currently, in gtf hblank calculations, the rounding is used twice,
one at intermediate division and one at final state where hblank
is rounded to nearest multiple of twice cell granularity. This
error got introduced in 'commit b56dad1c08fc ("[media]
v4l2-dv-timings: fix rounding in hblank and hsync calculation"),
where it missed combining the rounding step. Correcting the same
in this patch.

Signed-off-by: Prashant Laddha <prladdha@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