Autofocus not working Android 11 imx8m mini

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Autofocus not working Android 11 imx8m mini

984 次查看
BHAVANI_S
Contributor I

Hi all,

We are working on a project using an i.MX8M Mini Processor SOM that runs on Android 11 and uses an OV5640-1b camera with Auto Focus support connected over MIPI-CSI. Currently we are using  https://github.com/boundarydevices/linux/blob/boundary-android-11.0.0_2.2.0/drivers/media/platform/m...  driver in our implementation.

The autofocus functionality for capture of a single focused image is not working with this driver. We have debugged further and these are the observations made:

1. The init and probe functions are getting called and the firmware is getting downloaded.

2. The init sequence for single focus as mentioned in the OV5640 Application notes 

    a. Write 0x03 to register 0x3022 to start single focus
    b. read back register 0x3029, if the read back value is 0x10, then focus is finished.
    c. Write 0x06 to register 0x3022 to pause auto focus. Lens will stay in current focus position.

and the ov5640_af_start_single function are not getting called by the driver.

3. When pressed on autofocus it is calling OV5640_stream_off and going into software power down mode. 

The custom logacat and dmesg logs, OV5640 application notes and the driver codes are attached with this mail.  

Please can you suggest to us as to how we can trigger single focus and further steps to be taken to debug this issue.

 

Thanks and Regards,

Bhavani S

0 项奖励
回复
1 回复

955 次查看
gary_bisson
Senior Contributor III

Hi,

Camera autofocus is a feature only available in Boundary Devices BSP you will not get help here.

And as mentioned on another thread, the feature is working properly on our platform, please check on a Nitrogen8M Mini SBC.

Regards,

0 项奖励
回复