From patchwork Sat Dec 20 14:16:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 5522651 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 58F0C9F326 for ; Sat, 20 Dec 2014 14:16:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 664AD2014A for ; Sat, 20 Dec 2014 14:16:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1BF412010C for ; Sat, 20 Dec 2014 14:16:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753012AbaLTOQ0 (ORCPT ); Sat, 20 Dec 2014 09:16:26 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36439 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752821AbaLTOQZ (ORCPT ); Sat, 20 Dec 2014 09:16:25 -0500 Received: by mail-pa0-f52.google.com with SMTP id eu11so2993810pac.25; Sat, 20 Dec 2014 06:16:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=WabvV0Wot6x+J/B0JkdnKWcr/Qr6mJ78XU5GDCNUAZQ=; b=zBHTLsjlDHg+Vut9GNPb4b38Dbzb5+xxs7uDgDC1TdOm2eXH7YqVvMl5XbdLcsP140 tmwMttFoIDIAQ36NcgdQtm9N7NAGa58MhZuXB3JgUcnicc4pd90eAxy6nqj0hrydjziL l5dPnA3317P9wP03lljifcF4C6gNZnBtU0tEjXziVNRKcryz5PhIkCldh5yZVlJR99SU wlioyO/2or9VWnfCcWvn6skzh2Vx4m6fmTNzTEzqQtqVk8tfurv8hJWH8nyN/MfYyKzG q/GAiIhDDW9sfXN3UOlLP+/ckf9oKW8JS77LOkvQlR6fBg+WwEEPRdKj/sc638/MLaqQ gR2A== X-Received: by 10.70.90.10 with SMTP id bs10mr20369634pdb.165.1419084985275; Sat, 20 Dec 2014 06:16:25 -0800 (PST) Received: from localhost.localdomain (KD118152108246.ppp-bb.dion.ne.jp. [118.152.108.246]) by mx.google.com with ESMTPSA id v5sm12611420pdn.20.2014.12.20.06.16.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 20 Dec 2014 06:16:24 -0800 (PST) From: Yoshihiro Kaneko To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Laurent Pinchart , Simon Horman , Magnus Damm , linux-sh@vger.kernel.org Subject: [PATCH/RFC] v4l: vsp1: Add format for Mem2Mem Playback Date: Sat, 20 Dec 2014 23:16:03 +0900 Message-Id: <1419084963-18832-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: Hiroki Negishi Signed-off-by: Hiroki Negishi Signed-off-by: Yoshifumi Hosoya Signed-off-by: Yoshihiro Kaneko --- This patch is based on the master branch of linuxtv.org/media_tree.git. drivers/media/platform/vsp1/vsp1_video.c | 3 +++ include/uapi/linux/videodev2.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c index e512336..9bbc02a 100644 --- a/drivers/media/platform/vsp1/vsp1_video.c +++ b/drivers/media/platform/vsp1/vsp1_video.c @@ -130,6 +130,9 @@ static const struct vsp1_format_info vsp1_video_formats[] = { VI6_FMT_Y_U_V_420, VI6_RPF_DSWAP_P_LLS | VI6_RPF_DSWAP_P_LWS | VI6_RPF_DSWAP_P_WDS | VI6_RPF_DSWAP_P_BTS, 3, { 8, 8, 8 }, false, false, 2, 2, false }, + { V4L2_PIX_FMT_RGB32S, MEDIA_BUS_FMT_ARGB8888_1X32, + VI6_FMT_ARGB_8888, VI6_RPF_DSWAP_P_LLS | VI6_RPF_DSWAP_P_LWS, + 1, { 32, 0, 0 }, false, false, 1, 1, false }, }; /* diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index d279c1b..f22e167 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -396,6 +396,9 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_ARGB32 v4l2_fourcc('B', 'A', '2', '4') /* 32 ARGB-8-8-8-8 */ #define V4L2_PIX_FMT_XRGB32 v4l2_fourcc('B', 'X', '2', '4') /* 32 XRGB-8-8-8-8 */ +/* RGB formats for memory output */ +#define V4L2_PIX_FMT_RGB32S v4l2_fourcc('R', 'G', '4', 'S') /* 32 RGB-8-8-8-8 */ + /* Grey formats */ #define V4L2_PIX_FMT_GREY v4l2_fourcc('G', 'R', 'E', 'Y') /* 8 Greyscale */ #define V4L2_PIX_FMT_Y4 v4l2_fourcc('Y', '0', '4', ' ') /* 4 Greyscale */