|
发表于 2020-9-22 16:32:42
6350 浏览 0 回复
MTK6771 前摄录像后,后摄的对焦功能失效的问题
kernel-4.14/drivers/misc/mediatek/lens/main/main_lens.c中的AFRegulatorCtrl()修改 else {
if (regVCAMAF != NULL && g_regVCAMAFEn == 1) {
int Status = regulator_is_enabled(regVCAMAF);
LOG_INF("regulator_is_enabled %d\n", Status);
if (Status) {
LOG_INF("Camera Power enable\n");
+ Status = regulator_set_voltage(
+ regVCAMAF, 0, 0);
+
+ LOG_INF("regulator_set_voltage %d\n", Status);
+
+ if (Status != 0)
+ LOG_INF("regulator_set_voltage fail\n");
+
Status = regulator_disable(regVCAMAF);
LOG_INF("regulator_disable %d\n", Status);
if (Status != 0)
- LOG_INF("Fail to regulator_disable\n");
+ LOG_INF("regulator_disable fail\n");
+
+ msleep(1);
+
+ Status = regulator_set_voltage(
+ regVCAMAF, 2800000, 2800000);
+
+ LOG_INF("regulator_set_voltage %d\n", Status);
+
+ if (Status != 0)
+ LOG_INF("regulator_set_voltage fail\n");
+
+ Status = regulator_enable(regVCAMAF);
+ LOG_INF("regulator_enable %d\n", Status);
+
+ if (Status != 0)
+ LOG_INF("regulator_enable fail\n");
+
+
}
|
|
|
|
|
|
|
登录或注册
|