From patchwork Wed Oct 21 00:24:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 10149 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 500EDBDB1F for ; Wed, 21 Oct 2020 00:25:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 95A2361D92; Wed, 21 Oct 2020 02:25:10 +0200 (CEST) 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="YtVqh46j"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5DCF561D92 for ; Wed, 21 Oct 2020 02:25:08 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F20C6B26 for ; Wed, 21 Oct 2020 02:25:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1603239908; bh=Uw6xcbHtTsIgvZkFrclorHqgjkHXlCC2uhfHjMivk30=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YtVqh46j07NkaJ9rXhq3tBsRrQ5VotO+JrapNgrGH7Mbc5mbQRVC9X9LpOeN0Z6dG Y1a8eJb07EF7uNv+L6nc4z2q+YKTQ9u0deKzASaej4MBx4rXRuMeVI9h4OoH+jtJ+v dXagaeCnXfkNBBvhU8yOcs0moT9VOl2UQb8eaM3M= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Wed, 21 Oct 2020 03:24:17 +0300 Message-Id: <20201021002418.21764-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201021002418.21764-1-laurent.pinchart@ideasonboard.com> References: <20201021002418.21764-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/2] libcamera: pipeline: simple: Set camera properties 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" Initialize the CameraData properties with the properties exposed by the sensor. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Niklas Söderlund Tested-by: Andrey Konovalov --- src/libcamera/pipeline/simple/simple.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index 8868a43beeb4..4b6f708e8fee 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -324,6 +324,8 @@ int SimpleCameraData::init() return -EINVAL; } + properties_ = sensor_->properties(); + return 0; }