1.1 Problem description
In dual-camera use case, to make sure each camera can get a VFE, it needs1. Sensor output op_clk is configured lower
than VFE turbo clock by customer.2. Sensor output width and height are lower than ISP max width and max height.
1.2 ISP allocation workflow
Reference code locates in
vendor\qcom\proprietary\mm-camera\mm-camera2\mediacontroller\modules\isp2\module
and workflow of function: isp_resource_reserve_isp()is as follow.
1.3 Configure ISP Clock setting to support dual-cam
By default, Sensor will be allocated 2 VFEs if sensor op_clk is higher than ISP normal clk to
avoid turbo VFE clk and save power. If thw first sensor get two ISPs, and the second sensor will
get none.
Refer to the workflow of ISP allocation flow, following command will allow VFE run at turbo
clk and try to use just one VFE as possible:
adb root
adb shell setprop persist.camera.isp.dualisp 0
adb shell setprop persist.camera.isp.turbo 1
adb reboot
adb wait-for-devices