From patchwork Thu Dec 23 08:01:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 15215 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 19B5FBF415 for ; Thu, 23 Dec 2021 08:01:52 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F0FA660906; Thu, 23 Dec 2021 09:01:50 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="QKB1oVf+"; dkim-atps=neutral Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0AEB3608A2 for ; Thu, 23 Dec 2021 09:01:49 +0100 (CET) Received: by mail-wm1-x32e.google.com with SMTP id g7-20020a7bc4c7000000b00345c4bb365aso2433147wmk.4 for ; Thu, 23 Dec 2021 00:01:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AdFM43a9aDE/1mHPCmALPuN3hbgBJmQx0K6C+0y4o00=; b=QKB1oVf+PH1sp2Ec+Up7SKBDcRTHxqz8uGy9E4vN2Zw8cty7u3GdUx7JkeJFTMhu4k qO1PHo56Ox5VMUYqkyQMTvtgDuCUPhuGNPCqXkP0pn/Z92P2IWEDWZoMuA+QZDc96knR PY/eH98DIcnf8ohe7dIiLRdNwWUxAQud3NJcV/AmrcW9oN0q6RkUh3CWkHz8UJ84WzF4 rE9oX4RmH+Pwi/z4NgDs9wH8F/8Uto4OgE0n/0YvRPbievsFPsFQTCSqioaB8j5JyLQd yWKCer6ql/8aMsAtm+dTy0qoKCXOMuvYbliwwJbooOH0ImJZcvCOVPzgZ7RT5I2muTs9 k83w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AdFM43a9aDE/1mHPCmALPuN3hbgBJmQx0K6C+0y4o00=; b=jnfieixIoTJU6rl3vVBAhUuosGndClQoOvE3IyahfoC49Ktm1nQldHA0ru/QC2QB2N 0iPNdlpIZuha4z4gPhJxPKAZ35yNtiR2oj81wP1uxjmAgTRsFHVioV2n/LNewVT84mNT mNro7aB52yf0gwxuHTSy2DksB/MvenbDp0N78A+jAgqRwQ7qe+wE5iH3IPjt8f6g/PZh VHVFtuzvPVcyds4T+Epn7paFs/Cw1b7P1hUCBVzVzOsJq4bfv51N2QoTD9ynengKGkRb YUOL533x9n782QJ2To2V7/v5COq1bLd8AYWO5qfwoXZOHjnLkhhjfxwhnRB1eRrtCCHe Ok/w== X-Gm-Message-State: AOAM533D0x+qNhSFzTiBwcI+rIlpyWmW4yu9Iy9kTSjxMpoPBtlw08Zr fFMDTlR3TXS5NE6cgtjaL4a2qsJn3/KNaw== X-Google-Smtp-Source: ABdhPJxNKAtVremUoPymOlNwiV9spF8ZVRJeAmTdRGDHkpCuh9F4xSqDvQH2QVyl3b5+edKZO/PDyQ== X-Received: by 2002:a1c:a517:: with SMTP id o23mr725186wme.189.1640246508414; Thu, 23 Dec 2021 00:01:48 -0800 (PST) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id a3sm4692730wri.98.2021.12.23.00.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 00:01:47 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Thu, 23 Dec 2021 08:01:07 +0000 Message-Id: <20211223080110.9766-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] Make use of V4L2_CID_NOTIFY_GAINS X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi everyone This patch set adds support for the V4L2_CID_NOTIFY_GAINS control and updates the Raspberry Pi pipeline handler to make use of it. There are 3 patches: 1. Add the V4L2_CID_NOTIFY_GAINS control. 2. Fix integer array controls. 3. Update the Pi PH to send WB gains to the sensor when it exposes this control. Thanks! David David Plowman (3): include: linux: Add V4L2_CID_NOTIFY_GAINS control libcamera: v4l2_device: Add support for integer array controls ipa: raspberrypi: Update sensor's V4L2_CID_NOTIFY_GAINS control when present include/libcamera/ipa/raspberrypi.mojom | 1 + include/linux/v4l2-controls.h | 1 + src/ipa/raspberrypi/raspberrypi.cpp | 22 +++++++++++++++++++ .../pipeline/raspberrypi/raspberrypi.cpp | 10 +++++++++ src/libcamera/v4l2_device.cpp | 12 ++++++++++ 5 files changed, 46 insertions(+)