aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/hdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap2/dss/hdmi.c')
-rw-r--r--drivers/video/omap2/dss/hdmi.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index fb85ce5a8ab4..781867002662 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -449,6 +449,23 @@ int omapdss_hdmi_read_edid(u8 *buf, int len)
449 return r; 449 return r;
450} 450}
451 451
452bool omapdss_hdmi_detect(void)
453{
454 int r;
455
456 mutex_lock(&hdmi.lock);
457
458 r = hdmi_runtime_get();
459 BUG_ON(r);
460
461 r = hdmi.ip_data.ops->detect(&hdmi.ip_data);
462
463 hdmi_runtime_put();
464 mutex_unlock(&hdmi.lock);
465
466 return r == 1;
467}
468
452int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev) 469int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev)
453{ 470{
454 int r = 0; 471 int r = 0;