libcamera: pipeline: vimc: Fail without an IPA
The IPA is required for VIMC so fail early if it can't be loaded. Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
3c9c2870e2
commit
5db033f0e7
1 changed files with 6 additions and 5 deletions
|
@ -426,12 +426,13 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)
|
|||
return false;
|
||||
|
||||
data->ipa_ = IPAManager::createIPA<ipa::vimc::IPAProxyVimc>(this, 0, 0);
|
||||
if (data->ipa_ != nullptr) {
|
||||
if (!data->ipa_) {
|
||||
LOG(VIMC, Error) << "no matching IPA found";
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string conf = data->ipa_->configurationFile("vimc.conf");
|
||||
data->ipa_->init(IPASettings{ conf, data->sensor_->model() });
|
||||
} else {
|
||||
LOG(VIMC, Warning) << "no matching IPA found";
|
||||
}
|
||||
|
||||
/* Create and register the camera. */
|
||||
std::set<Stream *> streams{ &data->stream_ };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue