From patchwork Fri Aug 21 14:46:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 9346 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 B3AAFBD87C for ; Fri, 21 Aug 2020 14:46:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7CE9E620FD; Fri, 21 Aug 2020 16:46:14 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=uajain.com header.i=@uajain.com header.b="esMhUVQm"; dkim-atps=neutral Received: from o1.f.az.sendgrid.net (o1.f.az.sendgrid.net [208.117.55.132]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id AA17861ED9 for ; Fri, 21 Aug 2020 16:46:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uajain.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding; s=s1; bh=B4NwZajWiYqznI3i2QI/8UyMBs4UKDLmOYA5LemIMv8=; b=esMhUVQm0B9y5DIp29MZ8NK9yNhgnV+kzEBGdu0307FMkWltrknj8n6jSlwB1VZnZFdK 2ckNlpQJQMmHyiOS6DTlU9mrDnptDe3JfzEzb1mWHlgmwgLoQID1gTOTm9L/fbYjFHBuLd KKhY0b0PG6W1oThi+ioJd6tkcNLrUUQrc= Received: by filterdrecv-p3iad2-86945d9569-pf8bd with SMTP id filterdrecv-p3iad2-86945d9569-pf8bd-18-5F3FDE31-64 2020-08-21 14:46:09.624123219 +0000 UTC m=+74582.104247101 Received: from mail.uajain.com (unknown) by ismtpd0003p1hnd1.sendgrid.net (SG) with ESMTP id KDOU-PvmSIW8wJ8ARNqf1g Fri, 21 Aug 2020 14:46:09.263 +0000 (UTC) From: Umang Jain Date: Fri, 21 Aug 2020 14:46:09 +0000 (UTC) Message-Id: <20200821144601.67860-5-email@uajain.com> In-Reply-To: <20200821144601.67860-1-email@uajain.com> References: <20200821144601.67860-1-email@uajain.com> Mime-Version: 1.0 X-SG-EID: 1Q40EQ7YGir8a9gjSIAdTjhngY657NMk9ckeo4dbHZDiOpywc/L3L9rFqlwE4KPcclL1jEi7n/kJwGMQDXxjoQ/7A8F8Qzmcnkzv5SyKOxEB/mEvQ56CFjGWFyW//kgR+5Hdgk/hDD6cvtDtSJPcLyTCJ6hM9Zio7eNE4iR85YBSILDLnbSXEHAdUGV7FJUC2Yk74eTsIbVdb+yazUSphmg6XqaJMl/N6ZnRPMY2s4xyh/NEYzZCmqm5ytbNpl004jjo8ikyfVFn6CW5i64rGw== To: libcamera-devel@lists.libcamera.org Subject: [libcamera-devel] [PATCH v4 4/5] android: camera_device: Add a getter to get libcamera::Camera pointer 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 a public member function to get the libcamera::Camera pointer associated with the CameraDevice. This will help to find the CameraDevice object in CameraHalManager when the hotplug support is extended in the Android layer. Signed-off-by: Umang Jain Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/android/camera_device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/android/camera_device.h b/src/android/camera_device.h index 3e472c7..3934f19 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -58,6 +58,7 @@ public: unsigned int id() const { return id_; } camera3_device_t *camera3Device() { return &camera3Device_; } + const libcamera::Camera *camera() const { return camera_.get(); } int facing() const { return facing_; } int orientation() const { return orientation_; }