From patchwork Fri Dec 3 09:44:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanlin Chen X-Patchwork-Id: 15002 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 8DB58BDB13 for ; Fri, 3 Dec 2021 09:44:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EBA586082A; Fri, 3 Dec 2021 10:44:32 +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="VoBoGLMN"; dkim-atps=neutral Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1D5D860710 for ; Fri, 3 Dec 2021 10:44:32 +0100 (CET) Received: by mail-pl1-x62e.google.com with SMTP id k4so1709967plx.8 for ; Fri, 03 Dec 2021 01:44:31 -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=w7MgVo07Jqkvs2lkWed6Zb56ghXtwoscscOPds1stDM=; b=VoBoGLMN73l+zZNK/5aYiTLtIn8k4OnZnfUVPoDPhdtfOUzxMJ+Riyt7RaLnfliHaZ Xy5rpgW+6J+tqeMhjOWWB1tIvojlwRg3hhDQOLyDh/uFbzvQbIwWMtv0LR2GSW/f1YPn 2UDL60BFyMVzVKeGLWKKjXkMwgci/VbOv6KQA= 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=w7MgVo07Jqkvs2lkWed6Zb56ghXtwoscscOPds1stDM=; b=g3TNjBo/XAJrLjlXcrRdTMU57tGdrZYJp8AJd5bjlb+AFoGaM3vcdiyCQJ9+iIFBql jyTc+89ewWja/TlOn4qglrktwVwqRXa+ACjq/uSfp0imj8DaxkZuFTGqnJioDJ3UF+YM e4Ar7S8zxWsZNaxo+0u9khroTK5h0PYScwWGgkgQoc4TqAdBSusHLPxzz94lZEK2p7n2 wJkqzyFR4ecPD8wPc7j80U6vZ310bCxrg9wJaVkqfG+jhh35niySDO1TkHvAxHpdmNme jc28Mw9F5s3gpZGMSmLTit2leDLdXHHeivmvsg4yGvYWdbI6iMdvjmTw686Z6F30ctEp 2q0Q== X-Gm-Message-State: AOAM533CAAw8n4YBVLEGfFGM8No7T5KEnCOHTrkRFlQXhieXnvMgbr90 r0nzn3JRQXp3Grgt1+PDqCe7G54mthfICw== X-Google-Smtp-Source: ABdhPJymRUG6xL0i27wB07UewzHWd6D7NxZpe9xjmNlJmDPywgK2oo/pDxQTYet8LWvC/wotvw8jnw== X-Received: by 2002:a17:90b:1806:: with SMTP id lw6mr12702173pjb.53.1638524669917; Fri, 03 Dec 2021 01:44:29 -0800 (PST) Received: from localhost ([2401:fa00:1:10:110e:45d1:2f92:6647]) by smtp.gmail.com with UTF8SMTPSA id v13sm2730370pfu.38.2021.12.03.01.44.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Dec 2021 01:44:29 -0800 (PST) From: Han-Lin Chen To: libcamera-devel@lists.libcamera.org Date: Fri, 3 Dec 2021 17:44:21 +0800 Message-Id: <20211203094426.101454-1-hanlinchen@chromium.org> X-Mailer: git-send-email 2.34.0.384.gca35af8252-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v8 0/5] 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 V8 series address more comments: typo, const and naming issues. Han-Lin Chen (5): ipa: ipu3: Extend ipu3 ipa interface for lens controls libcamera: add model() for retrieving model name in V4L2Subdevice libcamera: camera_lens: Add a new class to model a camera lens libcamera: camera_lens: add CameraLens as a member of CameraSensor 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 | 45 +++++++ include/libcamera/internal/camera_sensor.h | 5 + include/libcamera/internal/meson.build | 1 + include/libcamera/internal/v4l2_subdevice.h | 4 + include/libcamera/ipa/ipu3.mojom | 2 + src/libcamera/camera_lens.cpp | 142 ++++++++++++++++++++ src/libcamera/camera_sensor.cpp | 41 ++---- src/libcamera/meson.build | 1 + src/libcamera/pipeline/ipu3/ipu3.cpp | 13 +- src/libcamera/v4l2_subdevice.cpp | 53 ++++++++ 13 files changed, 304 insertions(+), 32 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