[libcamera-devel] [PATCH 2/8] android: hal_manager: Report supported API version
Jacopo Mondi
jacopo at jmondi.org
Tue May 26 16:22:31 CEST 2020
Report the supported API version in the camera_info structure provided
to the framework.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
src/android/camera_hal_manager.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/android/camera_hal_manager.cpp b/src/android/camera_hal_manager.cpp
index 759e320dcd3b..b02d8d1a8362 100644
--- a/src/android/camera_hal_manager.cpp
+++ b/src/android/camera_hal_manager.cpp
@@ -110,7 +110,7 @@ int CameraHalManager::getCameraInfo(unsigned int id, struct camera_info *info)
/* \todo Get these info dynamically inspecting the camera module. */
info->facing = id ? CAMERA_FACING_FRONT : CAMERA_FACING_BACK;
info->orientation = 0;
- info->device_version = 0;
+ info->device_version = CAMERA_DEVICE_API_VERSION_3_3;
info->resource_cost = 0;
info->static_camera_characteristics = camera->getStaticMetadata();
info->conflicting_devices = nullptr;
--
2.26.2
More information about the libcamera-devel
mailing list