summaryrefslogtreecommitdiff
path: root/fs/bfs
diff options
context:
space:
mode:
authorPrashant Laddha <prladdha@cisco.com>2015-04-22 17:32:34 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-01 10:14:02 (GMT)
commitf67476589afc9a4a48bc342f1b5f505b508bd1ff (patch)
treedc402509bceed35ddf256a3dbda258d7702faf8e /fs/bfs
parentef403bcaf16b704b772cf33cc2871fb8693d3bb3 (diff)
downloadlinux-f67476589afc9a4a48bc342f1b5f505b508bd1ff.tar.xz
[media] v4l2-dv-timings: fix rounding error in vsync_bp calculation
Changed the rounding offsets used in vsync_bp calculation in cvt and gtf timings. The results for vsync_bp should now match with results from timing generator spreadsheets for cvt and gtf standards. In the vsync_bp calculation for cvt, always round down the value of (CVT_MIN_VSYNC_BP / h_period_est) and then add 1. It thus, reflects the equation used in timing generator spreadsheet. Using 1999999 as rounding offset, could pontentially lead to bumping up the vsync_bp value by extra 1. In the vsync_bp calculations for gtf, instead of round up or round down, round the (CVT_MIN_VSYNC_BP / h_period_est) to the nearest integer. Thanks to Martin Bugge <marbugge@cisco.com> for validating with standards and suggestions on equations. Cc: Martin Bugge <marbugge@cisco.com> 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>
Diffstat (limited to 'fs/bfs')
0 files changed, 0 insertions, 0 deletions