请问mt6755上如何配置双闪光灯
1.Porting sub driver
path: mediatek\custom\common\kernel\flashlight\src\sub_strobe.c
If flash driver has written for main flash, following is the steps to
change to sub flash driver.
-- change one word in the driver.
//leds_strobe.c, main led driver
……
MUINT32 constantFlashlightInit(PFLASHLIGHT_FUNCTION_STRUCT *pfFunc)
……
--------------------------------------
//sub_strobe.c, sub led driver
……
MUINT32 subStrobeInit(PFLASHLIGHT_FUNCTION_STRUCT *pfFunc)
……
-- remove
/* LED flash control for high current capture mode*/
ssize_t strobe_VDIrq(void)
{
return 0;
}
EXPORT_SYMBOL(strobe_VDIrq);
-- change file name to sub_strobe.c
2.Modified parameters file
–flash_tuning_custom_sub.cpp
–flash_tuning_custom_cct_sub.cpp
3.Enable sub flash
#define SUB_FLASH_SUPPORT 1思路应该是一样的
...........
学习学习,就没见过55
你这个应该说的是前摄代闪光灯的吧
我问的是后摄两个闪光灯,双色温的
你这个应该说的是前摄代闪光灯的吧
我问的是后摄两个闪光灯,双色温的
我知道双色温的意思,不过没有了解过,MT6755是否支持这个功能?
这个需要软件上的算法配合才行。
不是简单的拍照时两个LED同时亮一下就行的。
我现在就是配置成双闪的时候 摄像头就没图像了
我现在就是配置成双闪的时候 摄像头就没图像了
估计是他们的算法的事。因为这个双色温的东西,需要算法后才会用LED去补偿。
134.181577] [name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]flashlight_open: [flashlight_open] E ~
[ 134.183518] <6>.(6)[1226:Binder_3][name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]my_ioctl_compat: flash my_ioctl_compat2 line=678 cmd=-1073458402 arg=3946312524
[ 134.185601] [name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]flashlight_ioctl_core: flashlight_ioctl cmd=0xc004531e(nr=30), senorDev=0x1 ledId=0x1 arg=0x0
[ 134.187283] <6>.(6)[1226:Binder_3][name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]setFlashDrv: setFlashDrv sensorDev=1, strobeId=1, partId=1 ~[ 134.188861] <6>.(6)[1226:Binder_3][name:leds_strobe&]leds_HT_str6
[ 134.190291] <6>.(6)[1226:Binder_3][name:leds_strobe&]leds_HT_strobeFL_Init: LED1_FL_Init!
[ 134.191308] <6>.(6)[1226:Binder_3][name:leds_strobe&]leds_HT_strobeFL_Init: FL_Init line=902
[ 134.192511] <6>.(6)[1226:Binder_3][name:leds_strobe&]leds_HT_strobeconstant_flashlight_open: constant_flashlight_open line=1033
[ 134.193939] <6>.(6)[1226:Binder_3][name:leds_strobe&]leds_HT_strobeconstant_flashlight_open: constant_flashlight_open line=1049
[ 134.195370] [name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]setFlashDrv: setFlashDrv ok 369
[ 134.197593] <6>.(6)[1226:Binder_3][name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]my_ioctl_compat: flash my_ioctl_compat2 line=678 cmd=-1073458402 arg=3946312524
[ 134.199577] [name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]flashlight_ioctl_core: flashlight_ioctl cmd=0xc004531e(nr=30), senorDev=0x1 ledId=0x2 arg=0x0
[ 134.201370] <6>.(6)[1226:Binder_3][name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]setFlashDrv: setFlashDrv sensorDev=1, strobeId=2, partId=1 ~[ 134.203133] <6>.(6)[1226:Binder_3][name:strobe_main_sid2_part1&]7
[ 134.205032] <5>.(5)[1226:Binder_3][name:strobe_main_sid2_part1&][strobe_main_sid2_part1.c]FL_Init: FL_Init line=131
[ 134.206349] <5>.(5)[1226:Binder_3][name:strobe_main_sid2_part1&][strobe_main_sid2_part1.c]constant_flashlight_open: constant_flashlight_open line=343
[ 134.208015] <5>.(5)[1226:Binder_3][name:strobe_main_sid2_part1&][strobe_main_sid2_part1.c]constant_flashlight_open: constant_flashlight_open line=356
[ 134.209683] [name:kd_flashlightlist&][KD_CAMERA_FLASHLIGHT]setFlashDrv: setFlashDrv ok 369
[ 134.213395] <5>.(5)[1226:Binder_3]Binder_3[1226]: unhandled level 1 translation fault (11) at 0x00000000, esr 0x83000005
[ 134.214766] <5>.(5)[1226:Binder_3]pgd = ffffffc0aa911000
[ 134.215426] [00000000] *pgd=0000000000000000, *pud=0000000000000000
[ 134.216205] <5>.(5)[1226:Binder_3]
[ 134.216633] <5>.(5)[1226:Binder_3]CPU: 5 PID: 1226 Comm: Binder_3 Tainted: G W 3.18.22+ #36
[ 134.217801] <5>.(5)[1226:Binder_3]Hardware name: MT6755 (DT)
[ 134.218507] <5>.(5)[1226:Binder_3]task: ffffffc092684000 ti: ffffffc0972c0000 task.ti: ffffffc0972c0000
[ 134.219678] <5>.(5)[1226:Binder_3]PC is at 0x0
[ 134.220231] <5>.(5)[1226:Binder_3]LR is at 0xe626cb6b
[ 134.221394] <6>.(6)[1226:Binder_3]pc : [<0000000000000000>] lr : [<00000000e626cb6b>] pstate: a0070010
[ 134.222646] <6>.(6)[1226:Binder_3]sp : 00000000eb37f3a8
[ 134.223289] x12: 00000000e62f0208
[ 134.223710] x11: 000000000000ffff x10: 00000000eb37f3b0
[ 134.224494] x9 : 00000000e640b46c x8 : 0000000000000000
[ 134.225155] x7 : 00000000e640b46c x6 : 00000000ffffffff
[ 134.225817] x5 : 00000000ffffffff x4 : 00000000e640b768
[ 134.226478] x3 : 000000000000000e x2 : 0000000000000000
是还有要修改别的地方吗