From patchwork Tue Oct 14 06:24:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 5078041 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 2490DC11AC for ; Tue, 14 Oct 2014 06:25:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B3AD20120 for ; Tue, 14 Oct 2014 06:25:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 537A120142 for ; Tue, 14 Oct 2014 06:25:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754431AbaJNGZA (ORCPT ); Tue, 14 Oct 2014 02:25:00 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:51146 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753373AbaJNGZA (ORCPT ); Tue, 14 Oct 2014 02:25:00 -0400 Received: by mail-pd0-f175.google.com with SMTP id v10so6914519pde.20 for ; Mon, 13 Oct 2014 23:24:59 -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=BbN0V62bvyK29Pyu46+OWIZ3mi6/TlMm7N03oZUjCL8=; b=IbNIIFgS2pVMwtYUx+u9k/MMIs7Enxj46c5GISRiFwkRjiq6hq9vIkdt7+3GLZBFAl mpQpBu2ez4fgtgQjf+VOcANijntCNUsZ3VS9Js+1/WtxNXdRYTV0qyemdu1VFkhj1UW0 9z/nqy8Rv4m6O3W925QoQ0nMHqfEuV+Vdt3uwXZPtBIB9HlmCvtAWz4OAk9Mkai0eKcm yTkR16otXpghjVAnOocAcmtj9b1bUTXggBHS1AMexa/ZT8qaF1mLJAp7J1XvddjMAOAx QNJuh+GwHXLYrxYkVLvGvJwrM3NxCyS9qlyJwq4YU7+eij0u9NATEtNg9kZlDD7g4UH4 Byig== X-Received: by 10.70.38.165 with SMTP id h5mr3020634pdk.121.1413267899776; Mon, 13 Oct 2014 23:24:59 -0700 (PDT) Received: from localhost.localdomain (p5095-ipngn6701marunouchi.tokyo.ocn.ne.jp. [153.174.4.95]) by mx.google.com with ESMTPSA id uc7sm13017579pbc.10.2014.10.13.23.24.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Oct 2014 23:24:59 -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: Add YUYV capture format support Date: Tue, 14 Oct 2014 15:24:38 +0900 Message-Id: <1413267878-8222-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 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index 7eb4f1e..61c36b0 100644 --- a/drivers/media/platform/soc_camera/rcar_vin.c +++ b/drivers/media/platform/soc_camera/rcar_vin.c @@ -889,6 +889,14 @@ static const struct soc_mbus_pixelfmt rcar_vin_formats[] = { .layout = SOC_MBUS_LAYOUT_PLANAR_Y_C, }, { + .fourcc = V4L2_PIX_FMT_YUYV, + .name = "YUYV", + .bits_per_sample = 16, + .packing = SOC_MBUS_PACKING_NONE, + .order = SOC_MBUS_ORDER_LE, + .layout = SOC_MBUS_LAYOUT_PACKED, + }, + { .fourcc = V4L2_PIX_FMT_UYVY, .name = "UYVY", .bits_per_sample = 16,