summaryrefslogtreecommitdiff
path: root/src/android/camera_capabilities.cpp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-11-22 19:16:13 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-12-22 16:06:37 -0600
commit955c996ea6e1200f1b5a002fd411b27c150db805 (patch)
treedcc21dbf430d0c6e4142744f69502094c709e41c /src/android/camera_capabilities.cpp
parent8ff5a8d548eee7c2cb14b355867debdb29e75419 (diff)
android: camera_capabilities: Add messages for lack of FULL support
Print messages when some feature is missing that causes hardware level FULL to not be supported. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_capabilities.cpp')
-rw-r--r--src/android/camera_capabilities.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/android/camera_capabilities.cpp b/src/android/camera_capabilities.cpp
index c4c26089..91ccbf11 100644
--- a/src/android/camera_capabilities.cpp
+++ b/src/android/camera_capabilities.cpp
@@ -357,8 +357,10 @@ CameraCapabilities::computeCapabilities()
void CameraCapabilities::computeHwLevel(
const std::set<camera_metadata_enum_android_request_available_capabilities> &caps)
{
+ const char *noFull = "Hardware level FULL unavailable: ";
camera_metadata_ro_entry_t entry;
bool found;
+
camera_metadata_enum_android_info_supported_hardware_level
hwLevel = ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_FULL;
@@ -372,8 +374,10 @@ void CameraCapabilities::computeHwLevel(
hwLevel = ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED;
found = staticMetadata_->getEntry(ANDROID_SYNC_MAX_LATENCY, &entry);
- if (!found || *entry.data.i32 != 0)
+ if (!found || *entry.data.i32 != 0) {
+ LOG(HAL, Info) << noFull << "missing or invalid max sync latency";
hwLevel = ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED;
+ }
hwLevel_ = hwLevel;
}