diff options
-rw-r--r-- | src/com/android/camera/CaptureModule.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index dd5fde708..8db9a10d4 100644 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -170,6 +170,8 @@ public class CaptureModule implements CameraModule, PhotoController, CaptureRequest.Key<Integer> BayerMonoLinkSessionIdKey = new CaptureRequest.Key<>("org.codeaurora.qcamera3.dualcam_link_meta_data" + ".related_camera_id", Integer.class); + CaptureRequest.Key<Integer> CdsModeKey = + new CaptureRequest.Key<>("org.codeaurora.qcamera3.CDS.cds_mode", Integer.class); public static CaptureRequest.Key<Byte> JpegCropEnableKey = new CaptureRequest.Key<>("org.codeaurora.qcamera3.jpeg_encode_crop.enable", Byte.class); @@ -1099,6 +1101,7 @@ public class CaptureModule implements CameraModule, PhotoController, addPreviewSurface(captureBuilder, null, id); captureBuilder.set(CaptureRequest.CONTROL_AF_MODE, mControlAFMode); captureBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, CaptureRequest.CONTROL_AF_TRIGGER_IDLE); + captureBuilder.set(CdsModeKey, 2); // CDS 0-OFF, 1-ON, 2-AUTO applySettingsForLockExposure(captureBuilder, id); applySettingsForCapture(captureBuilder, id); |