summaryrefslogtreecommitdiff
path: root/camera
diff options
context:
space:
mode:
authorMansoor Aftab <maftab@codeaurora.org>2015-05-18 10:59:42 -0700
committerZhijun He <zhijunhe@google.com>2015-05-18 13:10:19 -0700
commitb9c4de8d9af355dc80c42b2fc9cd1698d2707ef8 (patch)
treeffbe6b9895cf2ca6ee6fce15d6b148f26085c27c /camera
parentf2ebfe3f4e1e1bc8aa9dd7e900d3638ecf835627 (diff)
downloadshamu-b9c4de8d9af355dc80c42b2fc9cd1698d2707ef8.tar.gz
Camera3: Advertising available control modes.
Update available control modes in HAL and update the same to upper layers. Change-Id: I97587b100af3178aa945065656371c29de78b9b4
Diffstat (limited to 'camera')
-rwxr-xr-x[-rw-r--r--]camera/QCamera2/HAL3/QCamera3HWI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index 0eadbba6..261b10ff 100644..100755
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -4532,6 +4532,13 @@ int QCamera3HardwareInterface::initStaticMetadata(int cameraId)
scene_mode_overrides,
supported_scene_modes_cnt*3);
+ uint8_t available_control_modes[] = {ANDROID_CONTROL_MODE_OFF,
+ ANDROID_CONTROL_MODE_AUTO,
+ ANDROID_CONTROL_MODE_USE_SCENE_MODE};
+ staticInfo.update(ANDROID_CONTROL_AVAILABLE_MODES,
+ available_control_modes,
+ 3);
+
uint8_t avail_antibanding_modes[CAM_ANTIBANDING_MODE_MAX];
size = 0;
for (int i = 0; i < gCamCapability[cameraId]->supported_antibandings_cnt; i++) {