Return-path: Received: from bgl-iport-4.cisco.com ([72.163.197.28]:49353 "EHLO bgl-iport-4.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756267AbbEVF1h (ORCPT ); Fri, 22 May 2015 01:27:37 -0400 From: Prashant Laddha To: linux-media@vger.kernel.org Cc: Hans Verkuil , Martin Bugge , Mats Randgaard , Laurent Pinchart , Prashant Laddha Subject: [RFC PATCH v2 3/4] adv7604: Use interlaced info for cvt/gtf timing detection Date: Fri, 22 May 2015 10:57:36 +0530 Message-Id: <1432272457-709-4-git-send-email-prladdha@cisco.com> In-Reply-To: <1432272457-709-1-git-send-email-prladdha@cisco.com> References: <1432272457-709-1-git-send-email-prladdha@cisco.com> Sender: linux-media-owner@vger.kernel.org List-ID: The interlaced information from stdi is passed to detect_cvt/gtf(). These functions now supports timing calculations for interlaced format. Cc: Hans Verkuil Cc: Martin Bugge Cc: Mats Randgaard Cc: Laurent Pinchart Signed-off-by: Prashant Laddha --- drivers/media/i2c/adv7604.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index f4ecb73..d290f7a 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -1323,12 +1323,12 @@ static int stdi2dv_timings(struct v4l2_subdev *sd, if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), - false, timings)) + stdi->interlaced, timings)) return 0; if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs, (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), - false, state->aspect_ratio, timings)) + stdi->interlaced, state->aspect_ratio, timings)) return 0; v4l2_dbg(2, debug, sd, -- 1.9.1