From 955c996ea6e1200f1b5a002fd411b27c150db805 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Mon, 22 Nov 2021 19:16:13 +0900 Subject: 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 Reviewed-by: Jacopo Mondi --- src/android/camera_capabilities.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/android/camera_capabilities.cpp') 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 &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; } -- cgit v1.2.1