From patchwork Wed Nov 15 07:31:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 10058915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0439601D3 for ; Wed, 15 Nov 2017 07:31:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B328E299BB for ; Wed, 15 Nov 2017 07:31:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A654A29DCF; Wed, 15 Nov 2017 07:31:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54F90299BB for ; Wed, 15 Nov 2017 07:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752684AbdKOHbm (ORCPT ); Wed, 15 Nov 2017 02:31:42 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:50254 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750998AbdKOHbl (ORCPT ); Wed, 15 Nov 2017 02:31:41 -0500 Received: by mail-pg0-f67.google.com with SMTP id u3so2253467pgn.7; Tue, 14 Nov 2017 23:31:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HTVjipECmACDUzLNhX/v8fdtRiASSWDA0LyQaRxohRc=; b=tF+WcT5wciBk869Us/9pKvh5OQtvMSKkPbJPViHZfH0HuqkSYVJwjj4Kc5LG3vs89O OkDADvqLOAoKgjTsXw9RlXgU939iPzgIPwXDjPsnm/sHwLXI3M3CxtRzobW/iuF2n9+a NqCK9hNo/WhqmZu4IB3DVUUh+N/o5Arwuc/94NsgmhcuhWOBzrDQvx67MvaTv+friDkv mMD/GcQiDZa4rRcetv5azA/dl+zG09s+E1QezxkoQPmQtAnvJc12f2DiLsO+m+XU0Jh2 ZkxFphtZVuaKeH5EBLvkOuoGuaiLXAaGH/D1LS4yKRRY+yy3StghDfXm/5b+xsIE/Wyx F1Lg== X-Gm-Message-State: AJaThX7SDbCDLw33xkRbqC8FuZXMIbIKDwe4i4U7ZFZv1i782q/khOpy GWWcqELTUBVQDsHN6US1tVw= X-Google-Smtp-Source: AGs4zMaedQlO8p0NHmaOF/PJMK0Vas0/ydWAN8aRsiQ1SICa5I52JCk1rRMLLTTsSYFSksqoTof/eg== X-Received: by 10.98.34.199 with SMTP id p68mr9344572pfj.241.1510731100600; Tue, 14 Nov 2017 23:31:40 -0800 (PST) Received: from localhost.localdomain ([2401:fa00:1:fd00:692d:ab5f:79a7:543a]) by smtp.gmail.com with ESMTPSA id 140sm12609690pgd.85.2017.11.14.23.31.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Nov 2017 23:31:39 -0800 (PST) From: Jacob Chen To: linux-rockchip@lists.infradead.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, heiko@sntech.de, mchehab@kernel.org, laurent.pinchart+renesas@ideasonboard.com, hans.verkuil@cisco.com, tfiga@chromium.org, nicolas@ndufresne.ca, sakari.ailus@linux.intel.com, zhengsq@rock-chips.com, zyc@rock-chips.com, eddie.cai.linux@gmail.com, jeffy.chen@rock-chips.com, allon.huang@rock-chips.com, p.zabel@pengutronix.de, slongerbeam@gmail.com, linux@armlinux.org.uk, Jacob Chen Subject: [RFC PATCH 1/5] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format Date: Wed, 15 Nov 2017 15:31:28 +0800 Message-Id: <20171115073132.30123-1-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.14.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Shunqian Zheng Add the Rockchip ISP1 specific processing parameter format V4L2_META_FMT_RK_ISP1_PARAMS and metadata format V4L2_META_FMT_RK_ISP1_STAT_3A for 3A. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index d6587b3ec33e..0604ae9ea444 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1252,6 +1252,8 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) case V4L2_TCH_FMT_TU08: descr = "8-bit unsigned touch data"; break; case V4L2_META_FMT_VSP1_HGO: descr = "R-Car VSP1 1-D Histogram"; break; case V4L2_META_FMT_VSP1_HGT: descr = "R-Car VSP1 2-D Histogram"; break; + case V4L2_META_FMT_RK_ISP1_PARAMS: descr = "Rockchip ISP1 3A params"; break; + case V4L2_META_FMT_RK_ISP1_STAT_3A: descr = "Rockchip ISP1 3A statistics"; break; default: /* Compressed formats */ diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index e507b29ba1e0..14efa6513126 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -690,6 +690,10 @@ struct v4l2_pix_format { #define V4L2_META_FMT_VSP1_HGO v4l2_fourcc('V', 'S', 'P', 'H') /* R-Car VSP1 1-D Histogram */ #define V4L2_META_FMT_VSP1_HGT v4l2_fourcc('V', 'S', 'P', 'T') /* R-Car VSP1 2-D Histogram */ +/* Vendor specific - used for IPU3 camera sub-system */ +#define V4L2_META_FMT_RK_ISP1_PARAMS v4l2_fourcc('R', 'K', '1', 'P') /* Rockchip ISP1 params */ +#define V4L2_META_FMT_RK_ISP1_STAT_3A v4l2_fourcc('R', 'K', '1', 'S') /* Rockchip ISP1 3A statistics */ + /* priv field value to indicates that subsequent fields are valid. */ #define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe