From patchwork Tue Oct 14 06:25:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 5078081 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E0FD4C11AC for ; Tue, 14 Oct 2014 06:26:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1E4B20121 for ; Tue, 14 Oct 2014 06:26:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA35920120 for ; Tue, 14 Oct 2014 06:26:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754816AbaJNG0L (ORCPT ); Tue, 14 Oct 2014 02:26:11 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:62090 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754419AbaJNG0K (ORCPT ); Tue, 14 Oct 2014 02:26:10 -0400 Received: by mail-pd0-f180.google.com with SMTP id fp1so6831068pdb.25 for ; Mon, 13 Oct 2014 23:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/VrU1vZx9LsgcUfvOyVcmt3/9I66dogLb7YrVpZfcJA=; b=HWhvVMkrbEWRzXXahHfdYbtzR6CrUhGdW3C/xHSMeti+aa4D0K1c00sYUiRD5eqHKY bP8kIZFh3/2jA3eW/icKCuKXyDRKQdiLFfZuc7Hln544X3c43emppMKiMYr/3d9NVhgV s+XI1FaV64Y3YLWnA/7afUoYjCBdotQ0pN2f2/59Zy3cW2Ii0FhBM00Td/MySHHagZQn vRAvqzPSQcmpucMr88pSDwrauZZneZzcD2VqnVeU1vyzqvHEdF1WbOCmJbBapYnUWzP/ lxAZKgLILuNYSL/32qDCFHZp1Krwux2vaMlQ4z5I7Cn+bbxKEeZMCQitnMpwcV3KqLt/ kEww== X-Received: by 10.66.249.66 with SMTP id ys2mr95028pac.143.1413267970153; Mon, 13 Oct 2014 23:26:10 -0700 (PDT) Received: from localhost.localdomain (p5095-ipngn6701marunouchi.tokyo.ocn.ne.jp. [153.174.4.95]) by mx.google.com with ESMTPSA id mp5sm12994804pbc.33.2014.10.13.23.26.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Oct 2014 23:26:09 -0700 (PDT) From: Yoshihiro Kaneko To: linux-media@vger.kernel.org Cc: Guennadi Liakhovetski , Simon Horman , Magnus Damm , linux-sh@vger.kernel.org Subject: [PATCH] media: soc_camera: rcar_vin: Enable VSYNC field toggle mode Date: Tue, 14 Oct 2014 15:25:56 +0900 Message-Id: <1413267956-8342-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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: Koji Matsuoka By applying this patch, it sets to VSYNC field toggle mode not only at the time of progressive mode but at the time of an interlace mode. Signed-off-by: Koji Matsuoka Signed-off-by: Yoshihiro Kaneko Acked-by: Simon Horman --- This patch is against master branch of linuxtv.org/media_tree.git. drivers/media/platform/soc_camera/rcar_vin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index 5196c81..bf97ed6 100644 --- a/drivers/media/platform/soc_camera/rcar_vin.c +++ b/drivers/media/platform/soc_camera/rcar_vin.c @@ -108,6 +108,7 @@ #define VNDMR2_VPS (1 << 30) #define VNDMR2_HPS (1 << 29) #define VNDMR2_FTEV (1 << 17) +#define VNDMR2_VLV_1 (1 << 12) #define VIN_MAX_WIDTH 2048 #define VIN_MAX_HEIGHT 2048 @@ -828,7 +829,7 @@ static int rcar_vin_set_bus_param(struct soc_camera_device *icd) if (ret < 0 && ret != -ENOIOCTLCMD) return ret; - val = priv->field == V4L2_FIELD_NONE ? VNDMR2_FTEV : 0; + val = VNDMR2_FTEV | VNDMR2_VLV_1; if (!(common_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW)) val |= VNDMR2_VPS; if (!(common_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW))