我在另外一个平台上 遇到 开关 LVDS 背光使能控制
关闭背光使能 disp驱动会调用PWM失能;
再次开启背光 虽然软件调用 PWM 使能; 但是 实际 PWM 无功能。
drivers/video/sunxi/disp2/disp/dev_disp.c
case DISP_LCD_BACKLIGHT_ENABLE:
{
if (mgr && mgr->device) {
- if (mgr->device->pwm_enable)
- mgr->device->pwm_enable(mgr->device);
+ // if (mgr->device->pwm_enable) 不重复控制PWM开关
+ // mgr->device->pwm_enable(mgr->device);
if (mgr->device->backlight_enable)
mgr->device->backlight_enable(mgr->device);
case DISP_LCD_BACKLIGHT_DISABLE:
{
if (mgr && mgr->device) {
- if (mgr->device->pwm_disable)
- mgr->device->pwm_disable(mgr->device);
+ // if (mgr->device->pwm_disable) 不重复控制PWM开关
+ // mgr->device->pwm_disable(mgr->device);
if (mgr->device->backlight_disable)
mgr->device->backlight_disable(mgr->device);
return 0;