Camera3: Populate the sensor.exposureTime in initStaticMetadata
Added the Default value of Sensor exposure time in Capability to
Meta Data.
Bug: 10690122
Change-Id: Ic4db8aaa33f28768cd031f547fb14c901918e305
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index af2d590..3e1cf22 100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -2969,6 +2969,10 @@
float default_focal_length = gCamCapability[mCameraId]->focal_length;
settings.update(ANDROID_LENS_FOCAL_LENGTH, &default_focal_length, 1);
+ /* Exposure time(Update the Min Exposure Time)*/
+ int64_t default_exposure_time = gCamCapability[mCameraId]->exposure_time_range[0];
+ settings.update(ANDROID_SENSOR_EXPOSURE_TIME, &default_exposure_time, 1);
+
/* frame duration */
static const int64_t default_frame_duration = NSEC_PER_33MSEC;
settings.update(ANDROID_SENSOR_FRAME_DURATION, &default_frame_duration, 1);