I try to use the camera to focus on quite short distance. About 25cm. It seem not to focus on this distance.
Is it possible to adjust the lens physically?
Is there a way to play around with the autofocus settings apart from directly writing into the I2C registers?
Datasheet for camera indicated 10cm to inf. Object Distance. We don’t have any control over vcm from our linux driver, but default values should be good for the entire range. Lens is non-adjustable and touching it may damage the voice call actuator used for focusing.
There is some interesting code enabling macro mode in android brcm platform kernel:
https://android.googlesource.com/kernel/bcm/+/android-bcm-tetra-3.10-lollipop-wear-release/drivers/media/i2c/soc_camera/ov5640.c#877