libcamera: pipeline: vimc: Pass configuration file to IPA init()
Pass the vimc IPA dummy configuration file to the IPA init() function. This will be used by the IPA to validate the init() call. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
58e6970ba7
commit
e951a2af20
1 changed files with 5 additions and 3 deletions
|
@ -382,10 +382,12 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)
|
||||||
std::unique_ptr<VimcCameraData> data = std::make_unique<VimcCameraData>(this);
|
std::unique_ptr<VimcCameraData> data = std::make_unique<VimcCameraData>(this);
|
||||||
|
|
||||||
data->ipa_ = IPAManager::instance()->createIPA(this, 0, 0);
|
data->ipa_ = IPAManager::instance()->createIPA(this, 0, 0);
|
||||||
if (data->ipa_ == nullptr)
|
if (data->ipa_ != nullptr) {
|
||||||
|
std::string conf = data->ipa_->configurationFile("vimc.conf");
|
||||||
|
data->ipa_->init(IPASettings{ conf });
|
||||||
|
} else {
|
||||||
LOG(VIMC, Warning) << "no matching IPA found";
|
LOG(VIMC, Warning) << "no matching IPA found";
|
||||||
else
|
}
|
||||||
data->ipa_->init(IPASettings{});
|
|
||||||
|
|
||||||
/* Locate and open the capture video node. */
|
/* Locate and open the capture video node. */
|
||||||
if (data->init(media))
|
if (data->init(media))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue