From patchwork Fri Feb 19 10:45:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11342 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 423B5BD1F6 for ; Fri, 19 Feb 2021 10:46:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 12BA3689C6; Fri, 19 Feb 2021 11:46:11 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="R9fS+c2X"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 24C91637DC for ; Fri, 19 Feb 2021 11:46:09 +0100 (CET) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A06FD344; Fri, 19 Feb 2021 11:46:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613731568; bh=7CiGv1dE4O6EYqM9CVO1bBOkUwWhKoV9/JODarpYMJU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R9fS+c2XSkeCwBptaMPt0dr65lGDarBZJEfU99YAGBeYsIYNxbGR6kR5FlfP+FfXn HNJYiKsks0gJa2qbCwPYoV2sJTiIPK4afY9MO/UNqzMX+WBET4PxnL49IpjCI6x+CD ULB8g19ooMZHTjCBcwdUwBCl43g/Q+4e0jrS63yw= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Fri, 19 Feb 2021 19:45:43 +0900 Message-Id: <20210219104544.53217-2-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210219104544.53217-1-paul.elder@ideasonboard.com> References: <20210219104544.53217-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/2] libcamera: camera_sensor: Print warning when orientation is unknown 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" Print a warining when the orientation of a sensor is unknown. The location property is still defaulted to external. Signed-off-by: Paul Elder Reviewed-by: Kieran Bingham --- src/libcamera/camera_sensor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp index c9e8d49b..397df266 100644 --- a/src/libcamera/camera_sensor.cpp +++ b/src/libcamera/camera_sensor.cpp @@ -446,6 +446,8 @@ int CameraSensor::initProperties() break; } } else { + LOG(CameraSensor, Warning) + << "No camera location, setting to External"; propertyValue = properties::CameraLocationExternal; } properties_.set(properties::Location, propertyValue);