Change-Id: Ida919c7097c8a4f1aae11e05f6cbbcaa3ffbbfd6
int hdmi_layer1;
bool hdmi_hpd;
bool hdmi_enabled;
+ bool hdmi_blanked;
void *hdmi_gsc;
int hdmi_w;
int hdmi_h;
if (dev->hdmi_enabled)
return 0;
+ if (dev->hdmi_blanked)
+ return 0;
+
dev->hdmi_gsc = exynos_gsc_create_exclusive(3, GSC_OUTPUT_MODE, GSC_OUT_TV);
if (!dev->hdmi_gsc) {
ALOGE("%s: exynos_gsc_create_exclusive failed", __func__);
{
if (!dev->hdmi_enabled)
return;
- hdmi_stop_background(dev);
exynos_gsc_destroy(dev->hdmi_gsc);
+ hdmi_stop_background(dev);
dev->hdmi_gsc = NULL;
dev->hdmi_enabled = false;
}
return -errno;
}
+ if (pdev->hdmi_hpd) {
+ if (blank && !pdev->hdmi_blanked)
+ hdmi_disable(pdev);
+ pdev->hdmi_blanked = !!blank;
+ }
+
return 0;
}