{"id":15314,"url":"https://patchwork.libcamera.org/api/patches/15314/?format=json","web_url":"https://patchwork.libcamera.org/patch/15314/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20220131223330.61563-10-djrscally@gmail.com>","date":"2022-01-31T22:33:30","name":"[libcamera-devel,v4,9/9] ipa: ipu3: Send lens controls to pipeline handler","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"37d1f08008277087bb6ca505013afb9554399a6e","submitter":{"id":90,"url":"https://patchwork.libcamera.org/api/people/90/?format=json","name":"Daniel Scally","email":"djrscally@gmail.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/15314/mbox/","series":[{"id":2906,"url":"https://patchwork.libcamera.org/api/series/2906/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2906","date":"2022-01-31T22:33:21","name":"Enumerate CameraLens by following sensor's ancillary links","version":4,"mbox":"https://patchwork.libcamera.org/series/2906/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/15314/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/15314/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 9445BBF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 31 Jan 2022 22:33:52 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 51A51609F1;\n\tMon, 31 Jan 2022 23:33:52 +0100 (CET)","from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com\n\t[IPv6:2a00:1450:4864:20::32e])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B9724609C6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 31 Jan 2022 23:33:49 +0100 (CET)","by mail-wm1-x32e.google.com with SMTP id\n\tm13-20020a05600c3b0d00b00353951c3f62so249044wms.5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 31 Jan 2022 14:33:49 -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\tq2sm6986740wrw.14.2022.01.31.14.33.48\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 31 Jan 2022 14:33:49 -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=\"dQ5aFXyz\"; 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:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=H1K4rh3XrDJdstO3mn49jQZawu6BU349Dkl3P/8gIu8=;\n\tb=dQ5aFXyzsFf3fyIzko8eP0KPZbMUlcVzA4b7O4i6nC7aKdxfPzzNdTa4XjJEzVm7QI\n\ts6v5j51Uc0lsM49UbXBiQcpU0r+MWhvC2Tex+gOz9Pt3cwCJgRgN4DfqQl0ZDoYoI1w7\n\t5vnIZdQGCAwakhSYI1U49hYpTONVh2xT17b7GJtkE+9JkR3N6zHFkox+SbI6mTcK4swg\n\tMHTklXR2UFeiP2q6iK2CGnGkAzzyTCTl6QXscQzpFwUbE/L+IUKG5X3QbTyQ5mFoZqLf\n\tKPJagKj82tFnQwRf+Eo0QhQZusuVRMMaVYlxQgvxLmQKJcwzFWvdYQy+Ok+wyroDWsow\n\tzQEQ==","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:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=H1K4rh3XrDJdstO3mn49jQZawu6BU349Dkl3P/8gIu8=;\n\tb=QRwDltn0SKxh5OTo4YdliLoGMgRT6AKs47RQT+0EQpe0akF2OtbmOTUDkB/munkckO\n\tD5o0yxOqhx1Rk8KdkjcSFNuR2lbMPfuTbdPeJCEoNToomLyFNV7j9d3OFqFm91H1jjW/\n\ti9Sy+de4xuV/RjmMqSxJmdI/LwOVdvw4hFtR37F1dwtFSBvga3Pej6grU9Tg38/ntoMf\n\tXEk34Tc1hfVfDZ8sKmr9zaaLHPOz3pIxH6cklbcPRDjScjMJyMEGJegeUYSPTsb743UA\n\tnOcXZC70qTiDB8to16La2lCULnzV67gXBaacXL8gaKs+pWSbgu38Wnueu/dj2n5MfU7D\n\tB7Gw==","X-Gm-Message-State":"AOAM5306iHLdk1apjBNAXcpUE4BNI8u4woxUqxzGhMNC0XOTIHD7uBqV\n\tlMQ2/fZjHKN3O5mD0TZX+GAguHcg/Sc=","X-Google-Smtp-Source":"ABdhPJwPg9o5MNj3SC3CQKlKpQ77l5y8Swvi0aqeAGDTEXFc8FPBIlfPaPjOIyEl85toDTgpny8ZXQ==","X-Received":"by 2002:a05:600c:4fc7:: with SMTP id\n\to7mr9979519wmq.184.1643668429506; \n\tMon, 31 Jan 2022 14:33:49 -0800 (PST)","From":"Daniel Scally <djrscally@gmail.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 31 Jan 2022 22:33:30 +0000","Message-Id":"<20220131223330.61563-10-djrscally@gmail.com>","X-Mailer":"git-send-email 2.25.1","In-Reply-To":"<20220131223330.61563-1-djrscally@gmail.com>","References":"<20220131223330.61563-1-djrscally@gmail.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 9/9] ipa: ipu3: Send lens controls to\n\tpipeline handler","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":"Pick up the focus value from the AF algorithm and send lens controls\nalong in the frame context.\n\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nSigned-off-by: Daniel Scally <djrscally@gmail.com>\n---\n\nChanges in v4:\n\n\t- Got rid of the focus variable (Laurent)\n\nChanges in v3:\n\n\t- Replaced the new focus_ member with a local variable.\n\n src/ipa/ipu3/ipu3.cpp | 5 +++++\n 1 file changed, 5 insertions(+)","diff":"diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp\nindex e539d875..b8c4b30f 100644\n--- a/src/ipa/ipu3/ipu3.cpp\n+++ b/src/ipa/ipu3/ipu3.cpp\n@@ -704,6 +704,11 @@ void IPAIPU3::setControls(unsigned int frame)\n \tctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_));\n \top.sensorControls = ctrls;\n \n+\tControlList lensCtrls(lensCtrls_);\n+\tlensCtrls.set(V4L2_CID_FOCUS_ABSOLUTE,\n+\t\t      static_cast<int32_t>(context_.frameContext.af.focus));\n+\top.lensControls = lensCtrls;\n+\n \tqueueFrameAction.emit(frame, op);\n }\n \n","prefixes":["libcamera-devel","v4","9/9"]}