Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284952
b: refs/heads/master
c: e4f7ad7
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Dec 2, 2011
1 parent 40b4aa9 commit 6a4fe56
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 841c09c7975c67fe7741564d98265de28a5764d0
refs/heads/master: e4f7ad702ef271d2b0c03e9904b05f9bcbf0808b
18 changes: 18 additions & 0 deletions trunk/drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ void dss_mgr_enable(struct omap_overlay_manager *mgr)

mutex_lock(&apply_lock);

if (mp->enabled)
goto out;

spin_lock_irqsave(&data_lock, flags);

mp->enabled = true;
Expand All @@ -740,6 +743,7 @@ void dss_mgr_enable(struct omap_overlay_manager *mgr)
if (!mgr_manual_update(mgr))
dispc_mgr_enable(mgr->id, true);

out:
mutex_unlock(&apply_lock);
}

Expand All @@ -750,6 +754,9 @@ void dss_mgr_disable(struct omap_overlay_manager *mgr)

mutex_lock(&apply_lock);

if (!mp->enabled)
goto out;

if (!mgr_manual_update(mgr))
dispc_mgr_enable(mgr->id, false);

Expand All @@ -760,6 +767,7 @@ void dss_mgr_disable(struct omap_overlay_manager *mgr)

spin_unlock_irqrestore(&data_lock, flags);

out:
mutex_unlock(&apply_lock);
}

Expand Down Expand Up @@ -1005,6 +1013,11 @@ int dss_ovl_enable(struct omap_overlay *ovl)

mutex_lock(&apply_lock);

if (op->enabled) {
r = 0;
goto err;
}

if (ovl->manager == NULL || ovl->manager->device == NULL) {
r = -EINVAL;
goto err;
Expand Down Expand Up @@ -1036,6 +1049,11 @@ int dss_ovl_disable(struct omap_overlay *ovl)

mutex_lock(&apply_lock);

if (!op->enabled) {
r = 0;
goto err;
}

if (ovl->manager == NULL || ovl->manager->device == NULL) {
r = -EINVAL;
goto err;
Expand Down

0 comments on commit 6a4fe56

Please sign in to comment.