From patchwork Thu Jul 22 20:36:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scally X-Patchwork-Id: 13073 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 3B499C322C for ; Thu, 22 Jul 2021 20:37:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F07B0687AA; Thu, 22 Jul 2021 22:37:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YdjK0h0c"; dkim-atps=neutral Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F3FCB68779 for ; Thu, 22 Jul 2021 22:37:05 +0200 (CEST) Received: by mail-wr1-x430.google.com with SMTP id d12so7216172wre.13 for ; Thu, 22 Jul 2021 13:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=NpL7BCOI71CT61Q/dbeVowFrsWZ8HxLWxnufle83/AI=; b=YdjK0h0cCNPOPtabsARm5d0BTxCcogWOmCsO/Xg5GBKhDimf7GkkEzEl6pPZe9Fb7l T6HitsiwIt+LQx7RAPrCloU+zlbxhKZOkyQ3//qI9NPqE3CUdfqG78rZowL0tFHcFuQW IUlQC5NyWh35NRmMSMSVrT/2U09mnOQ1yytEzZJmDKnl93QDN78XFCUpdXRzVxf7dQGq QZOD83aYS1rri6tMhroZpgOVapjAham/vHJi0U4QagRtXPUYhAHnxTRVL7+0BhqLUHMD 5qIXg1+M+5ruuNKxfDOIsGNrFgqcctebEGSlUwHW5lbpGyLUJRWxt0yG+jiZEfgfgCno CkRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NpL7BCOI71CT61Q/dbeVowFrsWZ8HxLWxnufle83/AI=; b=UsLsvnZkxb4TpRVp2Wt4cvQ0Dk0l4nJ/r+VRPmHVE+NviW426nKsJqxn7zKiCroIu5 14Vk9LC5U7HCq0Qsoo8cc9PttEKIhUNqNR8reOr5Ao3OQE2RYpv/Df6kM8nRjWTq7URi PUDnBLE5+t7VoJ18hNMLCIP8JhOAkGRaxD4xL/IHn5xf4Ve7jawbrypxXCtNRscg+aRr ytMHXMIuiC2YUYqoQHD/GtnWB+lx5FdIi2nKvqVL91HWq4xe7JNQGCaeMSapE0/PC719 B1o9fOVJsD1GVPAA/BaIakBPUWkakX8kNeVAvN4uVchFk8zKOKwhVHZ9FaCru3DXuoGg ss2Q== X-Gm-Message-State: AOAM530GX6n3KuDBKX3/AGOp5y1dtfzRoxmVdlnqKvFPV9UEvquIlV0V RIbgRk5+dIAWIIuxIJCBWmqB4ozscsU= X-Google-Smtp-Source: ABdhPJx0POwVW2JLp8XLXDoP605PmMDdnx7ux1fyZH4OHV7Av6AI5Cea7XuEmsVEjZK4gVahBXADkA== X-Received: by 2002:a5d:400c:: with SMTP id n12mr1711967wrp.257.1626986225825; Thu, 22 Jul 2021 13:37:05 -0700 (PDT) Received: from valhalla.home ([2.29.20.106]) by smtp.gmail.com with ESMTPSA id g3sm30878948wru.95.2021.07.22.13.37.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 13:37:05 -0700 (PDT) From: Daniel Scally To: libcamera-devel@lists.libcamera.org Date: Thu, 22 Jul 2021 21:36:58 +0100 Message-Id: <20210722203658.3588263-2-djrscally@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210722203658.3588263-1-djrscally@gmail.com> References: <20210722203658.3588263-1-djrscally@gmail.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/2] libcamera: Add OV8865 sensor properties. 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" Add camera sensor properties for the OV8865 sensor. This is the world facing camera on most MS Surface platforms. Signed-off-by: Daniel Scally Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart --- src/libcamera/camera_sensor_properties.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index 7d8ba9e9..e1b6416b 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -102,6 +102,20 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen */ }, } }, + { "ov8865", { + .unitCellSize = { 1400, 1400 }, + .testPatternModes = { + { 0, controls::draft::TestPatternModeOff }, + { 2, controls::draft::TestPatternModeColorBars }, + /* + * No corresponding test pattern mode for: + * 1: "Random data" + * 3: "Colour Bars with Rolling Bar" + * 4: "Color squares" + * 5: "Color squares with rolling bar" + */ + }, + } }, }; const auto it = sensorProps.find(sensor);