From patchwork Tue Apr 27 13:08:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 12121 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 41A72BDE3B for ; Tue, 27 Apr 2021 13:08:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C529D6885A; Tue, 27 Apr 2021 15:08:55 +0200 (CEST) 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="mieJF4K3"; dkim-atps=neutral Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CD3A1688B4 for ; Tue, 27 Apr 2021 15:08:51 +0200 (CEST) Received: by mail-wr1-x435.google.com with SMTP id n2so6253603wrm.0 for ; Tue, 27 Apr 2021 06:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lMKiEMNq5rniY5WVpexPk0iXE3oxK9Bmo7frnU7vnL0=; b=mieJF4K300ZGCUkYtE8XO/uMd47Bvg8HV6g863nL7Q3IqJHxHKzEPsJssJtHpIXTdP YZ1fnComzzbrKWIRHJYMbT9T/oepqTt0DNhIKie8wTTNt1+EXgcQUiM+8C8rKH7Hr6Au Ys8tizLfSna0PILL5dwUmgU1uTjZ3Rdln5CME9nHMPz//mdDvI+Lqn0kSLYY+h11DiXS WexazqOEb2d8NbmC4xupXTTqvJuG2piZhoNBxqJ4whBE7+4bVJ/nePz2H5FZyh5fnXDJ yB0KJWgjrhETGBuUw/dE7VBENQWUG2BC0IfuAyl5izuvWolLz6OtzB5pPL2zIRBtwfSL TVFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lMKiEMNq5rniY5WVpexPk0iXE3oxK9Bmo7frnU7vnL0=; b=m5/Sw4lN8/+RC+CfCblxb7Z4TfcofzFuZOAnwik0Q2BewTlDMkcOxxntwgWPNNAD1y hCG6HZFakrtsb0GsFcV2IjwY+O1RHARKBLGdMLMt/XSGE5PQj6BGJgbpqvSScPd4m5VC 7D3rh8jwCWd4vKIsYAqTc8c4nZRz519n9FNVCgqmYSE8N4UGcs4JdFDbLo0S4g9cSd/6 C8KtxzLjZvCuQEWf9vsXl3zqgRteRr5Z/Nv5Va0PajNEGSesLcZ54HstORO65nv3jsNR YRJ1JofuMWmKySpEZRs3JCbEQyn8AGBkw8+cQ0IEn+bMQy9BR390Ley5b63tml9CkRag QCig== X-Gm-Message-State: AOAM5335uhiQVUpdWF7zuLGgkU0li1U1w4YQdxaabXbXj05E1+5DtO6B hHNfm1i2jr4SCi6OVuGAjzphRyOs+Fcs6w== X-Google-Smtp-Source: ABdhPJxrfxJXIs5GeIQYMhE+y6Wfz4eSYlkkm+E3NMFLziaRjSUAJ2jgRE5CldyJhG65bnsas1vdOw== X-Received: by 2002:a05:6000:8b:: with SMTP id m11mr29160476wrx.224.1619528931337; Tue, 27 Apr 2021 06:08:51 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id r11sm3899327wrx.22.2021.04.27.06.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Apr 2021 06:08:50 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Tue, 27 Apr 2021 14:08:43 +0100 Message-Id: <20210427130844.11357-4-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210427130844.11357-1-david.plowman@raspberrypi.com> References: <20210427130844.11357-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 3/4] include: linux: Add V4L2_CID_NOTIFY_GAIN_XXX controls 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" Add the V4L2 controls V4L2_CID_NOTIFY_GAIN_RED V4L2_CID_NOTIFY_GAIN_GREENR V4L2_CID_NOTIFY_GAIN_BLUE V4L2_CID_NOTIFY_GAIN_GREENB In future some sensors may expose these controls when they want to be informed of the gains the downstream processing will apply, though the sensor will not apply the gains itself. Signed-off-by: David Plowman --- include/linux/v4l2-controls.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/v4l2-controls.h b/include/linux/v4l2-controls.h index 59a57418..27079a6b 100644 --- a/include/linux/v4l2-controls.h +++ b/include/linux/v4l2-controls.h @@ -1109,6 +1109,10 @@ enum v4l2_jpeg_chroma_subsampling { #define V4L2_CID_TEST_PATTERN_BLUE (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 6) #define V4L2_CID_TEST_PATTERN_GREENB (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 7) #define V4L2_CID_UNIT_CELL_SIZE (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 8) +#define V4L2_CID_NOTIFY_GAIN_RED (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 9) +#define V4L2_CID_NOTIFY_GAIN_GREENR (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 10) +#define V4L2_CID_NOTIFY_GAIN_BLUE (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 11) +#define V4L2_CID_NOTIFY_GAIN_GREENB (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 12) /* Image processing controls */