[media] vivid: Use interlaced info for cvt/gtf timing detection

The detect_cvt/gtf() now supports timing calculations for interlaced
format.

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>
This commit is contained in:
Prashant Laddha 2015-05-22 02:27:35 -03:00 committed by Mauro Carvalho Chehab
parent 061ddda681
commit d0154d83a8

View File

@ -1628,7 +1628,7 @@ static bool valid_cvt_gtf_timings(struct v4l2_dv_timings *timings)
if (bt->standards == 0 || (bt->standards & V4L2_DV_BT_STD_CVT)) { if (bt->standards == 0 || (bt->standards & V4L2_DV_BT_STD_CVT)) {
if (v4l2_detect_cvt(total_v_lines, h_freq, bt->vsync, if (v4l2_detect_cvt(total_v_lines, h_freq, bt->vsync,
bt->polarities, false, timings)) bt->polarities, bt->interlaced, timings))
return true; return true;
} }
@ -1639,7 +1639,7 @@ static bool valid_cvt_gtf_timings(struct v4l2_dv_timings *timings)
&aspect_ratio.numerator, &aspect_ratio.numerator,
&aspect_ratio.denominator); &aspect_ratio.denominator);
if (v4l2_detect_gtf(total_v_lines, h_freq, bt->vsync, if (v4l2_detect_gtf(total_v_lines, h_freq, bt->vsync,
bt->polarities, false, bt->polarities, bt->interlaced,
aspect_ratio, timings)) aspect_ratio, timings))
return true; return true;
} }