jasmine1

MTK6889平台移植mipI接口的camera出现错误,怎么解决?

0
阅读(2885)

问题:MTK6889平台移植mipI接口的camera,在打开摄像头的时候,出现如下错误,

unfortunately,gallery has stopped(手机上弹出的提示)

MTK串口打印出现的错误是:

[  984.613490] (2)[559:Binder_1][[kd_camera_hw]] kdCISModulePowerOn 8AA close index[2]

91 [  984.623457] (2)[559:Binder_1]GC0313MIPI Sensor id = d0

92 [  984.815724] (0)[1055:Binder_A]<HWMSEN> ioctl delay handle=0,delay =66

93 [  984.816811] (0)[1055:Binder_A]<HWMSEN> hwmsen_set_delay 653 : have no this sensor 0 or operator point is null!

94 [  984.818306] (0)[1055:Binder_A]<HWMSEN> update_workqueue_polling_rate

95 [  984.819236] (0)[1055:Binder_A]<HWMSEN> set new workqueue base time=66

96 [  984.821294] (0)[1052:Binder_8]<HWMSEN> ioctl delay handle=0,delay =66

97 [  984.822159] (0)[1052:Binder_8]<HWMSEN> hwmsen_set_delay 653 : have no this sensor 0 or operator point is null!

98 [  984.823414] (0)[1052:Binder_8]<HWMSEN> update_workqueue_polling_rate

99 [  984.824206] (0)[1052:Binder_8]<HWMSEN> set new workqueue base time=66

100 [  984.825693] (0)[1010:Binder_7]<HWMSEN> ioctl delay handle=0,delay =66

101 [  984.826909] (0)[1010:Binder_7]<HWMSEN> hwmsen_set_delay 653 : have no this sensor 0 or operator point is null!

102 [  984.828166] (0)[1010:Binder_7]<HWMSEN> update_workqueue_polling_rate

103 [  984.828958] (0)[1010:Binder_7]<HWMSEN> set new workqueue base time=66

104 [  984.830070] (2)[652:Binder_1]<HWMSEN> ioctl delay handle=0,delay =66

105 [  984.831844] (2)[652:Binder_1]<HWMSEN> hwmsen_set_delay 653 : have no this sensor 0 or operator point is null!

106 [  984.833430] (2)[652:Binder_1]<HWMSEN> update_workqueue_polling_rate

107 [  984.834488] (2)[652:Binder_1]<HWMSEN> set new workqueue base time=66

108 [  984.840820] (0)[2868:kworker/0:0][Power/WMT_Thermal] [wmt_thz_get_temp] temp = 0

109 [  984.895855] (0)[1341:Binder_3][hdmi]hdmi_ioctl,#2450 [HDMI] hdmi ioctl= mtk_HDMI_FORCE_CLOSE(15), arg = 0

110 [  984.903714] (0)[1341:Binder_3][hdmi]hdmi_ioctl,#2665 return in 2665

111 [  984.906039] (1)[2960:PreviewCmdQueTh][[kd_sensorlist]] ERR:SensorControl(), i =0

112 [  985.101354] (1)[2964:MtkOmxVdecDecod][VDO_LOG] vcodec_open pid = 2964, MT6589Driver_Open_Count 1

113 [  985.102464] (1)[2964:MtkOmxVdecDecod][VDO_LOG] DEC_EMI_USER = 1

114 [  985.104698] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145][SMI_PROFILE] : SMI_BWC_SCEN_VP1066

115 [  985.105695] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145][SMI_REG] : <Bandwidth Limiter>

116 [  985.106645] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] 0x0 + REG_SMI_L1ARB0 = 0x00000000

117 [  985.107741] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] 0x0 + REG_SMI_L1ARB1 = 0x000009B1

118 [  985.108836] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] 0x0 + REG_SMI_L1ARB2 = 0x00000AA8

119 [  985.109932] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] 0x0 + REG_SMI_L1ARB3 = 0x00000909

120 [  985.111072] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] 0x0 + REG_SMI_L1ARB4 = 0x00000000

121 [  985.112163] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145][SMI_REG] : <Reduce Command Buffer- Common>

122 [  985.113247] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] 0x0 + REG_SMI_READ_FIFO_TH = 0x00001560

123 [  985.114407] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145][SMI_REG] : <Reduce Command Buffer - LARB>

124 [  985.115481] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] LARB0_BASE + 0x10 = 0x0047C003

125 [  985.116544] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] LARB1_BASE + 0x10 = 0x0047C003

126 [  985.117607] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] LARB2_BASE + 0x10 = 0x0047C003

127 [  985.118670] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] LARB3_BASE + 0x10 = 0x0047C003

128 [  985.119733] (1)[2964:MtkOmxVdecDecod][SMI] [pid=145] [SMI_REG] LARB4_BASE + 0x10 = 0x0047C003

请指点  这大概是哪出错了?

回答:

这样的问题一边都是 camera 传输到DMA的数据有问题,查看数据接口,你这里硬件的时钟和数据接反了!