diff options
author | Jassi Brar <jaswinder.singh@linaro.org> | 2011-06-22 20:40:08 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-06-22 20:40:08 +0100 |
commit | 8ca943c3aaf85bc0af961c7c160104960d557adb (patch) | |
tree | 5b33598fa51b96c1b25ccb1083fd5eea8470deea | |
parent | 5b925e492f322cbadc7576d976e0aaaf708e908e (diff) |
Subject: [PATCH 05/19] OMAP: DSS2: Add hotplug notify events
Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r-- | include/video/omapdss.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 7bbf57ca500..963a6ca3f81 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -135,6 +135,10 @@ enum omap_dss_venc_type { enum omap_display_caps { OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE = 1 << 0, OMAP_DSS_DISPLAY_CAP_TEAR_ELIM = 1 << 1, + /* set if display supports hotplug detect, and will call + * omap_dss_notify(CONNECT/DISCONNECT) at appropriate times + */ + OMAP_DSS_DISPLAY_CAP_HPD = 1 << 2, }; enum omap_dss_update_mode { @@ -595,8 +599,13 @@ void omap_dss_stop_device(struct omap_dss_device *dssdev); * to the notifier function, and the dssdev is passed as the third. */ enum omap_dss_event { - OMAP_DSS_SIZE_CHANGE - /* possibly add additional events, like hot-plug connect/disconnect */ + OMAP_DSS_SIZE_CHANGE, + /* the CONNECT/DISCONNECT events will be sent if OMAP_DSS_DISPLAY_CAP_HPD + * flag is set in the dssdev->caps. Otherwise the user will have to poll + * for detection when a monitor is plugged/unplugged. + */ + OMAP_DSS_HOTPLUG_CONNECT, + OMAP_DSS_HOTPLUG_DISCONNECT, }; void omap_dss_notify(struct omap_dss_device *dssdev, enum omap_dss_event evt); |