栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

[SDM660 Android9.0]camera所遇问题与解决方法

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

[SDM660 Android9.0]camera所遇问题与解决方法

1.imx214报错

内核打印如下

[   17.331689] msm_cci_init:1439: hw_version = 0x10060000
[   17.332291] msm_cci_irq:1803 MASTER_1 error 0x40000000
[   17.332328] msm_cci_i2c_read:960 read_words = 0, exp words = 1
[   17.332330] msm_cci_i2c_read_bytes:1043 failed rc -22
[   17.332332] msm_camera_cci_i2c_read: line 47 rc = -22
[   17.332334] msm_sensor_match_id: imx214: read id failed
[   17.332336] msm_sensor_check_id:1410 match id failed rc -22
[   17.341576] msm_camera_config_single_vreg can't disable cam_vio
[   17.380828] imx214 power up failed

原因:两个模组的i2c地址v不一样,原来的是0x20 新模组是0x34

imx214时而可以 时而不行;跑到usbcamera去

修改hardwareqcomcameraQCamera2QCamera2Factory.cpp

修改令其不跑到usbcamera

上电正常 出图异常
[   78.958788] overflow processed
[   79.004014] msm_isp_axi_halt: VFE1 Bus overflow detected: start recovery!
[   79.004515] msm_vfe47_axi_halt: VFE1 halt for recovery, blocking 1
[   79.023377] msm_ispif_restart_frame_boundary: ISPIF reset hw done, Restarting
[   79.052558] msm_vfe47_process_violation_status: VFE pipeline violation status 1
[   79.085689] msm_isp_process_overflow_irq: vfe 1 overflowmask 10,bus_error 2307
[   79.085734] msm_vfe47_axi_halt: VFE1 halt for recovery, blocking 0
[   79.091828] overflow processed
[   81.421366] msm_private_ioctl:Notifying subdevs about potential sof freeze
[   81.421543] msm_csid_irq CSID1_IRQ_STATUS_ADDR = 0xff
[   81.427800] msm_csiphy_irq: 12 callbacks suppressed
[   81.432288] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR0 = 0x0
[   81.436981] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR1 = 0x1
[   81.442535] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR2 = 0x0
[   81.447916] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR3 = 0x20
[   81.453297] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR4 = 0x0
[   81.458680] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR5 = 0x0
[   81.464149] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR6 = 0x4
[   81.469530] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR7 = 0x0
[   81.474913] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR8 = 0x80
[   81.480295] msm_csiphy_irq CSIPHY1_IRQ_STATUS_ADDR9 = 0x40
[   81.485911] ispif_process_irq: PIX0 frame id: 75
[   81.491796] MSM-SENSOR-INIT msm_sensor_init_subdev_ioctl:119 default
[   81.491796]
[   81.513767] ispif_process_irq: PIX0 frame id: 76
[   81.547028] ispif_process_irq: PIX0 frame id: 77
[   81.580308] ispif_process_irq: PIX0 frame id: 78
[   81.613564] ispif_process_irq: PIX0 frame id: 79

原因:缺少0310下对于对应sensor的效果参数函数

骏龙相机 只能打开两个 无法打开三个

配置packagesappsSnapdragonCamerasrccomandroidcameraVideoMenu.java
packagesappsSnapdragonCamerasrccomandroidcameraPhotoMenu.java

initSwitchItem: 
               if (index >= 3)
                {
                    index  = index % 3;
                }
                //end

编译system.img 重新烧录即可

摄像头打开闪退 报错------开机过程中 camera num 异常
01-01 08:08:07.163   676  4464 E QCamera :  allocOneBuffer: 500: ION allocation failed: Invalid argument
01-01 08:08:07.163   676  4464 E QCamera :  alloc: 401: AllocateIonMemory failed
01-01 08:08:07.166   676  2104 I mm-camera: < INFO> 118: mct_controller_new: Creating new mct_controller with session-id 4
01-01 08:08:07.167   676  4468 I mm-camera: < INFO> 5156: mct_pipeline_start_session_thread: E sensor
01-01 08:08:07.167   676  4468 I mm-camera: < INFO> 5163: mct_pipeline_start_session_thread: Calling start_session on Module sensor
01-01 08:08:07.167   676  4468 D mm-camera: < HIGH> 1574: module_sensor_start_session: sessionid 4
01-01 08:08:07.167   676  4468 D mm-camera: <  LOW> 22: module_sensor_dualcamera_reset_pc_params: Reset phase correction paramertes
01-01 08:08:07.167   676  4468 D mm-camera: <  LOW> 1344: module_sensor_init_session: primary sd index = 0, id = 0 subdev name v4l-subdev22,
01-01 08:08:07.167   676  4468 D mm-camera: <  LOW> 1347: module_sensor_init_session: secondary sd index 0 subdev name , secondary id = -1
01-01 08:08:07.167   676  4468 D mm-camera: <  LOW> 1344: module_sensor_init_session: primary sd index = 1, id = 0 subdev name ,
01-01 08:08:07.167   676  4468 D mm-camera: <  LOW> 1347: module_sensor_init_session: secondary sd index 1 subdev name , secondary id = -1
01-01 08:08:07.167   676  4468 D mm-camera: <  LOW> 1344: module_sensor_init_session: primary sd index = 2, id = 0 subdev name ,
01-01 08:08:07.167   676  4468 D mm-camera: <  LOW> 1347: module_sensor_init_session: secondary sd index 2 subdev name , secondary id = -1

预览失败问题
sensor info: name: imx214, res: 2, max_fps: 30.000000, w: 4208, h: 3120 op pix clk: 465000000, FLL: 3
190, LLPCK: 5008, mode: 1, PDAF support: 0

分辨率问题:驱动里输出的分辨率2 没配到寄存器去,要不配置寄存器 要不删除掉第二组分辨率

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/926735.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号