6572闪光灯不亮
CUSTOM_HAL_FLASHLIGHT=constant_flashlight
CUSTOM_KERNEL_FLASHLIGHT=constant_flashlight
驱动加在Leds_strobe.c (custom\MT6572\kernel\flashlight\constant_flashlight)
int FL_enable(void)
int FL_disable(void)
抓出来的LOG是
<6>[ 52.757055] (1)[152:mediaserver][KD_CAMERA_FLASHLIGHT]flashlight_open: [flashlight_open] E
<6>[ 52.757110] (1)[152:mediaserver][KD_CAMERA_FLASHLIGHT]kdSetFlashlightDrv: [kdSetFlashlightDrv] flashlightIdx: 1
<6>[ 52.757131] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.757141] (1)[152:mediaserver]constant_flashlight_open: constant_flashlight_open line=252
<6>[ 52.757154] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.757163] (1)[152:mediaserver]FL_init: FL_init
<6>[ 52.757177] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.757186] (1)[152:mediaserver]FL_disable: FL_disableflash_led_on_off en=0
<0>[ 52.757200] (1)[152:mediaserver][LED]PMIC#6:0
<0>[ 52.757821] (1)[152:mediaserver][LED]PMIC#7:0
<6>[ 52.758477] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.758495] (1)[152:mediaserver]constant_flashlight_ioctl: constant_flashlight_ioctl() line=198 cmd=-2147200231, ior=-2147200256, iow=1074025216 iowr=-1073458432 arg=1092468856
<6>[ 52.758512] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.758523] (1)[152:mediaserver]constant_flashlight_ioctl: constant_flashlight_ioctl() line=199 cmd-ior=25, cmd-iow=1073741849 cmd-iowr=-1073741799 arg=1092468856
<6>[ 52.758539] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.758548] (1)[152:mediaserver]constant_flashlight_ioctl: No such command
<6>[ 52.758590] (1)[152:mediaserver][KD_CAMERA_FLASHLIGHT]flashlight_release: [flashlight_release] E
<6>[ 52.758604] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.758612] (1)[152:mediaserver]constant_flashlight_release: constant_flashlight_release
<6>[ 52.758624] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.758632] (1)[152:mediaserver]FL_uninit: FL_uninit
<6>[ 52.758641] (1)[152:mediaserver][leds_strobe.c]
<6>[ 52.758656] (1)[152:mediaserver]FL_disable: FL_disableflash_led_on_off en=0
constant_flashlight_ioctl: constant_flashlight_ioctl()这个函数数传的值不对

直接跑default了,不知是哪里出问题了,求高手指点!
1.请在projectConfig.mk中将CUSTOM_KERNEL_FLASHLIGHT及CUSTOM_HAL_FLASHLIGHT配置成constant_flashlight
2.驱动部分,请将[alps\mediatek\custom\common\kernel\flashlight\constant_flashlight\leds_strobe.c]
copy到[alps\mediatek\custom\$PROJECT\kernel\flashlight\constant_flashlight\leds_strobe.c]
72框架变了,alps\mediatek\custom\$PROJECT\kernel\flashlight\constant_flashlight\leds_strobe.c没有这个目录,Leds_strobe.c (custom\mt6572\kernel\flashlight\constant_flashlight)驱动是修改的这个没错的
打LOG看了没有?有没有跑到你加的地方?
没跑到
不会吧,我的也是72,跟你同样的问题,PROJECT下没有的话,那看下MT6572下有没这个目录。
我改的就是72目录下的,而且两个leds_strobe.c文件都一样的也不行
我 的闪光灯图标没有,怎么回事阿
解决了的顶一下
兄弟解决了?
我觉得你驱动应该是OK的!毕竟都已经调用到了,只是上层传下来的参数不对!所以没跑到enable disable这函数。觉得可以可能还是哪里配置没搞好!
遇到过一次代码完全正确,最后发现是硬件的问题
请问这个问题怎么解决的?
我也在调试闪光。
我也遇到了这样的问题,求大神解答下
