美文网首页
MTK camerahalserver 层初始化流程

MTK camerahalserver 层初始化流程

作者: Lazy1 | 来源:发表于2022-05-24 15:08 被阅读0次
    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

    相关文章

      网友评论

          本文标题:MTK camerahalserver 层初始化流程

          本文链接:https://www.haomeiwen.com/subject/budjprtx.html