通过log查看camera sensor型号
针对mtk平台机器,在camera开发过程中,可以通过log打印信息来确认该机器的camera sensor型号。
需要开启mtklog,重启之后,查看kernel_log.boot。
通过log查看:关键字:currSensorName sensor等,如:
Line 4283: 01-02 00:53:46.808303 1786 1786 D [ 31.085098](7)[1786:initCamdevice][name:kd_camera_hw&]: currSensorName=ov13855mipiraw pinSetIdx=0
currSensorName=ov13855mipiraw 表示的sensor型号就是ov13855mipi了。
其中pinSetIdx=0,表示后摄;pinSetIdx=1,表示前摄;pinSetIdx=2,表示辅摄;
Line 2671: <7>[ 31.849131] (5)[1778:initCamdevice][name:kd_camera_hw&][kd_camera_hw]kdCISModulePowerOn -on:currSensorName=ov13855mipiraw pinSetIdx=0
Line 2795: <7>[ 32.273980] (7)[443:cameraserver][name:kd_camera_hw&][kd_camera_hw]kdCISModulePowerOn -off:currSensorName=ov13855mipiraw pinSetIdx=0
Line 2825: <7>[ 32.311890] (7)[1800:initCamdevice][name:kd_camera_hw&][kd_camera_hw]kdCISModulePowerOn -on:currSensorName=ov8856mipirawtruly pinSetIdx=1
Line 2918: <7>[ 32.634586] (1)[1207:Binder:443_1][name:kd_camera_hw&][kd_camera_hw]kdCISModulePowerOn -off:currSensorName=ov8856mipirawtruly pinSetIdx=1
Line 2945: <4>[ 32.660070] (7)[1820:Imem_Dbg_thread]__sched_setscheduler 1820:Imem_Dbg_thread sched_priority=-2<7>[ 32.660306] (5)[1819:initCamdevice][name:kd_camera_hw&][kd_camera_hw]kdCISModulePowerOn -on:currSensorName=ov2281mipimono pinSetIdx=2
Line 2977: <7>[ 32.841255] (7)[1769:Binder:443_2][name:kd_camera_hw&][kd_camera_hw]kdCISModulePowerOn -off:currSensorName=ov2281mipimono pinSetIdx=2