From patchwork Wed Aug 28 01:16:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 1866 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1FDD060C10 for ; Wed, 28 Aug 2019 03:17:35 +0200 (CEST) X-Halon-ID: 94214421-c931-11e9-bdc3-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [95.195.154.80]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 94214421-c931-11e9-bdc3-005056917a89; Wed, 28 Aug 2019 03:17:19 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Wed, 28 Aug 2019 03:16:58 +0200 Message-Id: <20190828011710.32128-2-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190828011710.32128-1-niklas.soderlund@ragnatech.se> References: <20190828011710.32128-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 01/13] libcamera: pipeline: vimc: Increase version of dummy IPA 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: Wed, 28 Aug 2019 01:17:35 -0000 An IPA version number of 0 will be redefined as No IPA support. Increase the VIMC dummy IPA version to 1 to allow it to keep loading. Signed-off-by: Niklas Söderlund Reviewed-by: Kieran Bingham --- src/ipa/ipa_dummy.cpp | 2 +- src/libcamera/pipeline/vimc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipa/ipa_dummy.cpp b/src/ipa/ipa_dummy.cpp index 4c8b6657689d0c9f..b0e944a17fc5cffb 100644 --- a/src/ipa/ipa_dummy.cpp +++ b/src/ipa/ipa_dummy.cpp @@ -31,7 +31,7 @@ int IPADummy::init() extern "C" { const struct IPAModuleInfo ipaModuleInfo = { IPA_MODULE_API_VERSION, - 0, + 1, "PipelineHandlerVimc", "Dummy IPA for Vimc", "LGPL-2.1-or-later", diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp index f8f91d6219b1aee4..e5c4890501db71c8 100644 --- a/src/libcamera/pipeline/vimc.cpp +++ b/src/libcamera/pipeline/vimc.cpp @@ -361,7 +361,7 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator) if (!media) return false; - ipa_ = IPAManager::instance()->createIPA(this, 0, 0); + ipa_ = IPAManager::instance()->createIPA(this, 1, 1); if (ipa_ == nullptr) LOG(VIMC, Warning) << "no matching IPA found"; else