static int hdmi_panel_enable(struct omap_dss_device *dssdev) { int r = 0; DSSDBG("ENTER hdmi_panel_enable\n"); HDMIDBG("ENTER \n"); mutex_lock(&hdmi.hdmi_lock); if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED) { r = -EINVAL; goto err; } r = omapdss_hdmi_display_enable(dssdev); if (r) { DSSERR("failed to power on\n"); goto err; } dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; err: mutex_unlock(&hdmi.hdmi_lock); HDMIDBG("error:%d\n", r); return r; }
static int hdmi_panel_enable(struct omap_dss_device *dssdev) { int r = 0; pr_info("hdmi_panel: ENTER hdmi_panel_enable\n"); dss_runtime_get(); mutex_lock(&hdmi.hdmi_lock); if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED) { r = -EINVAL; pr_info("hdmi_panel: Error, display already enabled\n"); goto err; } r = omapdss_hdmi_display_enable(dssdev); if (r) { DSSERR("hdmi_panel: Error, failed to power on\n"); goto err; } dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; err: mutex_unlock(&hdmi.hdmi_lock); dss_runtime_put(); return r; }
static int hdmi_panel_enable(struct omap_dss_device *dssdev) { int r = 0; DSSDBG("ENTER hdmi_panel_enable\n"); mutex_lock(&hdmi.hdmi_lock); if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED) { r = -EINVAL; goto err; } /* Always re-detect HDMI device during resume */ hdmi_panel_hpd_handler(hdmi_get_current_hpd()); dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; r = omapdss_hdmi_display_enable(dssdev); if (r) { DSSERR("failed to power on\n"); dssdev->state = OMAP_DSS_DISPLAY_DISABLED; goto err; } err: mutex_unlock(&hdmi.hdmi_lock); return r; }
static int hdmi_panel_resume(struct omap_dss_device *dssdev) { int r = 0; mutex_lock(&hdmi.hdmi_lock); if (dssdev->state != OMAP_DSS_DISPLAY_SUSPENDED) { r = -EINVAL; goto err; } r = omapdss_hdmi_display_enable(dssdev); if (r) { DSSERR("failed to power on\n"); goto err; } dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; err: mutex_unlock(&hdmi.hdmi_lock); return r; }