[media] vivid: Use interlaced info for cvt/gtf timing detection
authorPrashant Laddha <prladdha@cisco.com>
Fri, 22 May 2015 05:27:35 +0000 (02:27 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 9 Jun 2015 20:45:05 +0000 (17:45 -0300)
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>
drivers/media/platform/vivid/vivid-vid-cap.c

index d83bdf7df1949bfba8a0751dafa29a8e94cbf71d..c4268d1b2f82b50dcfbffd913606904b473fb062 100644 (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 (v4l2_detect_cvt(total_v_lines, h_freq, bt->vsync,
-                                   bt->polarities, false, timings))
+                                   bt->polarities, bt->interlaced, timings))
                        return true;
        }
 
@@ -1639,7 +1639,7 @@ static bool valid_cvt_gtf_timings(struct v4l2_dv_timings *timings)
                                  &aspect_ratio.numerator,
                                  &aspect_ratio.denominator);
                if (v4l2_detect_gtf(total_v_lines, h_freq, bt->vsync,
-                                   bt->polarities, false,
+                                   bt->polarities, bt->interlaced,
                                    aspect_ratio, timings))
                        return true;
        }