Commit be729178 authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAPDSS: APPLY: track whether a manager is enabled

Add "enabled" field to struct omap_overlay_manager, which tells if the
output is enabled or not. This will be used in apply.c in the following
patches.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 7797c6da
...@@ -657,10 +657,12 @@ int omap_dss_mgr_apply(struct omap_overlay_manager *mgr) ...@@ -657,10 +657,12 @@ int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
void dss_mgr_enable(struct omap_overlay_manager *mgr) void dss_mgr_enable(struct omap_overlay_manager *mgr)
{ {
dispc_mgr_enable(mgr->id, true); dispc_mgr_enable(mgr->id, true);
mgr->enabled = true;
} }
void dss_mgr_disable(struct omap_overlay_manager *mgr) void dss_mgr_disable(struct omap_overlay_manager *mgr)
{ {
dispc_mgr_enable(mgr->id, false); dispc_mgr_enable(mgr->id, false);
mgr->enabled = false;
} }
...@@ -432,6 +432,8 @@ struct omap_overlay_manager { ...@@ -432,6 +432,8 @@ struct omap_overlay_manager {
struct omap_dss_device *device; struct omap_dss_device *device;
struct omap_overlay_manager_info info; struct omap_overlay_manager_info info;
bool enabled;
bool device_changed; bool device_changed;
/* if true, info has been changed but not applied() yet */ /* if true, info has been changed but not applied() yet */
bool info_dirty; bool info_dirty;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment