summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-11-22 19:17:43 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-12-22 16:07:14 -0600
commit733d690b93e1c2b526fc16cb504035f92d1a396d (patch)
tree6ff4c085cfb0ab5c5c14c59ee450dfbe4faf943c
parent955c996ea6e1200f1b5a002fd411b27c150db805 (diff)
android: camera_capabilities: Set read sensor settings capability
A libcamera camera that supports the manual sensor capability also satisfies all the requirements for the read sensor settings capability. Set it. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--src/android/camera_capabilities.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android/camera_capabilities.cpp b/src/android/camera_capabilities.cpp
index 91ccbf11..e6a2c9ea 100644
--- a/src/android/camera_capabilities.cpp
+++ b/src/android/camera_capabilities.cpp
@@ -339,8 +339,11 @@ CameraCapabilities::computeCapabilities()
capabilities.insert(ANDROID_REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE);
- if (validateManualSensorCapability())
+ if (validateManualSensorCapability()) {
capabilities.insert(ANDROID_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR);
+ /* The requirements for READ_SENSOR_SETTINGS are a subset of MANUAL_SENSOR */
+ capabilities.insert(ANDROID_REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS);
+ }
if (validateManualPostProcessingCapability())
capabilities.insert(ANDROID_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING);