static void hdmi_panel_disable(struct omap_dss_device *dssdev)
{
	mutex_lock(&hdmi.hdmi_lock);
	hdmi_inform_power_on_to_cec(false);
	if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
		omapdss_hdmi_display_disable(dssdev);

	dssdev->state = OMAP_DSS_DISPLAY_DISABLED;

	mutex_unlock(&hdmi.hdmi_lock);
}
Beispiel #2
0
static void hdmi_panel_disable(struct omap_dss_device *dssdev)
{
	HDMIDBG("ENTER \n");
	mutex_lock(&hdmi.hdmi_lock);

	if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
		omapdss_hdmi_display_disable(dssdev);

	dssdev->state = OMAP_DSS_DISPLAY_DISABLED;

	mutex_unlock(&hdmi.hdmi_lock);
}
Beispiel #3
0
static void hdmi_set_timings(struct omap_dss_device *dssdev,
                             struct omap_video_timings *timings)
{
    DSSDBG("hdmi_set_timings\n");

    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);
    }

    mutex_unlock(&hdmi.hdmi_lock);
}
static int hdmi_panel_suspend(struct omap_dss_device *dssdev)
{
	int r = 0;

	mutex_lock(&hdmi.hdmi_lock);

	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) {
		r = -EINVAL;
		goto err;
	}

	dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;

	omapdss_hdmi_display_disable(dssdev);
err:
	mutex_unlock(&hdmi.hdmi_lock);

	return r;
}
Beispiel #5
0
static int hdmi_panel_suspend(struct omap_dss_device *dssdev)
{
	int r = 0;

	mutex_lock(&hdmi.hdmi_lock);

	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) {
		/* We should enable "resume" event handler for case, when HDMI
		 * display is plugged in while device was in suspend mode */
		dssdev->activate_after_resume = true;
		goto err;
	}

	dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;

	omapdss_hdmi_display_disable(dssdev);
err:
	mutex_unlock(&hdmi.hdmi_lock);

	return r;
}