Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333590
b: refs/heads/master
c: cea87b9
h: refs/heads/master
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Sep 26, 2012
1 parent 1df0fb7 commit 48eb89a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 8f1f736c4521ac709d4c5805fa31d395804b162a
refs/heads/master: cea87b92da825f24efd11112d414f6c8cdd4ced8
16 changes: 10 additions & 6 deletions trunk/drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)
{
int r;
struct omap_video_timings *p;
struct omap_overlay_manager *mgr = dssdev->output->manager;
unsigned long phy;

gpio_set_value(hdmi.ct_cp_hpd_gpio, 1);
Expand All @@ -520,7 +521,7 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)
if (r)
goto err_runtime_get;

dss_mgr_disable(dssdev->manager);
dss_mgr_disable(mgr);

p = &hdmi.ip_data.cfg.timings;

Expand Down Expand Up @@ -562,13 +563,13 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)
dispc_enable_gamma_table(0);

/* tv size */
dss_mgr_set_timings(dssdev->manager, p);
dss_mgr_set_timings(mgr, p);

r = hdmi.ip_data.ops->video_enable(&hdmi.ip_data);
if (r)
goto err_vid_enable;

r = dss_mgr_enable(dssdev->manager);
r = dss_mgr_enable(mgr);
if (r)
goto err_mgr_enable;

Expand All @@ -592,7 +593,9 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)

static void hdmi_power_off(struct omap_dss_device *dssdev)
{
dss_mgr_disable(dssdev->manager);
struct omap_overlay_manager *mgr = dssdev->output->manager;

dss_mgr_disable(mgr);

hdmi.ip_data.ops->video_disable(&hdmi.ip_data);
hdmi.ip_data.ops->phy_disable(&hdmi.ip_data);
Expand Down Expand Up @@ -689,14 +692,15 @@ bool omapdss_hdmi_detect(void)

int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev)
{
struct omap_dss_output *out = dssdev->output;
int r = 0;

DSSDBG("ENTER hdmi_display_enable\n");

mutex_lock(&hdmi.lock);

if (dssdev->manager == NULL) {
DSSERR("failed to enable display: no manager\n");
if (out == NULL || out->manager == NULL) {
DSSERR("failed to enable display: no output/manager\n");
r = -ENODEV;
goto err0;
}
Expand Down

0 comments on commit 48eb89a

Please sign in to comment.