Patch Detail
Show a patch.
GET /api/patches/17375/?format=api
{ "id": 17375, "url": "https://patchwork.libcamera.org/api/patches/17375/?format=api", "web_url": "https://patchwork.libcamera.org/patch/17375/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20220916103713.21132-2-hpa@redhat.com>", "date": "2022-09-16T10:37:11", "name": "[libcamera-devel,1/3] ipu3: Registering AF controls", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5386118e4981a59b3d7278812a54a6d0e1330eaa", "submitter": { "id": 105, "url": "https://patchwork.libcamera.org/api/people/105/?format=api", "name": "Kate Hsuan", "email": "hpa@redhat.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/17375/mbox/", "series": [ { "id": 3489, "url": "https://patchwork.libcamera.org/api/series/3489/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3489", "date": "2022-09-16T10:37:10", "name": "Basic AF control for IPU3", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3489/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/17375/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/17375/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 2A73FC3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 16 Sep 2022 10:37:39 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E8AD461FBA;\n\tFri, 16 Sep 2022 12:37:38 +0200 (CEST)", "from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.129.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1D1EA61FAB\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 16 Sep 2022 12:37:37 +0200 (CEST)", "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n\t[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n\t(version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\tus-mta-587-pZ3drWUtNx-Bu6e2PSDSUA-1; Fri, 16 Sep 2022 06:37:35 -0400", "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mimecast-mx02.redhat.com (Postfix) with ESMTPS id E932F101A52A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 16 Sep 2022 10:37:34 +0000 (UTC)", "from fedora.redhat.com (unknown [10.39.193.148])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id C1E5740F2D20;\n\tFri, 16 Sep 2022 10:37:32 +0000 (UTC)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1663324658;\n\tbh=+LX1xPaaR2C8yA6D4RnRXY9lbP66wLhrJtiprkp5Akg=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=EBC0KiK1uUBvuNTpAfMIBIxAbB2TJAGjJM5020Da402rpIS03ZSLOxcCIKlQXwxyJ\n\tsX36gG08czz6WiNy1qOXJDtGkJnakarqo6s/PwmO3E9jTlrauIOMaC1ZfpeSKYM0iS\n\t6pVdDXWfc8A3etcHYPpTPtFv9XLBsA+FQm1IILCdGe+m3jGOk/2psD4XzX02i1yru1\n\tvT6ktgDuYdLw3HsjtqTpin5CFtk1uEVnWkCSqsCODaKaBf8xwYuzskSUsM2Vs1SLKp\n\t3LANQ4qPOnVcenjDrrL8B70pkpD9V2staIrc7yWvq5r8J+QDqF9T96lkqzhg7A0PNM\n\tK31mWZXXY4pwQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1663324656;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding:\n\tin-reply-to:in-reply-to:references:references;\n\tbh=BUd4fh3maUw7N0BUVSH1+BM4NctThW+3TbIDj42y71o=;\n\tb=C2L2R+cVtNJDoRX+uvIdDYDQu04K+XRRfdMLTePR4t5Ro6XfG2pMnEV36l/UTZZi36Pm0K\n\tCB+oMwQOgAh7hIKohjdtaao45vXsHWl965FUiKArMbaPsVlzHpylpm8JmSys18IlGs7Vrq\n\thxALVMTyUXdzT/SXGfoI+WazlIPkbh0=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=redhat.com\n\theader.i=@redhat.com header.b=\"C2L2R+cV\"; \n\tdkim-atps=neutral", "X-MC-Unique": "pZ3drWUtNx-Bu6e2PSDSUA-1", "To": "libcamera devel <libcamera-devel@lists.libcamera.org>,\n\tHans De Goede <hdegoede@redhat.com>", "Date": "Fri, 16 Sep 2022 18:37:11 +0800", "Message-Id": "<20220916103713.21132-2-hpa@redhat.com>", "In-Reply-To": "<20220916103713.21132-1-hpa@redhat.com>", "References": "<20220916103713.21132-1-hpa@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.1", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true", "Subject": "[libcamera-devel] [PATCH 1/3] ipu3: Registering AF controls", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "From": "Kate Hsuan via libcamera-devel <libcamera-devel@lists.libcamera.org>", "Reply-To": "Kate Hsuan <hpa@redhat.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Regitering AF controls, including AF_MODE and LENS_POSITION.\n\nSigned-off-by: Kate Hsuan <hpa@redhat.com>\n---\n src/ipa/ipu3/ipu3.cpp | 4 ++++\n src/libcamera/pipeline/ipu3/ipu3.cpp | 2 ++\n 2 files changed, 6 insertions(+)", "diff": "diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp\nindex e37b2fa0..ac0c42a7 100644\n--- a/src/ipa/ipu3/ipu3.cpp\n+++ b/src/ipa/ipu3/ipu3.cpp\n@@ -277,6 +277,10 @@ void IPAIPU3::updateControls(const IPACameraSensorInfo &sensorInfo,\n \t\t\t\t\t\t\t frameDurations[1],\n \t\t\t\t\t\t\t frameDurations[2]);\n \n+\t/* Af controls */\n+\tcontrols[&controls::AfMode] = ControlInfo(controls::AfModeValues);\n+\tcontrols[&controls::LensPosition] = ControlInfo(0.0f, 1.0f, 0.5f);\n+\n \t*ipaControls = ControlInfoMap(std::move(controls), controls::controls);\n }\n \ndiff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex 93219a6c..2e35b9bc 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -43,6 +43,8 @@ LOG_DEFINE_CATEGORY(IPU3)\n \n static const ControlInfoMap::Map IPU3Controls = {\n \t{ &controls::draft::PipelineDepth, ControlInfo(2, 3) },\n+\t{ &controls::AfMode, ControlInfo(controls::AfModeValues) },\n+\t{ &controls::LensPosition, ControlInfo(0.0f, 1.0f, 0.5f) }\n };\n \n class IPU3CameraData : public Camera::Private\n", "prefixes": [ "libcamera-devel", "1/3" ] }