From patchwork Thu Nov 12 12:34:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matrandg@cisco.com X-Patchwork-Id: 7601931 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 50AA49F1D3 for ; Thu, 12 Nov 2015 12:44:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 800632078B for ; Thu, 12 Nov 2015 12:44:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AAD4F2077E for ; Thu, 12 Nov 2015 12:44:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752641AbbKLMov (ORCPT ); Thu, 12 Nov 2015 07:44:51 -0500 Received: from aer-iport-3.cisco.com ([173.38.203.53]:54170 "EHLO aer-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564AbbKLMou (ORCPT ); Thu, 12 Nov 2015 07:44:50 -0500 X-Greylist: delayed 591 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Nov 2015 07:44:50 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=964; q=dns/txt; s=iport; t=1447332290; x=1448541890; h=from:to:cc:subject:date:message-id; bh=GIT59Qh2gGnM3YU2N0BtPSB4aKVpTyFDL8w2YUU3k5c=; b=OPkB0hNgoi0eigqWJlncVfMw5+KK3xB2VB32qTSn/9YjYPF4kZwGxgAO AZjLXwAT4xfeOBRA5CjQ4DF9SKqp118hqnmjBzl5yb/xw0CN0FFcZtSLB dt3tAhTewGPeBBln7/MxA81ffsdGLnO9VG81v1GMiIJ0QR6OqsZvltjuH Q=; X-IronPort-AV: E=Sophos;i="5.20,281,1444694400"; d="scan'208";a="606276878" Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Nov 2015 12:34:58 +0000 Received: from mrapc.cisco.com (dhcp-10-54-92-39.cisco.com [10.54.92.39]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id tACCYwLA010832; Thu, 12 Nov 2015 12:34:58 GMT From: matrandg@cisco.com To: linux-media@vger.kernel.org Cc: Mats Randgaard Subject: [PATCH] v4l2-dv-timings: Compare horizontal blanking Date: Thu, 12 Nov 2015 13:34:55 +0100 Message-Id: <1447331695-22322-1-git-send-email-matrandg@cisco.com> X-Mailer: git-send-email 2.5.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-14.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mats Randgaard hsync and hbackporch must also be compared Signed-off-by: Mats Randgaard --- drivers/media/v4l2-core/v4l2-dv-timings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-dv-timings.c b/drivers/media/v4l2-core/v4l2-dv-timings.c index 6a83d61..edb4125 100644 --- a/drivers/media/v4l2-core/v4l2-dv-timings.c +++ b/drivers/media/v4l2-core/v4l2-dv-timings.c @@ -239,6 +239,8 @@ bool v4l2_match_dv_timings(const struct v4l2_dv_timings *t1, t1->bt.pixelclock >= t2->bt.pixelclock - pclock_delta && t1->bt.pixelclock <= t2->bt.pixelclock + pclock_delta && t1->bt.hfrontporch == t2->bt.hfrontporch && + t1->bt.hsync == t2->bt.hsync && + t1->bt.hbackporch == t2->bt.hbackporch && t1->bt.vfrontporch == t2->bt.vfrontporch && t1->bt.vsync == t2->bt.vsync && t1->bt.vbackporch == t2->bt.vbackporch &&