Received: by 10.223.185.116 with SMTP id b49csp6114108wrg; Thu, 8 Mar 2018 01:57:45 -0800 (PST) X-Google-Smtp-Source: AG47ELtp8LF1d4go5s0WT8P8XB38eoW++d3VT4Nr5wTfZTsf1xtaNhkmOKY61HYAnMd8eeWpV/vH X-Received: by 10.101.100.144 with SMTP id e16mr21166719pgv.315.1520503064945; Thu, 08 Mar 2018 01:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520503064; cv=none; d=google.com; s=arc-20160816; b=03+aZOH++ONk+fYiVsK6Phe8VwzGEZ8jYv2VYRovHajADNKf67+U7sfSC2rrDSknJ8 8yG2NM9ytIcN4oEDxFPx09uqIp11DuJ0GRMWCPN96+yJjBi6SaQavIaseyveEWYNdcdH ol8PZuyPhyAm+/1x6tHtNO81J0ISkYZBdF+WsjKX7YLJLYqrPiZpqdT1G3aSfdrBZAaM fMWlW/3K36BIKUWS6dumnrJFl7KDOAisapkMI2CaQKGuAIf2rPf+RnE4890JG4kXuU+0 vWE/X+TUzXAc9bwLuUccXX7uce+mUG/HMcfvOFPrm2CluVAX/iQu60wH2NyeW+GKcmwj c6ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=1zJp1CMp3MwcKSiX8vUKTdiwkCAltq6E3Sfn1KzI/8Q=; b=n2aFcxjujTN72s+HqOr5yqplFmQ0/Igex+vyqHmBw7Qbd2tBNC0Ku8BWQ6F13wllMx UVZfLzzLX511SeGvmEtF4Y7gaVtzI4+HqTSquSsQFCJy9pkOvU0O7EYUgl/7Jl9ceHvl u2kR9akB1lm00l/Dc2u9Bd4U4oj7lalXUApyHqL2ernqP2ZmW3xI+NOKrBYXe8Xkml6j Sc162bvp2xvWyAAx+oV/in5iY/Q3oHvAC5br08aJ9aW/AlcK91pWkatCPt3d/cik9LBm 1A8ckPijiqzeGy9rqKtPV4wSf23XEpu09RS36XXeDz8v1umQaYFvZpCxcybwdi6c/pSH D5qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si12765733pga.1.2018.03.08.01.57.30; Thu, 08 Mar 2018 01:57:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755835AbeCHJy6 (ORCPT + 99 others); Thu, 8 Mar 2018 04:54:58 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36422 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935177AbeCHJso (ORCPT ); Thu, 8 Mar 2018 04:48:44 -0500 Received: by mail-pg0-f67.google.com with SMTP id i14so2033826pgv.3; Thu, 08 Mar 2018 01:48:44 -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:in-reply-to :references; bh=1zJp1CMp3MwcKSiX8vUKTdiwkCAltq6E3Sfn1KzI/8Q=; b=Nsg9TiA4QNAnEXVJh8GnKF3ssSj0dI4Hu/uWqJXQC7GqFB5ecrT20Kf2feOqqumqpV 1bJjL9674Ks3fFkRKyhYAEox4ThpBtWWa4dDhLGjJJvdrxm61nEmDJo1DjAbBLwwBbkm Ad+U7motW36j43vU7CwKu0Fnq9Vud5slWnL2g6CH1RXl+J79x1hXE7miTmALYqP6utrw qgozcjGWw15j12oZGENdwTDPbcCsWrIKc51s1zm152ovVVSmxdT+s2HsCBJIPfsePN/1 pFi6DhrwteYXFdZnzZN99UI2lTDuMAhYi37Dkz0YYV7cBWt/SNnqwjJsPXVh5jY1e49Y jjNw== X-Gm-Message-State: APf1xPBqLYsv9/J3uay+lBffyhUdNmjL0Y/OTwslP+T+DFKoB0c0qOdp 7VEVsL+p9msqbdXYLzqqrkE= X-Received: by 10.99.101.69 with SMTP id z66mr20887072pgb.347.1520502523742; Thu, 08 Mar 2018 01:48:43 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id k66sm40411663pfb.123.2018.03.08.01.48.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 01:48:43 -0800 (PST) From: Jacob Chen To: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mchehab@kernel.org, linux-media@vger.kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, tfiga@chromium.org, zhengsq@rock-chips.com, laurent.pinchart@ideasonboard.com, zyc@rock-chips.com, eddie.cai.linux@gmail.com, jeffy.chen@rock-chips.com, devicetree@vger.kernel.org, heiko@sntech.de, Jacob Chen Subject: [PATCH v6 01/17] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format Date: Thu, 8 Mar 2018 17:47:51 +0800 Message-Id: <20180308094807.9443-2-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180308094807.9443-1-jacob-chen@iotwrt.com> References: <20180308094807.9443-1-jacob-chen@iotwrt.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Hans Verkuil --- 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 1be54429d601..bdd469290d66 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1257,6 +1257,8 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) 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_UVC: descr = "UVC payload header metadata"; 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 e20d10df75c1..359ad8bbf9bf 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -698,6 +698,10 @@ struct v4l2_pix_format { #define V4L2_META_FMT_VSP1_HGT v4l2_fourcc('V', 'S', 'P', 'T') /* R-Car VSP1 2-D Histogram */ #define V4L2_META_FMT_UVC v4l2_fourcc('U', 'V', 'C', 'H') /* UVC Payload Header metadata */ +/* 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 -- 2.16.1