Add fixed properties to v4l2_metadata constructor.
BUG: 30140438
Change-Id: I371d00a19d89b439e72805a1bd9b23fc42ee8400
diff --git a/modules/camera/3_4/v4l2_camera.cpp b/modules/camera/3_4/v4l2_camera.cpp
index 81cbf64..f8c1c61 100644
--- a/modules/camera/3_4/v4l2_camera.cpp
+++ b/modules/camera/3_4/v4l2_camera.cpp
@@ -328,13 +328,7 @@
return res;
}
- // No known V4L2 shading map info.
- int32_t shading_map_size[] = {1, 1};
- res = info.update(ANDROID_LENS_INFO_SHADING_MAP_SIZE,
- shading_map_size, ARRAY_SIZE(shading_map_size));
- if (res != android::OK) {
- return res;
- }
+ // lens.info.shadingMapSize not required for non-full devices.
// All V4L2 devices are considered to be external facing.
uint8_t facing = ANDROID_LENS_FACING_EXTERNAL;