From patchwork Thu Feb 27 07:27:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keke Li via B4 Relay X-Patchwork-Id: 13993825 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7673B2222A6; Thu, 27 Feb 2025 07:27:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740641238; cv=none; b=FVBq50Tp0CZ0pmJqJWpHdfBe0ACsiSSWMI4E488gJ+JdbDeWl9dF0oibIjrjjJCD2Rzt1XNWAAI4+AN36RPOoNjmhoqxYeQUdRp4CzYrScneuE4gq606gblEKfZeibKNEaY3Rgxtr1jy0aTOYczJz2zW96271WgBwWALErknUPI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740641238; c=relaxed/simple; bh=5oeOMOKThBWI2/P4skWHUnP9a3onmPHropSVB3FcGzg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hz9+3L66a5vTDrAmmRYItWtvi4W7rjjUh4r7RhgZ4ki2wqaQO5Ka/bJAAOFazGIgCADtujoJdXqz1HwCLO75Vy8hbnCccCjd0XpDwtkrD6SsjGuS2ll1uD6zgBVYWhelvknBGbeoIytmj99XQ8YtbG8qPOGUQ5MQqY4eyiH1/9w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hFP+HdJJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hFP+HdJJ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0ED23C4CEF0; Thu, 27 Feb 2025 07:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740641238; bh=5oeOMOKThBWI2/P4skWHUnP9a3onmPHropSVB3FcGzg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hFP+HdJJVNQHAHR5hn938kPDvzExkiV3PHh6Cofl8+xL2tX/n73+TS5nECnBXVWHe KwYYZlu7D0hRqSHCFOF1HYipZdDkys2pnYLr0nC3YXlgQDAoYF+NH0hp7KsQOS0mXy i8OeOZFnrTE1klQ1U6wT+MFM4vB5PC5bQzciXAaFDVS5V/YcIe+kcEuG/KIYnnqx/E TUWqTV/dnCqbALH+DlrUQvEYBqv0njqP6eTcDD6Zroyi0LsNsitkIaCl6WLGHrx8RD pQK9bZB8GNytk5nn6SjJRNF0P7oo2+ITmqcKMgUMHRTU//iAykp9C0BDhLyafPkTqM BqJ+A0KVVRipw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0799EC1B0FF; Thu, 27 Feb 2025 07:27:18 +0000 (UTC) From: Keke Li via B4 Relay Date: Thu, 27 Feb 2025 15:27:17 +0800 Subject: [PATCH v6 06/10] media: Add C3ISP_PARAMS and C3ISP_STATS meta formats Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250227-c3isp-v6-6-f72e19084d0d@amlogic.com> References: <20250227-c3isp-v6-0-f72e19084d0d@amlogic.com> In-Reply-To: <20250227-c3isp-v6-0-f72e19084d0d@amlogic.com> To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kieran.bingham@ideasonboard.com, laurent.pinchart@ideasonboard.com, dan.scally@ideasonboard.com, jacopo.mondi@ideasonboard.com, Keke Li X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740641235; l=2313; i=keke.li@amlogic.com; s=20240902; h=from:subject:message-id; bh=JvbVoI7PEbuiyUXXcsJxp3yWP506VvLVbF84WkyJ/xY=; b=E5V3yKBtDuvjdU282J6kqFIpWDQu2lozrnvPE/eS18nGvwJPgFkm1KmPQzXpfD1QXwE2sJyBJ SXe7RPeuB25Aya3WwZS33cK8wY+0q+qZcJKkDK9FPwm4AjP6bx7X2C4 X-Developer-Key: i=keke.li@amlogic.com; a=ed25519; pk=XxNPTsQ0YqMJLLekV456eoKV5gbSlxnViB1k1DhfRmU= X-Endpoint-Received: by B4 Relay for keke.li@amlogic.com/20240902 with auth_id=204 X-Original-From: Keke Li Reply-To: keke.li@amlogic.com From: Keke Li C3ISP_PARAMS is the C3 ISP Parameters format. C3ISP_STATS is the C3 ISP Statistics format. Reviewed-by: Daniel Scally Reviewed-by: Jacopo Mondi Signed-off-by: Keke Li --- 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 0304daa8471d..dae34b1170d7 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1460,6 +1460,8 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) case V4L2_META_FMT_RK_ISP1_PARAMS: descr = "Rockchip ISP1 3A Parameters"; break; case V4L2_META_FMT_RK_ISP1_STAT_3A: descr = "Rockchip ISP1 3A Statistics"; break; case V4L2_META_FMT_RK_ISP1_EXT_PARAMS: descr = "Rockchip ISP1 Ext 3A Params"; break; + case V4L2_META_FMT_C3ISP_PARAMS: descr = "Amlogic C3 ISP Parameters"; break; + case V4L2_META_FMT_C3ISP_STATS: descr = "Amlogic C3 ISP Statistics"; break; case V4L2_PIX_FMT_NV12_8L128: descr = "NV12 (8x128 Linear)"; break; case V4L2_PIX_FMT_NV12M_8L128: descr = "NV12M (8x128 Linear)"; break; case V4L2_PIX_FMT_NV12_10BE_8L128: descr = "10-bit NV12 (8x128 Linear, BE)"; break; diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index e7c4dce39007..75e990e9d8b7 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -858,6 +858,10 @@ struct v4l2_pix_format { #define V4L2_META_FMT_RK_ISP1_STAT_3A v4l2_fourcc('R', 'K', '1', 'S') /* Rockchip ISP1 3A Statistics */ #define V4L2_META_FMT_RK_ISP1_EXT_PARAMS v4l2_fourcc('R', 'K', '1', 'E') /* Rockchip ISP1 3a Extensible Parameters */ +/* Vendor specific - used for C3_ISP */ +#define V4L2_META_FMT_C3ISP_PARAMS v4l2_fourcc('C', '3', 'P', 'M') /* Amlogic C3 ISP Parameters */ +#define V4L2_META_FMT_C3ISP_STATS v4l2_fourcc('C', '3', 'S', 'T') /* Amlogic C3 ISP Statistics */ + /* Vendor specific - used for RaspberryPi PiSP */ #define V4L2_META_FMT_RPI_BE_CFG v4l2_fourcc('R', 'P', 'B', 'C') /* PiSP BE configuration */ #define V4L2_META_FMT_RPI_FE_CFG v4l2_fourcc('R', 'P', 'F', 'C') /* PiSP FE configuration */