diff options
author | Alex Ray <aray@google.com> | 2013-06-03 13:23:34 -0700 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2013-06-03 13:30:26 -0700 |
commit | 05c0c1a4b70392cf7a8a3fd7d12f99e597a3e996 (patch) | |
tree | 50cb83e8943ea0905602c375a688f6a215dfd3c8 /libcamera2 | |
parent | 39ed516364d4f0b2648113cb3f94533e86c2da95 (diff) | |
download | exynos5-05c0c1a4b70392cf7a8a3fd7d12f99e597a3e996.tar.gz |
libcamera2: add hardwareLevel to camera metadatajb-mr2-dev
Technically, this is only required for v3 and higher devices, and this
is a v2 device. There aren't any other v2 devices, so our framework
logic just treats them the same. Adding this metadata entry puts this
device back as a first-class full (v3) device in the framework.
Bug: 9261359
Change-Id: I4ba91c5689fd17d4a3f2044fae1c39dd9ee625df
Diffstat (limited to 'libcamera2')
-rw-r--r-- | libcamera2/ExynosCamera2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcamera2/ExynosCamera2.cpp b/libcamera2/ExynosCamera2.cpp index b26fee4..3ae6590 100644 --- a/libcamera2/ExynosCamera2.cpp +++ b/libcamera2/ExynosCamera2.cpp @@ -392,6 +392,12 @@ status_t ExynosCamera2::constructStaticInfo(camera_metadata_t **info, if ( ( ret = addOrSize(*info, sizeRequest, &entryCount, &dataCount, \ tag, data, count) ) != OK ) return ret + // android.info + + int32_t hardwareLevel = ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_FULL; + ADD_OR_SIZE(ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL, + &hardwareLevel, 1); + // android.lens ADD_OR_SIZE(ANDROID_LENS_INFO_MINIMUM_FOCUS_DISTANCE, |