From patchwork Tue Oct 6 08:23:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alen Karnil X-Patchwork-Id: 28409 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 9B841C3307 for ; Tue, 6 Oct 2026 08:24:08 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C106868B50; Tue, 6 Oct 2026 10:24:04 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="k7eRC5qZ"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E93F268A16 for ; Tue, 6 Oct 2026 10:24:00 +0200 (CEST) Received: from [127.0.1.1] (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C0F001B9C; Tue, 6 Oct 2026 10:22:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1791274924; bh=SzAt+VlnDlxPkoLfIMv7RG+QiVZmd5kKEbxIBjssJhs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=k7eRC5qZIqsj8nD8T0oRlwAuQIc849tNUH+76SVWBbasRifPNmTGjR8RaMtnYycOq vFqZqpiFEUkPa2AJnRawhC+LIZUsLTsVV5K+/jV/u+VbEJft5SdK6gi1N6E79rmhhZ +S8qcmFJMBZJYhSnG6XYS7PSAk5MXEnO+xsYJHGY= From: Alen Karnil Date: Tue, 06 Oct 2026 09:23:32 +0100 Subject: [PATCH 2/3] libipa: Add GalaxyCore gc2145 sensor helper MIME-Version: 1.0 Message-Id: <20261006-gc2145-support-v1-2-7482dfcde96f@ideasonboard.com> References: <20261006-gc2145-support-v1-0-7482dfcde96f@ideasonboard.com> In-Reply-To: <20261006-gc2145-support-v1-0-7482dfcde96f@ideasonboard.com> To: libcamera-devel@lists.libcamera.org Cc: Alen Karnil X-Mailer: b4 0.16.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Provide libipa sensor helper for the GalaxyCore gc2145 sensor. The driver does not currently support gain control, so the helper's gain has been a dummy/placeholder value. Signed-off-by: Alen Karnil --- src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index c00b997e..9cf7071d 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -520,6 +520,17 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("gc08a3", CameraSensorHelperGc08a3) +class CameraSensorHelperGc2145 : public CameraSensorHelper +{ +public: + CameraSensorHelperGc2145() + { + /* gain is not exposed by the driver, this is just a place holder. */ + gain_ = AnalogueGainLinear{ 0, 2048, -1, 2048 }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("gc2145", CameraSensorHelperGc2145) + class CameraSensorHelperHm1246 : public CameraSensorHelper { public: