AF引起的camera偶现卡顿问题

相关log如下:

01-01 08:04:26.299 867 3220 E Camera2Client: syncWithDevice: Camera 0: Timed out waiting sync with HAL
01-01 08:04:26.799 867 867 E Camera2Client: syncWithDevice: Camera 0: Timed out waiting sync with HAL
01-01 08:04:27.310 867 867 E Camera2Client: syncWithDevice: Camera 0: Timed out waiting sync with HAL
01-01 08:04:27.820 867 2944 E Camera2Client: syncWithDevice: Camera 0: Timed out waiting sync with HAL

 

ve_addr=0xc, ptr=0x0xaad59744, count=2
3411166 11-22 22:49:58.543 922 29482 E cmr_msg : L 271, cmr_msg_post: MSG Overflow
3411167 11-22 22:49:58.553 922 29473 I : L 121, dw9714_write_dac_code: 700
3411168 11-22 22:49:58.553 922 29473 I sensor_drv_u: L 592, Sensor_WriteI2C: slave_addr=0xc, ptr=0x0xaac5b37c, count=2
3411169 11-22 22:49:58.553 922 29482 E cmr_msg : L 271, cmr_msg_post: MSG Overflow
3411170 11-22 22:49:58.553 922 29472 I : L 121, dw9714_write_dac_code: 680
3411171 11-22 22:49:58.553 922 29472 I sensor_drv_u: L 592, Sensor_WriteI2C: slave_addr=0xc, ptr=0x0xaad59744, count=2
3411172 11-22 22:49:58.563 922 29473 I : L 121, dw9714_write_dac_code: 700
3411173 11-22 22:49:58.563 922 29473 I sensor_drv_u: L 592, Sensor_WriteI2C: slave_addr=0xc, ptr=0x0xaac5b37c, count=2
3411174 11-22 22:49:58.563 922 29472 I : L 121, dw9714_write_dac_code: 680
3411175 11-22 22:49:58.563 922 29472 I sensor_drv_u: L 592, Sensor_WriteI2C: slave_addr=0xc, ptr=0x0xaad59744, count=2
3411176 11-22 22:49:58.573 922 29473 I : L 121, dw9714_write_dac_code: 700
3411177 11-22 22:49:58.573 922 29473 I sensor_drv_u: L 592, Sensor_WriteI2C: slave_addr=0xc, ptr=0x0xaac5b37c, count=2
3411178 11-22 22:49:58.573 922 29472 I : L 121, dw9714_write_dac_code: 680
3411179 11-22 22:49:58.573 922 29472 I sensor_drv_u: L 592, Sensor_WriteI2C: slave_addr=0xc, ptr=0x0xaad59744, count=2
3411180 11-22 22:49:58.583 922 29482 E cmr_msg : L 271, cmr_msg_post: MSG Overflow

 

 

 

问题原因:af驱动异常,连续点击对焦,会频繁执行dw9714_write_af操作时,导致里面两个while执行死循环,导致消息响应异常,出现cmr_msg : 286, cmr_msg_post: MSG Overflow
解决方案:加入锁保证,每次下发的dw9714_write_af操作正常完成
请用今天之后的版本验证此问题。

posted @ 2016-12-27 10:47  knightsoul  阅读(661)  评论(0编辑  收藏  举报