From patchwork Thu Jun 23 14:44:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 16334 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 B47A5BE173 for ; Thu, 23 Jun 2022 14:44:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D071B65639; Thu, 23 Jun 2022 16:44:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655995466; bh=riWLM9meJmG4+c+zuRRqdUmkZ7Ac7L9zIQGt+sZNAsA=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=lZAjUbZhGkFcezVQWkRnbS2w3XAQ0TQh+ILEzho/Mt6bIHzCU0I2KezQ5AYN8+GEB FupvO4YQjrIwFYp7GqHVrnZkKn2jnKUiZvVYlBBipgAoJXJAQsk8VmvLFbHbkyvSRk RdzOUyn/JsR/F2ViWy34rnU8rQKhDUqfRz9Bao3je0QX882FHXGBeIDZiT4rzZ/TdP 074JekaxmMTJ0LJSWOumiY2N2YEN3CYZpEmohjYsBFmmeoGlLfJl4CbSABQ56XM8Hm H3bcyG/CTvMadnf5K5fE846Vm2H9y23Duq0Ig60/oC0e5KBxoZbSgt7GHv0LHeuVYl hLwtSWjwVAzdA== Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 19C6E6048F for ; Thu, 23 Jun 2022 16:44:25 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="JS6hRSri"; dkim-atps=neutral Received: by mail-wr1-x42e.google.com with SMTP id i10so24523542wrc.0 for ; Thu, 23 Jun 2022 07:44:25 -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:mime-version :content-transfer-encoding; bh=JQZkr3Ew2N5XNpk6W1gYAzEpv4/R66avA+dkucpMcYs=; b=JS6hRSriXZY5N21lN2m8l5HurMnkjTXwHmyNTDvJYwpV45Xt8rUVKmyK55n1MjdBh6 ernebW0kAHNtfZc9hsTytDlMx7zxlqigjKjUGYVY8sDuYYA9N0DSDW6eYeRezyvYeQ3R 9Eul85e1HC3iuRbJZ3LOSp856/rr5AVoxBRJWw+iie29O+j4hkie8LEj4dwMNKLS3hbK G6598hrHhpf0illnnMMmYW+do3BkDPgwFeRVQvz7y87hXl2cIh5d6MWg/2u/5puJjvDP 3WNkzh/P+JF6UDdXELtmbTvsCIN75vOmXNVabWmqaMcSI/dnN+5PLTzfisvfPVHBQGFQ dKEQ== 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=JQZkr3Ew2N5XNpk6W1gYAzEpv4/R66avA+dkucpMcYs=; b=uJsuaKUxtu+hYOwmfGTDSiYLRHqksWdI3I6NWS8ltHpyZF9gBJqkyMgL6JCLlgq/ny ps7o/3kZLVwOjirR42lPoVzFb0390VD5RqdEmoqBDGrZZwU/f31TorjHq8u+6oLSBkti 7sv9tPAoWVf5ZE+pyRkEFI8rOKDOQAfQjFVB4yHiavIWKf1eu9IZfI1LCokP+KCQEIgy 0vywEdTv1XK8f+Z+wIe7PzM8lr194BcCuSVaoRXfQxC7BkZUIj6i0RLCJrnUx8omvKfi XgQp0/alxXLbfVjbA4y7KNJx7XLUzwyETlsPioGvxkwc1z44TSYzJZB4E0KFcZo5qwyB FqXw== X-Gm-Message-State: AJIora8462xKiYRqpxM6S7rabvhlvJKfZGQoclkf3R5cdxV5DyDQsYuO SlGrnA/vsAzM31qdYkcQDsYWQH2/xPHQlsx+ X-Google-Smtp-Source: AGRyM1vFJChXiPti5UrjKgY6l4wG1BIISbGxJT4K7ZNPGf+eOeI5BFh02HVDBy1jOhgK45icjOseJQ== X-Received: by 2002:adf:e9c5:0:b0:21b:981a:f61f with SMTP id l5-20020adfe9c5000000b0021b981af61fmr8810824wrn.227.1655995464427; Thu, 23 Jun 2022 07:44:24 -0700 (PDT) Received: from naush-laptop.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id v21-20020a05600c15d500b0039c96b97359sm3178578wmf.37.2022.06.23.07.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 07:44:23 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 23 Jun 2022 15:44:07 +0100 Message-Id: <20220623144410.20725-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] Add SensorTemperature control 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: , X-Patchwork-Original-From: Naushir Patuck via libcamera-devel From: Naushir Patuck Reply-To: Naushir Patuck Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, This series adds a sensor temperature metadata control to libcamera. This control is returned out through Request metadata when available. There is an open PR [1] to enable the temperature sensor on the imx477 on the Raspberry Pi platforms. At present, there is no mechanism in V4L2 to return the temperature from the sensor device driver, so we rely on the embedded data to fetch the values every frame. Thanks, Naush [1] https://github.com/raspberrypi/linux/pull/5067 Naushir Patuck (3): libcamera: controls: Add SensorTemperature control ipa: raspberrypi: Add sensor temperature to DeviceStatus ipa: raspberrypi: imx477: Get sensor temperature from embedded data src/ipa/raspberrypi/cam_helper.cpp | 7 ++++--- src/ipa/raspberrypi/cam_helper_imx477.cpp | 5 ++++- src/ipa/raspberrypi/controller/device_status.cpp | 3 +++ src/ipa/raspberrypi/controller/device_status.h | 4 +++- src/ipa/raspberrypi/raspberrypi.cpp | 2 ++ src/libcamera/control_ids.yaml | 10 ++++++++++ 6 files changed, 26 insertions(+), 5 deletions(-)