{"id":15030,"url":"https://patchwork.libcamera.org/api/1.1/covers/15030/?format=json","web_url":"https://patchwork.libcamera.org/cover/15030/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20211203224230.38700-1-djrscally@gmail.com>","date":"2021-12-03T22:42:23","name":"[libcamera-devel,v2,0/7] Enumerate CameraLens by following sensor's ancillary links","submitter":{"id":90,"url":"https://patchwork.libcamera.org/api/1.1/people/90/?format=json","name":"Daniel Scally","email":"djrscally@gmail.com"},"mbox":"https://patchwork.libcamera.org/cover/15030/mbox/","series":[{"id":2815,"url":"https://patchwork.libcamera.org/api/1.1/series/2815/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2815","date":"2021-12-03T22:42:23","name":"Enumerate CameraLens by following sensor's ancillary links","version":2,"mbox":"https://patchwork.libcamera.org/series/2815/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15030/comments/","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 9ADB4BF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  3 Dec 2021 22:42:38 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D48CA60836;\n\tFri,  3 Dec 2021 23:42:37 +0100 (CET)","from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com\n\t[IPv6:2a00:1450:4864:20::32d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DA09860725\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  3 Dec 2021 23:42:36 +0100 (CET)","by mail-wm1-x32d.google.com with SMTP id 133so3529766wme.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 03 Dec 2021 14:42:36 -0800 (PST)","from localhost.localdomain\n\t(cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net. [86.13.91.161])\n\tby smtp.gmail.com with ESMTPSA id\n\to25sm3939919wms.17.2021.12.03.14.42.35\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 03 Dec 2021 14:42:35 -0800 (PST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"kULV7Zxa\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=PHfQHZqADHWlnoF41MQoqRfmxnVxtOO8DgSt7FhDw5Y=;\n\tb=kULV7ZxaztdphA1/pYoj8fV/H8jIj3q6KQB3Aedtr0akZMOde2jvuFWCjaSh1pj/41\n\tDjX7cYmT0f8Dp5FJJ9M6A/PryYPtjqkLlhg6HscvSAYlYfRR2ySa/B5w4FQdp1uHagZG\n\tkviLF/6+Al4qR2orXiO2URMxlwZfxEg1k5NtCGd0lJDHRAPt5ksRvUQSjvS7NbN6FUPh\n\ttS3Zw8dXWZ6LwDpvIRRF/9ZT2DGE5Q7PH/R77R1bH1TSLcV/cHignbMybfTU23WohJec\n\t64GI3UpU92jm3iq4saDs3DFgeTn0Ud1KyhXEanrbiG40F2KXItDaeJyrMiuS1nB0TS4o\n\tHuUw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=PHfQHZqADHWlnoF41MQoqRfmxnVxtOO8DgSt7FhDw5Y=;\n\tb=vn8mReNN/8cVb97Bgu22o8oxMMRWG22qYcQfcQDZrBaEJo5O2aMC8qZwt/sD6VC3Kw\n\tU7L8VLrf2xJRNm4D+vxfQC3jn6qeqNWkM/MQOsoLRumSAu89P9+NV/nRFN2IhMiGT9WV\n\tTpWPfgc2+uAGbGOgyK7pkuH3DOFfPBiX/8VAaLEq5Sw7OvNRFFUqerdP9oKDN8rEJ13Q\n\tVYNCT5daepfZ+AElPmayL0Z/tRksGCjc1MPiTk/cW7QHW8jg34nJTCjLpbCUu6ORBZm7\n\t+gLc4AtbvppHFSNjphgtFC1CczsAnpaEVCWNqyagdLAuT8txtGKP030VT4tlFIo/Xpwv\n\tmVxg==","X-Gm-Message-State":"AOAM531kdQH4cisbnrWkhYTvkZjwvdQwZup5TJQj7vhZmHy12l6Im2TA\n\tSQSQFAP3mgZ+nFzyJCpk92IyGOszILY=","X-Google-Smtp-Source":"ABdhPJycpYVZSijYFLrtdGUPTRIuSpXmJDfu0qNuO2e+tG6Kkux6ui8PNp/m3WLN2sBaYC6NGK9+Sw==","X-Received":"by 2002:a05:600c:4f48:: with SMTP id\n\tm8mr18854784wmq.50.1638571356478; \n\tFri, 03 Dec 2021 14:42:36 -0800 (PST)","From":"Daniel Scally <djrscally@gmail.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Fri,  3 Dec 2021 22:42:23 +0000","Message-Id":"<20211203224230.38700-1-djrscally@gmail.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/7] Enumerate CameraLens by following\n\tsensor's ancillary links","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello All\n\nThis series is an attempt at making the incoming VCM support a little more\nagnostic, by following the new style of media links described in my series to\nlinux-media [0] to find VCMs connected to Sensors in libcamera. Now that\nHan-Lin's series is merged this is based on top of master, plus Kate's v3 [1]\n\nThe general principle of the new links is an entity to entity link which will\nbe connected by the kernel between a sensor's entity and an entity for a VCM\ndevice, where those entities have a fwnode match based on the \"lens-focus\"\nproperty against the sensor. These links are then discovered by libcamera and\nfollowed to create an instance of the CameraLens class, replacing the matching\non driver/device names in Han-Lin's original series.\n\nWith the CameraLens available to carry out the controlling of the VCM, I have\npushed the controls to the pipeline handler.\n\nSeries changes in v2: \n\n\t- New patches #4, #5 and #6 adding some extra framework to the IPAIPU3\n\tand pipeline so that I can pass the lensControls as a ControlList in #7\n\t(which was previously #5).\n\t- Dropped the patch amending Kate's work, as Kate squashed it (thanks!)\n\nThanks\nDan\n\n[1] https://patchwork.libcamera.org/patch/15011/\n\nDaniel Scally (7):\n  libcamera: Add members to MediaEntity to support ancillary entities\n  libcamera: media_device: Handle ancillary links in populateLinks()\n  libcamera: camera_sensor: Discover VCMs through ancillary links\n  libcamera: camera_lens: Add function to fetch subdev controls\n  libcamera: ipa: Add lens control member to ipu3 ipa interface\n  libcamera: ipu3: Pass lens controls to config info\n  ipa: ipu3: Send lens controls to pipeline handler\n\n include/libcamera/internal/camera_lens.h   |  4 ++\n include/libcamera/internal/camera_sensor.h |  1 +\n include/libcamera/internal/media_object.h  |  4 ++\n include/libcamera/ipa/ipu3.mojom           |  1 +\n include/linux/media.h                      |  1 +\n src/ipa/ipu3/ipu3.cpp                      | 10 +++++\n src/libcamera/camera_lens.cpp              | 11 ++++++\n src/libcamera/camera_sensor.cpp            | 42 ++++++++++++++++++++\n src/libcamera/media_device.cpp             | 46 +++++++++++++++-------\n src/libcamera/media_object.cpp             | 16 ++++++++\n src/libcamera/pipeline/ipu3/ipu3.cpp       |  5 +++\n 11 files changed, 126 insertions(+), 15 deletions(-)"}