Show a patch.

GET /api/1.1/patches/15034/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 15034,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/15034/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/15034/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/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": "<20211203224230.38700-5-djrscally@gmail.com>",
    "date": "2021-12-03T22:42:27",
    "name": "[libcamera-devel,v2,4/7] libcamera: camera_lens: Add function to fetch subdev controls",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "805127a1b2f146acbde53230eac09270231b7fdb",
    "submitter": {
        "id": 90,
        "url": "https://patchwork.libcamera.org/api/1.1/people/90/?format=api",
        "name": "Daniel Scally",
        "email": "djrscally@gmail.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/15034/mbox/",
    "series": [
        {
            "id": 2815,
            "url": "https://patchwork.libcamera.org/api/1.1/series/2815/?format=api",
            "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/patches/15034/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/15034/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 383E2C3250\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  3 Dec 2021 22:42:43 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B36AB60839;\n\tFri,  3 Dec 2021 23:42:42 +0100 (CET)",
            "from mail-wr1-x431.google.com (mail-wr1-x431.google.com\n\t[IPv6:2a00:1450:4864:20::431])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id CBD8A60839\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  3 Dec 2021 23:42:39 +0100 (CET)",
            "by mail-wr1-x431.google.com with SMTP id u17so1356889wrt.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 03 Dec 2021 14:42:39 -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.38\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 03 Dec 2021 14:42:39 -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=\"ZF4FovKS\"; 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=eUYEpbXyFsFKyKfSIdfaLFVI3cENzDs1rMMecgrfghk=;\n\tb=ZF4FovKSbtLK4mr6hJqr5lsxqdR/eYNoCN3DIep/lJRuD8Ci2G/4M6yVDKgP88lvvS\n\tiJ22EM/ozjNBBhGnWz8GYE10vgMOSqSneN4gBb+gze+6eniMFQuufjQlD0G1Gu3JWiHB\n\tFRCI0TWr35ma8fgEvZii1uH5btHJqtRoqDMuq5L4IalGZB8Rf6dL0lER6OCEF4ca/Y0V\n\tS7nJsbymqFVTRY1SbFICflm9J2Qb3V/o2zQPuZhhXyNpAycP8Gn3gfZwvXJW+8i4DyPr\n\tyHtW452p728+kL7xdKE6FMfwpdSxj9rUlyZKEX/QDZD0D0SdV4uPhoyFY25BFc5s14rj\n\t5ezQ==",
        "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=eUYEpbXyFsFKyKfSIdfaLFVI3cENzDs1rMMecgrfghk=;\n\tb=h8fpT4bKO9mYVNo5THBfDBsj4E30wOeIOdqmiDAo5QYjAfaB1hDPHzaLMJNUcxIMFt\n\te0zxLHaTJ/C36fX9ZtbCskHZMeUc3oCPP60g2ff8IhSzvCLpIUyVakF4Y+YRZPUAbv9y\n\tOQTQSALva5cme0BLAJLyx/pbjCaLMU0Bu+DDDaX/6cTMiCk3BIfYN3ZXOuaO/BjgEY/y\n\tEYVhzTOkWMyogehSowVOlXn95YaKI2L0l33z3I505qJXTyL5eq2Kb7Yy0ZYkU2B+owSw\n\to3HuZAbqdKIRcVBwo8S6xCc1HNFeodOpystxm96qY/yjmydsg4/2KoG2xeDzUvPrBKTl\n\tr8Xg==",
        "X-Gm-Message-State": "AOAM533TBro/o6GrT2Gmq415XOQYERojjYs7vmLqCo/yCPZI5L3MtCle\n\tQMFSdteFz9wr+qe6TAaNcimrAh4h73U=",
        "X-Google-Smtp-Source": "ABdhPJz2jgdmikadLUSy7ELyNpmlAkflZ+rlCKcM+llUmjYGejAF0d3C2dFvSp2yJj+5Q7yWCWhvHQ==",
        "X-Received": "by 2002:adf:cf05:: with SMTP id\n\to5mr24787322wrj.325.1638571359600; \n\tFri, 03 Dec 2021 14:42:39 -0800 (PST)",
        "From": "Daniel Scally <djrscally@gmail.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri,  3 Dec 2021 22:42:27 +0000",
        "Message-Id": "<20211203224230.38700-5-djrscally@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20211203224230.38700-1-djrscally@gmail.com>",
        "References": "<20211203224230.38700-1-djrscally@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v2 4/7] libcamera: camera_lens: Add\n\tfunction to fetch subdev 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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add a function to the CameraLens class to fetch the V4L2 controls\nfor its V4L2 subdev\n\nSigned-off-by: Daniel Scally <djrscally@gmail.com>\n---\nChanges in v2:\n\n\t- New patch\n\n include/libcamera/internal/camera_lens.h |  4 ++++\n src/libcamera/camera_lens.cpp            | 11 +++++++++++\n 2 files changed, 15 insertions(+)",
    "diff": "diff --git a/include/libcamera/internal/camera_lens.h b/include/libcamera/internal/camera_lens.h\nindex 6f2ea1bc..64794294 100644\n--- a/include/libcamera/internal/camera_lens.h\n+++ b/include/libcamera/internal/camera_lens.h\n@@ -12,6 +12,8 @@\n #include <libcamera/base/class.h>\n #include <libcamera/base/log.h>\n \n+#include <libcamera/controls.h>\n+\n namespace libcamera {\n \n class MediaEntity;\n@@ -28,6 +30,8 @@ public:\n \n \tconst std::string &model() const { return model_; }\n \n+\tconst ControlInfoMap &controls() const;\n+\n protected:\n \tstd::string logPrefix() const override;\n \ndiff --git a/src/libcamera/camera_lens.cpp b/src/libcamera/camera_lens.cpp\nindex 189cb025..7b3b9c24 100644\n--- a/src/libcamera/camera_lens.cpp\n+++ b/src/libcamera/camera_lens.cpp\n@@ -139,4 +139,15 @@ std::string CameraLens::logPrefix() const\n \treturn \"'\" + entity_->name() + \"'\";\n }\n \n+/**\n+ * \\fn CameraLens::controls()\n+ * \\brief Retrieve the V4L2 controls of the lens' subdev\n+ *\n+ * \\return A map of the V4L2 controls supported by the sensor\n+ */\n+const ControlInfoMap &CameraLens::controls() const\n+{\n+\treturn subdev_->controls();\n+}\n+\n } /* namespace libcamera */\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "4/7"
    ]
}