MTK camerahalserver 层初始化流程

05-19 07:04:01.295 13422 13422 I mtkcam-devicemgr: [CameraDeviceManagerBase] "internal" this:0x7e65633008 persist.vendor.mtkcam.aosp_hal_version:
05-19 07:04:01.566 13422 13422 I mtkcam-devicemgr: [initialize] +
05-19 07:04:01.566 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] vendor.debug.camA 0
05-19 07:04:01.566 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] vendor.debug.camB 0
05-19 07:04:01.567 13422 13422 I mtkcam-module: [ModuleStore] ctor
05-19 07:04:01.567 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x40001 module_factory:0x7e660cf298 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/utils/register_utils.cpp
05-19 07:04:01.567 13422 13422 I mtkcam-module: [ShowLoading] loading (MODULE_GROUP_ID:4 MODULE_GROUP_COUNT:2 ...
05-19 07:04:01.568 13422 13422 I mtkcam-module: [load] MtkCam_getModuleFactory_utils(0x7e584d9ca8) @ libmtkcam_modulefactory_utils.so
05-19 07:04:01.569 13422 13422 I mtkcam-module: [ModuleStore] ctor
05-19 07:04:01.569 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x1 module_factory:0x7e5bf201e0 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/drv/register_HalSensor.cpp
05-19 07:04:01.569 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x2 module_factory:0x7e5bf25528 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/drv/register_HwSyncDrv.cpp
05-19 07:04:01.569 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x3 module_factory:0x7e63aa1648 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/drv/register_iopipe_CamIO_NormalPipe.cpp
05-19 07:04:01.569 13422 13422 I mtkcam-module: [ShowLoading] loading (MODULE_GROUP_ID:0 MODULE_GROUP_COUNT:4 ...
05-19 07:04:01.569 13422 13422 I mtkcam-module: [load] MtkCam_getModuleFactory_drv(0x7e58486180) @ libmtkcam_modulefactory_drv.so
05-19 07:04:01.677 13422 13422 I mtkcam-devicemgr: pHalDeviceList:0x7e66c2e5a0 searchDevices:6 queryNumberOfDevices:6
05-19 07:04:01.677 13422 13422 D MtkCam/MetadataProvider.Custom: [showCustInfo] MY_CUST_FTABLE_FINAL_FILE="out/target/product/spm8666p1_64/obj/STATIC_LIBRARIES/libmtkcam_metastore.static.custom_intermediates/custgen.config_static.h"
05-19 07:04:01.681 13422 13422 I mtkcam-module: [ModuleStore] ctor
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10001 module_factory:0x7e5d6068b0 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_Hal3A.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x1000b module_factory:0x7e5d5eb970 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_Hal3ASimulator.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10002 module_factory:0x7e584437f8 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_HalISP.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10003 module_factory:0x7e5d5e0308 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_HalFlash.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10004 module_factory:0x7e5d4c5e48 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_IspMgrIf.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10006 module_factory:0x7e5d599278 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_SwNR.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10007 module_factory:0x7e583d8c68 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_DngInfo.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10008 module_factory:0x7e59122b90 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_NvBufUtil.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x10009 module_factory:0x7e62cdfb88 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_LscTable.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [dump_module] [registered] module_id:0x0x1000a module_factory:0x7e58413e80 register_name:vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/aaa/register_lcs_hal.cpp
05-19 07:04:01.681 13422 13422 I mtkcam-module: [ShowLoading] loading (MODULE_GROUP_ID:1 MODULE_GROUP_COUNT:12 ...
05-19 07:04:01.681 13422 13422 I mtkcam-module: [load] MtkCam_getModuleFactory_aaa(0x7e583852a0) @ libmtkcam_modulefactory_aaa.so
05-19 07:04:01.729 13422 13422 D mtkcam-dngInfo: [getOB] OB(0,0,0,0)
05-19 07:04:01.729 13422 13422 D mtkcam-dngInfo: [DngInfoImp] S0(0.000000,0.000000) O0(0.000000,0.000000) S1(0.000000,0.000000) O1(0.000000,0.000000) S2(0.000000,0.000000) O2(0.000000,0.000000) S3(0.000000,0.000000) O3(0.000000,0.000000)
05-19 07:04:01.729 13422 13422 D mtkcam-dngInfo: [convertColorTransform] Support Only one color trasform for DNG, NVRAM CCM index(0)
05-19 07:04:01.729 13422 13422 E mtkcam-dngInfo: CCM1 row sum check fail, it will lead to dng validate fail! RowSum1(0, 0, 0), CCM1: [0, 0, 0][0, 0, 0][0, 0, 0] (convertColorTransform){#384:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.729 13422 13422 E mtkcam-dngInfo: Fail to inverse the matrix (gen_CM_FM){#548:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.729 13422 13422 E mtkcam-dngInfo: Fail to generate CM1 & FM1 due to invertible in_CCM1!, use identity matrix. (convertColorTransform){#421:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.752 13422 13422 D mtkcam-dngInfo: [DngInfoImp] ShadingMapSize(0,0)
05-19 07:04:01.774 13422 13422 D mtkcam-dngInfo: [DngInfoImp] FNum(0), FL(0)
05-19 07:04:01.775 13422 13422 D mtkcam-devicemgr: [onEnumerateDevicesLocked] [0x00] IMetadataProvider:0x7e66c661c0 sensor:SENSOR_DRVNAME_XAUTO0_MIPI_YUV
05-19 07:04:01.776 13422 13422 D mtkcam-dev3: [0][CameraDevice3Impl::CameraDevice3Impl] 0x7e66d40780 mStaticDeviceInfo:0x7e66d94898 MetadataProvider:0x7e66c661c0 MetadataConverter:0x7e66d5c590 debug.camera.log.<CameraDevice3>:0
05-19 07:04:01.778 13422 13422 D mtkcam-dev3: [0-session::CameraDevice3SessionImpl] 0x7e66c4e280
05-19 07:04:01.780 13422 13422 D MtkCam/MetadataProvider.Custom: [showCustInfo] MY_CUST_FTABLE_FINAL_FILE="out/target/product/spm8666p1_64/obj/STATIC_LIBRARIES/libmtkcam_metastore.static.custom_intermediates/custgen.config_static.h"
05-19 07:04:01.803 13422 13422 D mtkcam-dngInfo: [getOB] OB(0,0,0,0)
05-19 07:04:01.803 13422 13422 D mtkcam-dngInfo: [DngInfoImp] S0(0.000000,0.000000) O0(0.000000,0.000000) S1(0.000000,0.000000) O1(0.000000,0.000000) S2(0.000000,0.000000) O2(0.000000,0.000000) S3(0.000000,0.000000) O3(0.000000,0.000000)
05-19 07:04:01.803 13422 13422 D mtkcam-dngInfo: [convertColorTransform] Support Only one color trasform for DNG, NVRAM CCM index(0)
05-19 07:04:01.803 13422 13422 E mtkcam-dngInfo: CCM1 row sum check fail, it will lead to dng validate fail! RowSum1(0, 0, 0), CCM1: [0, 0, 0][0, 0, 0][0, 0, 0] (convertColorTransform){#384:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.803 13422 13422 E mtkcam-dngInfo: Fail to inverse the matrix (gen_CM_FM){#548:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.803 13422 13422 E mtkcam-dngInfo: Fail to generate CM1 & FM1 due to invertible in_CCM1!, use identity matrix. (convertColorTransform){#421:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.825 13422 13422 D mtkcam-dngInfo: [DngInfoImp] ShadingMapSize(0,0)
05-19 07:04:01.846 13422 13422 D mtkcam-dngInfo: [DngInfoImp] FNum(0), FL(0)
05-19 07:04:01.848 13422 13422 D mtkcam-devicemgr: [onEnumerateDevicesLocked] [0x01] IMetadataProvider:0x7e66c662a0 sensor:SENSOR_DRVNAME_XAUTO1_MIPI_YUV
05-19 07:04:01.848 13422 13422 D mtkcam-dev3: [1][CameraDevice3Impl::CameraDevice3Impl] 0x7e66d41a50 mStaticDeviceInfo:0x7e66d992d8 MetadataProvider:0x7e66c662a0 MetadataConverter:0x7e66d9c6a0 debug.camera.log.<CameraDevice3>:0
05-19 07:04:01.849 13422 13422 D mtkcam-dev3: [1-session::CameraDevice3SessionImpl] 0x7e66c4e780
05-19 07:04:01.851 13422 13422 D MtkCam/MetadataProvider.Custom: [showCustInfo] MY_CUST_FTABLE_FINAL_FILE="out/target/product/spm8666p1_64/obj/STATIC_LIBRARIES/libmtkcam_metastore.static.custom_intermediates/custgen.config_static.h"
05-19 07:04:01.875 13422 13422 D mtkcam-dngInfo: [getOB] OB(0,0,0,0)
05-19 07:04:01.875 13422 13422 D mtkcam-dngInfo: [DngInfoImp] S0(0.000000,0.000000) O0(0.000000,0.000000) S1(0.000000,0.000000) O1(0.000000,0.000000) S2(0.000000,0.000000) O2(0.000000,0.000000) S3(0.000000,0.000000) O3(0.000000,0.000000)
05-19 07:04:01.875 13422 13422 D mtkcam-dngInfo: [convertColorTransform] Support Only one color trasform for DNG, NVRAM CCM index(0)
05-19 07:04:01.875 13422 13422 E mtkcam-dngInfo: CCM1 row sum check fail, it will lead to dng validate fail! RowSum1(0, 0, 0), CCM1: [0, 0, 0][0, 0, 0][0, 0, 0] (convertColorTransform){#384:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.875 13422 13422 E mtkcam-dngInfo: Fail to inverse the matrix (gen_CM_FM){#548:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.875 13422 13422 E mtkcam-dngInfo: Fail to generate CM1 & FM1 due to invertible in_CCM1!, use identity matrix. (convertColorTransform){#421:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.898 13422 13422 D mtkcam-dngInfo: [DngInfoImp] ShadingMapSize(0,0)
05-19 07:04:01.920 13422 13422 D mtkcam-dngInfo: [DngInfoImp] FNum(0), FL(0)
05-19 07:04:01.921 13422 13422 D mtkcam-devicemgr: [onEnumerateDevicesLocked] [0x02] IMetadataProvider:0x7e66c66700 sensor:SENSOR_DRVNAME_XAUTO2_MIPI_YUV
05-19 07:04:01.921 13422 13422 D mtkcam-dev3: [2][CameraDevice3Impl::CameraDevice3Impl] 0x7e66c1fbd0 mStaticDeviceInfo:0x7e66d99358 MetadataProvider:0x7e66c66700 MetadataConverter:0x7e66c5c9d0 debug.camera.log.<CameraDevice3>:0
05-19 07:04:01.922 13422 13422 D mtkcam-dev3: [2-session::CameraDevice3SessionImpl] 0x7e66c4ef00
05-19 07:04:01.926 13422 13422 D MtkCam/MetadataProvider.Custom: [showCustInfo] MY_CUST_FTABLE_FINAL_FILE="out/target/product/spm8666p1_64/obj/STATIC_LIBRARIES/libmtkcam_metastore.static.custom_intermediates/custgen.config_static.h"
05-19 07:04:01.951 13422 13422 D mtkcam-dngInfo: [getOB] OB(0,0,0,0)
05-19 07:04:01.951 13422 13422 D mtkcam-dngInfo: [DngInfoImp] S0(0.000000,0.000000) O0(0.000000,0.000000) S1(0.000000,0.000000) O1(0.000000,0.000000) S2(0.000000,0.000000) O2(0.000000,0.000000) S3(0.000000,0.000000) O3(0.000000,0.000000)
05-19 07:04:01.951 13422 13422 D mtkcam-dngInfo: [convertColorTransform] Support Only one color trasform for DNG, NVRAM CCM index(0)
05-19 07:04:01.951 13422 13422 E mtkcam-dngInfo: CCM1 row sum check fail, it will lead to dng validate fail! RowSum1(0, 0, 0), CCM1: [0, 0, 0][0, 0, 0][0, 0, 0] (convertColorTransform){#384:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.951 13422 13422 E mtkcam-dngInfo: Fail to inverse the matrix (gen_CM_FM){#548:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.951 13422 13422 E mtkcam-dngInfo: Fail to generate CM1 & FM1 due to invertible in_CCM1!, use identity matrix. (convertColorTransform){#421:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:01.973 13422 13422 D mtkcam-dngInfo: [DngInfoImp] ShadingMapSize(0,0)
05-19 07:04:01.994 13422 13422 D mtkcam-dngInfo: [DngInfoImp] FNum(0), FL(0)
05-19 07:04:01.996 13422 13422 E MtkCam/HalSensor:  (sendCommand){#1454:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/sensor/mt6771/../common/v1_1/HalSensor.cpp}
05-19 07:04:01.996 13422 13422 D mtkcam-devicemgr: [onEnumerateDevicesLocked] [0x03] IMetadataProvider:0x7e66c66a80 sensor:SENSOR_DRVNAME_XAUTO_VC1_MIPI_YUV
05-19 07:04:01.996 13422 13422 D mtkcam-dev3: [3][CameraDevice3Impl::CameraDevice3Impl] 0x7e66c20dc0 mStaticDeviceInfo:0x7e66c26bd8 MetadataProvider:0x7e66c66a80 MetadataConverter:0x7e66d9cd60 debug.camera.log.<CameraDevice3>:0
05-19 07:04:01.998 13422 13422 D mtkcam-dev3: [3-session::CameraDevice3SessionImpl] 0x7e66c4f680
05-19 07:04:01.999 13422 13422 D MtkCam/MetadataProvider.Custom: [showCustInfo] MY_CUST_FTABLE_FINAL_FILE="out/target/product/spm8666p1_64/obj/STATIC_LIBRARIES/libmtkcam_metastore.static.custom_intermediates/custgen.config_static.h"
05-19 07:04:02.020 13422 13422 D mtkcam-dngInfo: [getOB] OB(0,0,0,0)
05-19 07:04:02.020 13422 13422 D mtkcam-dngInfo: [DngInfoImp] S0(0.000000,0.000000) O0(0.000000,0.000000) S1(0.000000,0.000000) O1(0.000000,0.000000) S2(0.000000,0.000000) O2(0.000000,0.000000) S3(0.000000,0.000000) O3(0.000000,0.000000)
05-19 07:04:02.020 13422 13422 D mtkcam-dngInfo: [convertColorTransform] Support Only one color trasform for DNG, NVRAM CCM index(0)
05-19 07:04:02.020 13422 13422 E mtkcam-dngInfo: CCM1 row sum check fail, it will lead to dng validate fail! RowSum1(0, 0, 0), CCM1: [0, 0, 0][0, 0, 0][0, 0, 0] (convertColorTransform){#384:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:02.020 13422 13422 E mtkcam-dngInfo: Fail to inverse the matrix (gen_CM_FM){#548:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:02.020 13422 13422 E mtkcam-dngInfo: Fail to generate CM1 & FM1 due to invertible in_CCM1!, use identity matrix. (convertColorTransform){#421:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:02.041 13422 13422 D mtkcam-dngInfo: [DngInfoImp] ShadingMapSize(0,0)
05-19 07:04:02.064 13422 13422 D mtkcam-dngInfo: [DngInfoImp] FNum(0), FL(0)
05-19 07:04:02.065 13422 13422 E MtkCam/HalSensor:  (sendCommand){#1454:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/sensor/mt6771/../common/v1_1/HalSensor.cpp}
05-19 07:04:02.065 13422 13422 D mtkcam-devicemgr: [onEnumerateDevicesLocked] [0x04] IMetadataProvider:0x7e66c66e00 sensor:SENSOR_DRVNAME_XAUTO_VC2_MIPI_YUV
05-19 07:04:02.066 13422 13422 D mtkcam-dev3: [4][CameraDevice3Impl::CameraDevice3Impl] 0x7e66c21fb0 mStaticDeviceInfo:0x7e66d94ed8 MetadataProvider:0x7e66c66e00 MetadataConverter:0x7e66d5da30 debug.camera.log.<CameraDevice3>:0
05-19 07:04:02.066 13422 13422 D mtkcam-dev3: [4-session::CameraDevice3SessionImpl] 0x7e66c4fe00
05-19 07:04:02.067 13422 13422 D MtkCam/MetadataProvider.Custom: [showCustInfo] MY_CUST_FTABLE_FINAL_FILE="out/target/product/spm8666p1_64/obj/STATIC_LIBRARIES/libmtkcam_metastore.static.custom_intermediates/custgen.config_static.h"
05-19 07:04:02.089 13422 13422 D mtkcam-dngInfo: [getOB] OB(0,0,0,0)
05-19 07:04:02.089 13422 13422 D mtkcam-dngInfo: [DngInfoImp] S0(0.000000,0.000000) O0(0.000000,0.000000) S1(0.000000,0.000000) O1(0.000000,0.000000) S2(0.000000,0.000000) O2(0.000000,0.000000) S3(0.000000,0.000000) O3(0.000000,0.000000)
05-19 07:04:02.089 13422 13422 D mtkcam-dngInfo: [convertColorTransform] Support Only one color trasform for DNG, NVRAM CCM index(0)
05-19 07:04:02.089 13422 13422 E mtkcam-dngInfo: CCM1 row sum check fail, it will lead to dng validate fail! RowSum1(0, 0, 0), CCM1: [0, 0, 0][0, 0, 0][0, 0, 0] (convertColorTransform){#384:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:02.089 13422 13422 E mtkcam-dngInfo: Fail to inverse the matrix (gen_CM_FM){#548:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:02.089 13422 13422 E mtkcam-dngInfo: Fail to generate CM1 & FM1 due to invertible in_CCM1!, use identity matrix. (convertColorTransform){#421:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/dngInfo/dngInfoImp.cpp}
05-19 07:04:02.109 13422 13422 D mtkcam-dngInfo: [DngInfoImp] ShadingMapSize(0,0)
05-19 07:04:02.131 13422 13422 D mtkcam-dngInfo: [DngInfoImp] FNum(0), FL(0)
05-19 07:04:02.133 13422 13422 E MtkCam/HalSensor:  (sendCommand){#1454:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/sensor/mt6771/../common/v1_1/HalSensor.cpp}
05-19 07:04:02.133 13422 13422 D mtkcam-devicemgr: [onEnumerateDevicesLocked] [0x05] IMetadataProvider:0x7e66c67180 sensor:SENSOR_DRVNAME_XAUTO_VC3_MIPI_YUV
05-19 07:04:02.133 13422 13422 D mtkcam-dev3: [5][CameraDevice3Impl::CameraDevice3Impl] 0x7e66c231a0 mStaticDeviceInfo:0x7e66c26d18 MetadataProvider:0x7e66c67180 MetadataConverter:0x7e66d5dd90 debug.camera.log.<CameraDevice3>:0
05-19 07:04:02.134 13422 13422 D mtkcam-dev3: [5-session::CameraDevice3SessionImpl] 0x7e66c50580
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] sensorId:0, facing:1
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] sensorId:1, facing:0
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] sensorId:2, facing:1
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] sensorId:3, facing:0
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] sensorId:4, facing:0
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [onEnumerateDevicesLocked] sensorId:5, facing:0
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] Physical Devices: # 6
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [00] -> orientation(wanted/setup)=(  0/0  ) BACK  hasFlashUnit:0 SENSOR_DRVNAME_XAUTO0_MIPI_YUV [PhysEnumDevice:0x7e66d30320]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [01] -> orientation(wanted/setup)=(  0/0  ) FRONT hasFlashUnit:0 SENSOR_DRVNAME_XAUTO1_MIPI_YUV [PhysEnumDevice:0x7e66d303c0]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [02] -> orientation(wanted/setup)=(  0/0  ) BACK  hasFlashUnit:0 SENSOR_DRVNAME_XAUTO2_MIPI_YUV [PhysEnumDevice:0x7e66d30410]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [03] -> orientation(wanted/setup)=(  0/0  ) FRONT hasFlashUnit:0 SENSOR_DRVNAME_XAUTO_VC1_MIPI_YUV [PhysEnumDevice:0x7e66d30460]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [04] -> orientation(wanted/setup)=(  0/0  ) FRONT hasFlashUnit:0 SENSOR_DRVNAME_XAUTO_VC2_MIPI_YUV [PhysEnumDevice:0x7e66d304b0]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [05] -> orientation(wanted/setup)=(  0/0  ) FRONT hasFlashUnit:0 SENSOR_DRVNAME_XAUTO_VC3_MIPI_YUV [PhysEnumDevice:0x7e66d30500]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] Virtual Devices: # 6
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [device@3.4/internal/0] -> 00 torchModeStatus:NOT_AVAILABLE hasFlashUnit:0 [VirtEnumDevice:0x7e66d5c800 IVirtualDevice:0x7e66d40788]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [device@3.4/internal/1] -> 01 torchModeStatus:NOT_AVAILABLE hasFlashUnit:0 [VirtEnumDevice:0x7e66d9c6d0 IVirtualDevice:0x7e66d41a58]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [device@3.4/internal/2] -> 02 torchModeStatus:NOT_AVAILABLE hasFlashUnit:0 [VirtEnumDevice:0x7e66c5ca00 IVirtualDevice:0x7e66c1fbd8]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [device@3.4/internal/3] -> 03 torchModeStatus:NOT_AVAILABLE hasFlashUnit:0 [VirtEnumDevice:0x7e66d9cd90 IVirtualDevice:0x7e66c20dc8]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [device@3.4/internal/4] -> 04 torchModeStatus:NOT_AVAILABLE hasFlashUnit:0 [VirtEnumDevice:0x7e66d5da60 IVirtualDevice:0x7e66c21fb8]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked]   [device@3.4/internal/5] -> 05 torchModeStatus:NOT_AVAILABLE hasFlashUnit:0 [VirtEnumDevice:0x7e66d5ddc0 IVirtualDevice:0x7e66c231a8]
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] Open Devices: # 0 (multi-opened maximum: # 6)
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [logLocked] --
05-19 07:04:02.135 13422 13422 I mtkcam-devicemgr: [initialize] -
05-19 07:04:02.135 13422 13422 I mtkcam-camprovider: [createICameraProvider_V2_4] + internal/0
05-19 07:04:02.135 13422 13422 I mtkcam-camprovider: [initialize] +
05-19 07:04:02.136 13422 13422 I mtkcam-camprovider: [initialize] -
05-19 07:04:02.136 13422 13422 I mtkcam-camprovider: [createICameraProvider_V2_4] - internal/0 provider:0x7e66c42a40 manager:0x7e65633008
05-19 07:04:02.154 13422 13422 D mtkcam-camprovider: [setCallback] ICameraProviderCallback {.pid = 508, .ptr = 3869311296, .arch = IS_32BIT}

看日志首先通过HIDL 调用

\vendor\mediatek\proprietary\hardware\mtkcam\legacy\main\hal\devicemgr\depend
\instance.cpp

extern "C"
ICameraProvider*
HIDL_FETCH_ICameraProvider(const char* name)
{
    //    这里的name 是  internal/0  内置摄像头
    std::string const strProviderName(name);
    size_t const pos = strProviderName.find('/');
    if ( 0 == pos || std::string::npos == pos ) {
        MY_LOGE("provider name (%s) with bad \'/\' at position %zu", name, pos);
        return nullptr;
    }
    //
    if ( 0 != strProviderName.compare(0, pos, getProviderType()) ) {
        MY_LOGW("provider name (%s) with mismatched type(%s) and \'/\' at position %zu",
            name, getProviderType().c_str(), pos);
        return nullptr;
    }
    //
    return createICameraProvider_V2_4(name, getCameraDeviceManager());
}

接下来创建 CameraDeviceManagerImpl.cpp

\vendor\mediatek\proprietary\hardware\mtkcam3\main\hal\devicemgr\depend

注册初始化MTK HAL model

vendor/mediatek/proprietary/hardware/mtkcam/main/core/module/drv/

初始化 CameraDevice3Impl 每个摄像头一个 CameraDevice3Impl

\vendor\mediatek\proprietary\hardware\mtkcam3\main\hal\device\3.x\device

CameraDeviceManagerBase_utils.cpp

logLocked 方法中,会打印已经注册的摄像头信息,包括前置还是后置信息
\vendor\mediatek\proprietary\hardware\mtkcam3\main\hal\devicemgr

初始化 CameraProviderImpl ,设置 setCallback HAL 层的回调

\vendor\mediatek\proprietary\hardware\mtkcam3\main\hal\devicemgr\provider\2.4

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 211,817评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,329评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,354评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,498评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,600评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,829评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,979评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,722评论 0 266
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,189评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,519评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,654评论 1 340
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,329评论 4 330
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,940评论 3 313
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,762评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,993评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,382评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,543评论 2 349

推荐阅读更多精彩内容