aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-11-04 03:23:10 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-12-02 01:54:30 -0500
commitd2bbb9bbd1503e8b5235fe316e7ee0c7f41daf7e (patch)
tree8c970c6acfe07e4e9422fc7fa3f35be426d9e2d8 /drivers/video
parent209285012c792d3a0f758c7ace30af0ee4bc08a3 (diff)
OMAPDSS: apply affects only one overlay manager
omap_dss_mgr_apply currently applies settings to all overlays and overlay managers. The reason for this was to support cases where configuration changes affecting multiple managers are made. However, the current code doesn't support changing such configurations, so the functionality is not needed. Change the apply to affect only the manager given as an argument, and the overlays attached to that manager. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/dss/manager.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/video/omap2/dss/manager.c b/drivers/video/omap2/dss/manager.c
index d0d23157110b..d2bdd652d595 100644
--- a/drivers/video/omap2/dss/manager.c
+++ b/drivers/video/omap2/dss/manager.c
@@ -1114,23 +1114,28 @@ static int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
1114 spin_lock_irqsave(&dss_cache.lock, flags); 1114 spin_lock_irqsave(&dss_cache.lock, flags);
1115 1115
1116 /* Configure overlays */ 1116 /* Configure overlays */
1117 for (i = 0; i < omap_dss_get_num_overlays(); ++i) { 1117 for (i = 0; i < mgr->num_overlays; ++i) {
1118 struct omap_overlay *ovl; 1118 struct omap_overlay *ovl;
1119 1119
1120 ovl = omap_dss_get_overlay(i); 1120 ovl = mgr->overlays[i];
1121
1122 if (ovl->manager != mgr)
1123 continue;
1121 1124
1122 omap_dss_mgr_apply_ovl(ovl); 1125 omap_dss_mgr_apply_ovl(ovl);
1123 } 1126 }
1124 1127
1125 /* Configure managers */ 1128 /* Configure manager */
1126 list_for_each_entry(mgr, &manager_list, list) 1129 omap_dss_mgr_apply_mgr(mgr);
1127 omap_dss_mgr_apply_mgr(mgr);
1128 1130
1129 /* Configure overlay fifos */ 1131 /* Configure overlay fifos */
1130 for (i = 0; i < omap_dss_get_num_overlays(); ++i) { 1132 for (i = 0; i < mgr->num_overlays; ++i) {
1131 struct omap_overlay *ovl; 1133 struct omap_overlay *ovl;
1132 1134
1133 ovl = omap_dss_get_overlay(i); 1135 ovl = mgr->overlays[i];
1136
1137 if (ovl->manager != mgr)
1138 continue;
1134 1139
1135 omap_dss_mgr_apply_ovl_fifos(ovl); 1140 omap_dss_mgr_apply_ovl_fifos(ovl);
1136 } 1141 }