update hdmi driver: about backlight control

This commit is contained in:
kfx
2011-06-06 17:30:43 +08:00
parent cd1871b8eb
commit 599eed36cd
2 changed files with 12 additions and 9 deletions

View File

@@ -127,13 +127,6 @@ static void rk29_bl_suspend(struct early_suspend *h)
suspend_flag = 1;
}
void rk29_backlight_set(bool on)
{
printk("%s: set %d\n", __func__, on);
return;
}
EXPORT_SYMBOL(rk29_backlight_set);
static void rk29_bl_resume(struct early_suspend *h)
{
struct rk29_bl_info *rk29_bl_info = bl_get_data(rk29_bl);
@@ -153,6 +146,16 @@ static struct early_suspend bl_early_suspend = {
.level = EARLY_SUSPEND_LEVEL_BLANK_SCREEN - 1,
};
#endif
void rk29_backlight_set(bool on)
{
printk("%s: set %d\n", __func__, on);
if(on)
rk29_bl_resume(NULL);
else
rk29_bl_suspend(NULL);
return;
}
EXPORT_SYMBOL(rk29_backlight_set);
static int rk29_backlight_probe(struct platform_device *pdev)
{

View File

@@ -39,7 +39,7 @@ static int anx7150_param_chg(struct anx7150_pdata *anx)
int resolution_real;
hdmi_set_spk(anx->hdmi->display_on);
hdmi_set_backlight(anx->hdmi->display_on);
hdmi_set_backlight(!anx->hdmi->display_on);
hdmi_switch_fb(anx->hdmi, anx->hdmi->display_on);
resolution_real = ANX7150_Get_Optimal_resolution(anx->hdmi->resolution);
HDMI_Set_Video_Format(resolution_real);
@@ -87,7 +87,7 @@ static int anx7150_remove(struct hdmi *hdmi)
anx7150_unplug(anx->client);
hdmi_set_spk(HDMI_DISABLE);
hdmi_set_backlight(HDMI_DISABLE);
hdmi_set_backlight(HDMI_ENABLE);
hdmi_switch_fb(hdmi, HDMI_DISABLE);
return 0;