commit | 654b4bf34361b0166a564d178c11ce98cf561cfa | [log] [tgz] |
---|---|---|
author | Yin-Chia Yeh <yinchiayeh@google.com> | Tue Dec 08 12:19:31 2015 -0800 |
committer | Yin-Chia Yeh <yinchiayeh@google.com> | Tue Dec 08 12:22:47 2015 -0800 |
tree | 8a76eb9c6e4f193dab308688d03ee8bf2d0bfed3 | |
parent | 4aeee811662bdb8f6f4b24884d62780deb7ca1c6 [diff] [blame] |
Camera: fix HAL1.0 support Bug: 26050582 Change-Id: Ic64fb005d7c804dc2b8b9c22fdbe44408646b406
diff --git a/services/camera/libcameraservice/common/CameraModule.cpp b/services/camera/libcameraservice/common/CameraModule.cpp index d7a1568..4f00e84 100644 --- a/services/camera/libcameraservice/common/CameraModule.cpp +++ b/services/camera/libcameraservice/common/CameraModule.cpp
@@ -191,6 +191,9 @@ int ret; ATRACE_BEGIN("camera_module->get_camera_info"); ret = mModule->get_camera_info(cameraId, info); + // Fill in this so CameraService won't be confused by + // possibly 0 device_version + info->device_version = CAMERA_DEVICE_API_VERSION_1_0; ATRACE_END(); return ret; }