1625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang/* Copyright (c) 2012-2013, The Linux Foundataion. All rights reserved. 2625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* 3625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* Redistribution and use in source and binary forms, with or without 4625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* modification, are permitted provided that the following conditions are 5625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* met: 6625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* * Redistributions of source code must retain the above copyright 7625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* notice, this list of conditions and the following disclaimer. 8625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* * Redistributions in binary form must reproduce the above 9625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* copyright notice, this list of conditions and the following 10625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* disclaimer in the documentation and/or other materials provided 11625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* with the distribution. 12625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* * Neither the name of The Linux Foundation nor the names of its 13625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* contributors may be used to endorse or promote products derived 14625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* from this software without specific prior written permission. 15625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* 16625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang* 28625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang*/ 29625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang 30625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang#include "QCamera3Factory.h" 31625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang 32625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wangstatic hw_module_t camera_common = { 33625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang tag: HARDWARE_MODULE_TAG, 34625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang module_api_version: CAMERA_MODULE_API_VERSION_2_0, 35625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang hal_api_version: HARDWARE_HAL_API_VERSION, 36625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang id: CAMERA_HARDWARE_MODULE_ID, 37625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang name: "QCamera Module", 38625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang author: "Qualcomm Innovation Center Inc", 39625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang methods: &qcamera::QCamera3Factory::mModuleMethods, 40625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang dso: NULL, 41625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang reserved: {0}, 42625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang}; 43625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang 44625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wangcamera_module_t HAL_MODULE_INFO_SYM = { 45625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang common: camera_common, 46625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang get_number_of_cameras: qcamera::QCamera3Factory::get_number_of_cameras, 47625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang get_camera_info: qcamera::QCamera3Factory::get_camera_info, 48625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang set_callbacks: NULL, 49fb0bfa49e2f567462cd96e8070aed9f233bc08fdEino-Ville Talvala get_vendor_tag_ops: NULL, 50fb0bfa49e2f567462cd96e8070aed9f233bc08fdEino-Ville Talvala reserved: {0} 51625515beb9c1347216a2d261930ceb0d85ba1c47Shuzhen Wang}; 52