summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2017-02-09 19:45:31 -0800
committerEino-Ville Talvala <etalvala@google.com>2017-02-10 22:04:27 +0000
commit0f5eb837fe84053f4845e19157d81e0ce7da6372 (patch)
tree99a2173b5711947837deacf1da2ed8e9a87cc1ac /camera
parent930086babd876f80db0334414e1ed7476a16f80c (diff)
downloadplatform_hardware_interfaces-0f5eb837fe84053f4845e19157d81e0ce7da6372.tar.gz
platform_hardware_interfaces-0f5eb837fe84053f4845e19157d81e0ce7da6372.tar.bz2
platform_hardware_interfaces-0f5eb837fe84053f4845e19157d81e0ce7da6372.zip
camera.provider default: Don't stop init if vendor tags are bad.
And definitely don't stop init if there are no vendor tags defined at all. Instead, just log about it. Test: gce camera HAL init succeeds; no regression to sailfish camera Bug: 35036220 Change-Id: I7f4481d7ec1a88df0c67a66c364f351b3321b221
Diffstat (limited to 'camera')
-rw-r--r--camera/provider/2.4/default/CameraProvider.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/camera/provider/2.4/default/CameraProvider.cpp b/camera/provider/2.4/default/CameraProvider.cpp
index f1a66a815f..f3ba201d7f 100644
--- a/camera/provider/2.4/default/CameraProvider.cpp
+++ b/camera/provider/2.4/default/CameraProvider.cpp
@@ -234,8 +234,10 @@ bool CameraProvider::initialize() {
// Setup vendor tags here so HAL can setup vendor keys in camera characteristics
VendorTagDescriptor::clearGlobalVendorTagDescriptor();
- bool setupSucceed = setUpVendorTags();
- return !setupSucceed; // return flag here is mInitFailed
+ if (!setUpVendorTags()) {
+ ALOGE("%s: Vendor tag setup failed, will not be available.", __FUNCTION__);
+ }
+ return false; // mInitFailed
}
bool CameraProvider::setUpVendorTags() {
@@ -245,7 +247,7 @@ bool CameraProvider::setUpVendorTags() {
// Check if vendor operations have been implemented
if (!mModule->isVendorTagDefined()) {
ALOGI("%s: No vendor tags defined for this device.", __FUNCTION__);
- return false;
+ return true;
}
mModule->getVendorTagOps(&vOps);