From patchwork Fri Nov 26 11:28:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanlin Chen X-Patchwork-Id: 14804 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 CD3EFBF415 for ; Fri, 26 Nov 2021 11:29:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CF801604FD; Fri, 26 Nov 2021 12:29:15 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Ko7vhA9D"; dkim-atps=neutral Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A3F986011E for ; Fri, 26 Nov 2021 12:29:14 +0100 (CET) Received: by mail-pl1-x634.google.com with SMTP id y7so6541923plp.0 for ; Fri, 26 Nov 2021 03:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F0D9voHdccYNCv/OY6Ncg9O6eoJSW0KjZahpcAQxbPY=; b=Ko7vhA9D862IAr8564kLb4h6RovX1sLSj4ffpRcXleXhq8+Lq0jTA7jAfhbM9K7Pdq yxGg24oprsXAWYlixFC7S1v0slJ6oBtg3u13LHmsWlE36AidT7952jf7sRCfwfnnrndA wSKTnk6qkxB+aEu4qkLo8DYT7llodA+xKQvvI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F0D9voHdccYNCv/OY6Ncg9O6eoJSW0KjZahpcAQxbPY=; b=TE1woiFmM/yPGfdWBP2IHtKDfdul2rlJ8afxIw2ulX1AVs9Clgt+EWVfyx/CRVO7oC O+6yGUxX/YSjep4EV8JjSb7WV8+BDX05uMNmTlU692vgzLft77dJdy4OHZWhRpXd+MAk X2LdBYoK63aVZ3Z/EyH+LF6+a4KaUWRN7cAVJT+izoqO/qIx+sM+MUGX89As3yJAmxj5 wWalCsJKwyQEbpYiLn7YGEorp+9Z3sTQgHsWx8VkpWfg1Jd5Lqd5mDcvXKxnJTdKcG+A miDySjcKoCrtYfvVLw0a0BGu2QhCmIycAeBctx3f+BjT7uNqkQZta/oiubbUXaPwBfqb ej3Q== X-Gm-Message-State: AOAM530hyjZjpgu4ra/S4YUYSbFfitmqdjsDm9qHjwKEJj44MaLrhb9H /IdWoZZU2xJVJ08Jlz1bJl1Mzq5bMka0Hw== X-Google-Smtp-Source: ABdhPJxaggeGPBRsb1zJWfGbb06Bz+8rtbEWbDBOvfq0HdzdFPv34fk92yPQTz88pVSBJ4bwjVTzYA== X-Received: by 2002:a17:902:a9cb:b0:143:d9ad:d154 with SMTP id b11-20020a170902a9cb00b00143d9add154mr37451722plr.6.1637926152342; Fri, 26 Nov 2021 03:29:12 -0800 (PST) Received: from localhost ([2401:fa00:1:10:a0de:e637:c058:6824]) by smtp.gmail.com with UTF8SMTPSA id d13sm6918760pfu.196.2021.11.26.03.29.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Nov 2021 03:29:11 -0800 (PST) From: Han-Lin Chen To: libcamera-devel@lists.libcamera.org Date: Fri, 26 Nov 2021 19:28:59 +0800 Message-Id: <20211126112903.3276056-1-hanlinchen@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 0/4] Introduce Lens class and apply auto focus on ipu3 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" Hello, The v5 series address further kind comments, moving model() into V4L2Subdevice instead of an extra file, typos and styles. Han-Lin Chen (4): ipa: ipu3: Extend ipu3 ipa interface for lens controls libcamera: add model() for retriving model name in V4L2Subdevice libcamera: camera_lens: Add a new class to model a camera lens ipu3: ipa: Allow IPA to apply controls to the lens device Documentation/index.rst | 1 + Documentation/lens_driver_requirements.rst | 27 ++++ Documentation/meson.build | 1 + include/libcamera/internal/camera_lens.h | 48 +++++++ include/libcamera/internal/meson.build | 1 + include/libcamera/internal/v4l2_subdevice.h | 5 + include/libcamera/ipa/ipu3.mojom | 2 + src/libcamera/camera_lens.cpp | 142 ++++++++++++++++++++ src/libcamera/camera_sensor.cpp | 13 +- src/libcamera/meson.build | 1 + src/libcamera/pipeline/ipu3/cio2.cpp | 29 ++++ src/libcamera/pipeline/ipu3/cio2.h | 3 + src/libcamera/pipeline/ipu3/ipu3.cpp | 12 +- src/libcamera/v4l2_subdevice.cpp | 40 ++++++ 14 files changed, 312 insertions(+), 13 deletions(-) create mode 100644 Documentation/lens_driver_requirements.rst create mode 100644 include/libcamera/internal/camera_lens.h create mode 100644 src/libcamera/camera_lens.cpp