Show a patch.

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

{
    "id": 23986,
    "url": "https://patchwork.libcamera.org/api/patches/23986/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/23986/",
    "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": "<20250728-vd56g3_support-v2-1-cee5d5feac44@foss.st.com>",
    "date": "2025-07-28T09:09:14",
    "name": "[v2,1/4] libcamera: camera_sensor_properties: Add vd56g3 camera sensor",
    "commit_ref": "6f1af6f578892d20f7b83fab816cae9b384f99a6",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e8b7e33c99ddf0f81cd03f7982e98ef8d9cb9bc9",
    "submitter": {
        "id": 227,
        "url": "https://patchwork.libcamera.org/api/people/227/?format=api",
        "name": "Benjamin Mugnier",
        "email": "benjamin.mugnier@foss.st.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/23986/mbox/",
    "series": [
        {
            "id": 5341,
            "url": "https://patchwork.libcamera.org/api/series/5341/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5341",
            "date": "2025-07-28T09:09:17",
            "name": "Add vd56g3 support for rpi and libipa",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/5341/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/23986/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/23986/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 54504BDCC1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 28 Jul 2025 09:11:34 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A2F7469148;\n\tMon, 28 Jul 2025 11:11:31 +0200 (CEST)",
            "from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com\n\t[185.132.182.106])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BA1006146B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 28 Jul 2025 11:11:29 +0200 (CEST)",
            "from pps.filterd (m0288072.ppops.net [127.0.0.1])\n\tby mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id\n\t56S3aEIS008479; Mon, 28 Jul 2025 11:11:29 +0200",
            "from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35])\n\tby mx07-00178001.pphosted.com (PPS) with ESMTPS id 484memfry1-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=NOT); Mon, 28 Jul 2025 11:11:29 +0200 (MEST)",
            "from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20])\n\tby beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id E0D9B4005C; \n\tMon, 28 Jul 2025 11:10:45 +0200 (CEST)",
            "from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69])\n\tby euls16034.sgp.st.com (STMicroelectronics) with ESMTP id\n\tAA7DA6F557E; Mon, 28 Jul 2025 11:10:25 +0200 (CEST)",
            "from localhost (10.130.78.67) by SHFDAG1NODE1.st.com (10.75.129.69)\n\twith Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39;\n\tMon, 28 Jul 2025 11:10:25 +0200"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=foss.st.com header.i=@foss.st.com\n\theader.b=\"ahL/DCE0\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=\n\tcc:content-transfer-encoding:content-type:date:from:in-reply-to\n\t:message-id:mime-version:references:subject:to; s=selector1; bh=\n\tJlCEJBLdVM9vYD8NkRsLSmnzPLr1VZvlMN9QKDo+DJE=; b=ahL/DCE0AhXCQBMS\n\tOd/9G1Q37uvugyBOIxDSgqjeTbcnH0pwT8PVbtxmnIlnT0NzwCO9J5D+ff2TFhb1\n\tAbRIDJnPWhiUXsavZ+ORg7ko3fSC5lsKA1ZlP2tYHktWwiWPcueP3k6Y37OxjdKh\n\tqdM6h04dqz4DcCPTgLKR+PHikH2pd3D039hJM4vuEU5C+oy6f484HwOJT5ryBm9u\n\t7SDwh/WBFzd50cxc4TXAQcyYEsA+YCMYk4cjsCs7rbWdbOyrGQNjEdiMvzBmxWw+\n\t0F7Ohh/Of8kp1CxdguOojCZvDMn7eDuf04d7QlsEPhXbE39JtkqsskrisBmiqWJP\n\tVksYHQ==",
        "From": "Benjamin Mugnier <benjamin.mugnier@foss.st.com>",
        "Date": "Mon, 28 Jul 2025 11:09:14 +0200",
        "Subject": "[PATCH v2 1/4] libcamera: camera_sensor_properties: Add vd56g3\n\tcamera sensor",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-ID": "<20250728-vd56g3_support-v2-1-cee5d5feac44@foss.st.com>",
        "References": "<20250728-vd56g3_support-v2-0-cee5d5feac44@foss.st.com>",
        "In-Reply-To": "<20250728-vd56g3_support-v2-0-cee5d5feac44@foss.st.com>",
        "To": "<libcamera-devel@lists.libcamera.org>",
        "CC": "Naushir Patuck <naush@raspberrypi.com>, Kieran Bingham\n\t<kieran.bingham@ideasonboard.com>, Sylvain Petinot\n\t<sylvain.petinot@foss.st.com>, Cyril Liotard <cyril.liotard@st.com>,\n\t\"Jean Poire\" <jean.poire@st.com>,\n\tBenjamin Mugnier <benjamin.mugnier@foss.st.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "b4 0.14.2",
        "X-Originating-IP": "[10.130.78.67]",
        "X-ClientProxiedBy": "SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com\n\t(10.75.129.69)",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n\tengine=ICAP:2.0.293, Aquarius:18.0.1099, Hydra:6.1.9,\n\tFMLib:17.12.80.40\n\tdefinitions=2025-07-28_03,2025-07-24_01,2025-03-28_01",
        "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 unit cell size from the 'pixel size' element in the datasheet.\nDelays are set to 2 in case a setting is entered at the very end of the\nN frame, the N+1 frame will miss it and only the N+2 frame will use this\nnew setting.\n\nNote that vd56g3 has a diagonal color test pattern, but does not match\nany description in specified test patterns and therefore is ignored.\n\nSigned-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>\nReviewed-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/sensor/camera_sensor_properties.cpp | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)",
    "diff": "diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp\nindex c9e9e148a1f08d64b63343ca2e204deaf9ef68c8..f297341770d075bafd53fd51387df2aef4f9953e 100644\n--- a/src/libcamera/sensor/camera_sensor_properties.cpp\n+++ b/src/libcamera/sensor/camera_sensor_properties.cpp\n@@ -456,6 +456,27 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen\n \t\t\t},\n \t\t\t.sensorDelays = { },\n \t\t} },\n+\t\t{ \"vd56g3\", {\n+\t\t\t.unitCellSize = { 2610, 2610 },\n+\t\t\t.testPatternModes = {\n+\t\t\t\t{ controls::draft::TestPatternModeOff, 0 },\n+\t\t\t\t{ controls::draft::TestPatternModeSolidColor, 1 },\n+\t\t\t\t{ controls::draft::TestPatternModePn9, 6 },\n+\t\t\t\t/*\n+\t\t\t\t * No corresponding test pattern mode for:\n+\t\t\t\t * 2: \"Vertical Color Bars\"\n+\t\t\t\t * 3: \"Horizontal Gray Scale\"\n+\t\t\t\t * 4: \"Vertical Gray Scale\"\n+\t\t\t\t * 5: \"Diagonal Gray Scale\"\n+\t\t\t\t */\n+\t\t\t},\n+\t\t\t.sensorDelays = {\n+\t\t\t\t.exposureDelay = 2,\n+\t\t\t\t.gainDelay = 2,\n+\t\t\t\t.vblankDelay = 2,\n+\t\t\t\t.hblankDelay = 2\n+\t\t\t},\n+\t\t} },\n \t};\n \n \tconst auto it = sensorProps.find(sensor);\n",
    "prefixes": [
        "v2",
        "1/4"
    ]
}