Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271423
b: refs/heads/master
c: fa70dc5
h: refs/heads/master
i:
  271421: 57abb1f
  271419: ba4bba2
  271415: 327a30a
  271407: e9b411d
  271391: ef59c5f
  271359: 475eba0
v: v3
  • Loading branch information
Tomi Valkeinen committed Sep 30, 2011
1 parent f26cbda commit dc34bc4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df4769c9c4effa0960ead8d83522407f66e4a82a
refs/heads/master: fa70dc5f472ddc261ad429f2c12eb7ac31c90b87
13 changes: 11 additions & 2 deletions trunk/drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,20 @@ void omapdss_hdmi_display_set_timing(struct omap_dss_device *dssdev)
struct hdmi_cm cm;

hdmi.custom_set = 1;

cm = hdmi_get_code(&dssdev->panel.timings);
hdmi.code = cm.code;
hdmi.mode = cm.mode;
omapdss_hdmi_display_enable(dssdev);
hdmi.custom_set = 0;

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) {
int r;

hdmi_power_off(dssdev);

r = hdmi_power_on(dssdev);
if (r)
DSSERR("failed to power on device\n");
}
}

int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev)
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/video/omap2/dss/hdmi_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,7 @@ static void hdmi_set_timings(struct omap_dss_device *dssdev,
mutex_lock(&hdmi.hdmi_lock);

dssdev->panel.timings = *timings;

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) {
/* turn the hdmi off and on to get new timings to use */
omapdss_hdmi_display_disable(dssdev);
omapdss_hdmi_display_set_timing(dssdev);
}
omapdss_hdmi_display_set_timing(dssdev);

mutex_unlock(&hdmi.hdmi_lock);
}
Expand Down

0 comments on commit dc34bc4

Please sign in to comment.