From patchwork Wed Dec 6 11:43:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 19291 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 E3A5DC32BD for ; Wed, 6 Dec 2023 11:43:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 15B6F629CD; Wed, 6 Dec 2023 12:43:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1701863005; bh=wriaDlb5l9OZtQktpsTbNB7PmK4wxSFUXEtNx1YMLiU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=nU/EeH0lHXAJrRtpoSoMonMV9i5zAbaDlTlscEniJGlgr/qgucMG9Sg8XpCOq6Jd0 a3r+iRee9v6jQYL/DNjzlnGadMy8lypA4ZjTqTAdm3dQnHkbnte6GmN1dk2lT+nyvx tqWbFkaroh67J0bbK2obE8u0LJnkOrfXFfaq4Kurojgh6bxxFJkUlFaMORUve8qwny o2YXl3oqyaOd36rI5ln7sPWQt70pF+0XT9IKCRm57sGXwJl5jiaRU/SGoPZGIU3DvE 8dk2pXbmfBAA7kXIUnOz2kvdkvTAAcldanV33IayBzmzRvA0FJeUYfiHD8hLLaibDx 4QUNDpnLumJZQ== 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 8C575629E5 for ; Wed, 6 Dec 2023 12:43:22 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="svdDDxty"; dkim-atps=neutral Received: from localhost.localdomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BCB6614DC; Wed, 6 Dec 2023 12:42:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701862962; bh=wriaDlb5l9OZtQktpsTbNB7PmK4wxSFUXEtNx1YMLiU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=svdDDxtyEUyXVq1vhyfqRGgBu0U7hKGbz+9BHaAubxNJsBryRFze73/LA3XpILmw/ i9wdV8IVl/Pys4aiDXYNnNmZu9+HpcHSO2wzS64/5hHCnwPThSdFVFUBNAiDFQaBhh uWRRvH0yUv0SRDAiQZtRdZSpG2R/JB4K2ZQCaOAc= To: libcamera-devel@lists.libcamera.org Date: Wed, 6 Dec 2023 12:43:06 +0100 Message-ID: <20231206114307.94241-3-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231206114307.94241-1-jacopo.mondi@ideasonboard.com> References: <20231206114044.94068-1-jacopo.mondi@ideasonboard.com> <20231206114307.94241-1-jacopo.mondi@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 3/4] libipa: camera_sensor_helper: Add OV64A40 helper 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: , X-Patchwork-Original-From: Jacopo Mondi via libcamera-devel From: Jacopo Mondi Reply-To: Jacopo Mondi Cc: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a CameraSensorHelper for the OV64A40 camera sensor. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- 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 f0ecc3830115..ce29f423e712 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -547,6 +547,17 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("ov5693", CameraSensorHelperOv5693) +class CameraSensorHelperOv64a40 : public CameraSensorHelper +{ +public: + CameraSensorHelperOv64a40() + { + gainType_ = AnalogueGainLinear; + gainConstants_.linear = { 1, 0, 0, 128 }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("ov64a40", CameraSensorHelperOv64a40) + class CameraSensorHelperOv8858 : public CameraSensorHelper { public: