mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-20 04:21:14 +09:00
rk fb : fix flash screen when switch hdmi
This commit is contained in:
@@ -629,7 +629,6 @@ int rk_fb_switch_screen(rk_screen *screen ,int enable ,int lcdc_id)
|
||||
int ret;
|
||||
int i;
|
||||
int layer_id;
|
||||
bool backlight_status = rk29_get_backlight_status();
|
||||
|
||||
#if defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)
|
||||
rk29_backlight_set(0);
|
||||
@@ -764,10 +763,10 @@ int rk_fb_switch_screen(rk_screen *screen ,int enable ,int lcdc_id)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NO_DUAL_DISP) //close backlight for device whic do not support dual display
|
||||
rk29_backlight_set(!enable);
|
||||
#elif defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF) //close backlight for device whic do not support dual display
|
||||
if(backlight_status == true)
|
||||
if(!enable)
|
||||
rk29_backlight_set(1);
|
||||
#elif defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF) //close backlight for device whic do not support dual display
|
||||
rk29_backlight_set(1);
|
||||
#endif
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user