backlight: fix screen shine when poweroff
authorlyx <lyx@rock-chips.com>
Fri, 28 Sep 2012 03:37:11 +0000 (11:37 +0800)
committerlyx <lyx@rock-chips.com>
Fri, 28 Sep 2012 03:43:42 +0000 (11:43 +0800)
[问题描述]
关机时lcd屏幕会闪烁

[问题分析]
lcd闪烁的原因是背光先与lcd打开,或背光后于lcd关闭;
目前代码在关机的时候并没有关闭背光的硬件开关,导致闪烁;

[修改说明]
背光的shutdown函数中,增加背光的关闭

drivers/video/backlight/rk29_backlight.c

index 49a78e3df7661616af9e71cdf501502db816ca29..596c37e8c6df14a71870b74fe009190a5b4594e0 100755 (executable)
@@ -335,6 +335,9 @@ static void rk29_backlight_shutdown(struct platform_device *pdev)
        rk29_bl->props.brightness = 0;
        rk29_bl_update_status(rk29_bl);
 
+       if (rk29_bl_info && rk29_bl_info->pwm_suspend)
+               rk29_bl_info->pwm_suspend();
+
        if (rk29_bl_info && rk29_bl_info->io_deinit)
                rk29_bl_info->io_deinit();
 }