From patchwork Mon Dec 18 12:03:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 10118949 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 50A246019C for ; Mon, 18 Dec 2017 12:05:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41CD82885F for ; Mon, 18 Dec 2017 12:05:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34EC72886A; Mon, 18 Dec 2017 12:05:28 +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=unavailable 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 D39FB287AD for ; Mon, 18 Dec 2017 12:05:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758740AbdLRMEk (ORCPT ); Mon, 18 Dec 2017 07:04:40 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35219 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758737AbdLRMEh (ORCPT ); Mon, 18 Dec 2017 07:04:37 -0500 Received: by mail-pg0-f65.google.com with SMTP id q20so9081028pgv.2; Mon, 18 Dec 2017 04:04:37 -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=V4AnXfiFWJjFRMnTqj3J7KAyckDun51sJO2DwnVokJE=; b=Y4TBqta3b/ezD/zD2PayTaA0VUE8hyrZP60zOk5bfurQT6cP/19XTWK2GnsjHt2Q4W ysuhfB0HKPYpDQpqjVYz2yxcOoVd7bMQDJ4kLnwvhcLyyhmq9sBwwrQciFsGQ0BE3zrz cGQeZ3H1lWSQ6i+6dmmvtsSty13Lm7jhoz5A2b8r4D2MdiT8b8g+FgUiIVr+kBybP8T2 +XVzAj4+cObFWK62ZAd24QO5fLWXXEmDNHG5ynn+g+L5eWKodW+MAATu8LYXlI+HLp0k SSgNJ0XfAayv9lXZnNck5n3Ppt37Bdx4t2IDVqzQ6arL+F8HJBtRZp2eUry14l4Dovs3 qnWg== X-Gm-Message-State: AKGB3mLbGhMZIoNg7LPO9zXOSkqRJEJIq33PnetULdXQygbkbzUvMNRB ixard6Fz25aWdwMQbMdEWl0= X-Google-Smtp-Source: ACJfBoujuvvMcLZKkQf5mbm8ysfHk/uDDCBcQwXnFf7aZcwEd86lfOlYmD3COlYgX/4oPKrpOReP3w== X-Received: by 10.101.81.73 with SMTP id g9mr19683502pgq.137.1513598677212; Mon, 18 Dec 2017 04:04:37 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id w12sm21290601pge.59.2017.12.18.04.04.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 04:04:36 -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, allon.huang@rock-chips.com, devicetree@vger.kernel.org, heiko@sntech.de, robh+dt@kernel.org, Joao.Pinto@synopsys.com, Luis.Oliveira@synopsys.com, Jose.Abreu@synopsys.com, Jacob Chen Subject: [PATCH v4 01/16] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format Date: Mon, 18 Dec 2017 20:03:05 +0800 Message-Id: <20171218120320.3850-2-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171218120320.3850-1-jacob-chen@iotwrt.com> References: <20171218120320.3850-1-jacob-chen@iotwrt.com> 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 7c871291c1fa..961545e64c12 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -691,6 +691,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