camera issues

Issues found during bring up ov5675 & ov13850 on new platform:
1. i2c error during probe.
i2c conflict - both 0x20, while should be front 0x20, back 0x6c.

WA for this i2c conflict: force set correct i2c slave address in sensor driver, to overwrite the reg=<.xxx..> specified in DTS.

Formal solution: add <,slave_addr> new attribute in DTS, and parse it in sensor driver, to overwrite reg=<> as real device slave addr.


2. camera app can't start up with error.
a) camera profile is missing - due to camera profile should be added through mixins&hald instead of directly copied to /system/etc/.
b) camera tuning file is missing - 01ov2740.sltquanta.aiqb. (ro.product.device/board/platform) -> media service failed to start up, and keeps restarting.


3. preview is all black.

user space buffer alloc failed. one 128MB “cma-heap” + one 160MB “secured-heap”, while secured-heap is not added as expected.


4. camera app missing.

XGOLD mis-typed as XGLOD in driver Kconfig.


5. MIPI ERROR.

a) adapt HTS/VTS, to make sure vblanking time > 3000ms so that ISP registers can be updated in time.

b) DPHY config adaptation in DTS.


6. preview stretched.

720p@30fps, 2592x1944@15fps, during preivew, ISP driver values fps over ratio. It choose 16:9 720p config, then ISP stretched to 4:3 for preview.


7. raw image data dump with v4l2 tool.

a) due to HW bug in CIF ISP2.0, output is stored in 2 buffers instead of 1. Have to re-assemble data in v4l2 tools to dump raw data.
b) ISP2.0 driver not support VIDEOC_QUERYCAP, have to adjust tool otherwise raw dump fail.
c) SP can't be activated when MP is set to raw data output(ISP driver limitation).


8. flash not work.

no flash driver code for newly used driver IC.


9. flash is turned on during power on/off.

gpio pcl config problem.


10. handling shared GPIO between 2 camera sensors.

flash_trig & dvdd_1v2_en are shared. request/release them when power on/off sensors, instead of doing that during init/release.


11. Snapshot FOV(Field Of View) changes comparing to preview.

available configs: 1280*720@30fps, 5M@15fps. When do 4:3 preview, ISP driver choose configs with higher frame rates over ratio. So it chose 1280*720@30fps even though ratio is not 4:3. During capture, it use 5M@15fps, which is 4:3. Config ratio difference during preview & capture results in FOV change. Add a 1280*960@30fps solves the problem.

你可能感兴趣的:(camera issues)