From patchwork Tue Jan 8 17:04:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 181 Return-Path: Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C7B6260B2E for ; Tue, 8 Jan 2019 18:04:08 +0100 (CET) Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 290C1200009; Tue, 8 Jan 2019 17:04:07 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 8 Jan 2019 18:04:03 +0100 Message-Id: <20190108170407.4770-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/4] libcamera: media device: Add link handling X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 17:04:08 -0000 Hello, this series adds an interface to manipulate links to the MediaDevice and MediaObject classes. I have here incorporated review comments received on v1. Changelog: - Dropped doxygen patch and moved documentation of MediaDevice::setupLink() to the commit that adds it. - The link handling test only runs on VIMC, otherwise the test is skipped - Add a MediaDevice::resetLinks() function to reset all links in the media device. Singular patches changelog is reported per patch when relevant. Thanks j Jacopo Mondi (4): libcamera: Add pointer to MediaDevice to MediaObject libcamera: media_device: Add functions to get a MediaLink libcamera: Add link handling functions test: MediaDevice: Add link exercise test src/libcamera/include/media_device.h | 10 ++ src/libcamera/include/media_object.h | 8 +- src/libcamera/media_device.cpp | 158 +++++++++++++++++++++++- src/libcamera/media_object.cpp | 56 +++++++-- test/media_device/media_device_test.cpp | 147 +++++++++++++++++++++- 5 files changed, 363 insertions(+), 16 deletions(-) --- 2.20.1