media: v4l2-dv-timings: Introduce v4l2_calc_timeperframe helper
authorJose Abreu <Jose.Abreu@synopsys.com>
Tue, 21 Mar 2017 11:49:17 +0000 (07:49 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 14:02:45 +0000 (10:02 -0400)
commit87f9ed85d0f93fcc810dd7081e5f1a883940fab6
treeaf7aa19bbe49aecdf3e7162d524f77a0b1019741
parentf992cee5ef9769f8a804d155e4451980cc96c855
media: v4l2-dv-timings: Introduce v4l2_calc_timeperframe helper

A new helper function was introduced to facilitate the calculation
of time per frame value whenever we have access to the full
v4l2_dv_timings structure.

This should be used only for receivers and only when there is
enough accuracy in the measured pixel clock value as well as in
the horizontal/vertical values.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-dv-timings.c
include/media/v4l2-dv-timings.h