mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-21 04:51:09 +09:00
update hdmi driver: about backlight control
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user