Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294342
b: refs/heads/master
c: 21e56f7
h: refs/heads/master
v: v3
  • Loading branch information
Lajos Molnar authored and Tomi Valkeinen committed Mar 6, 2012
1 parent 6860cac commit bd8d5d4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0c1cfcb577d61ec55e209bc5f869d3d80a8f371
refs/heads/master: 21e56f79abad987555351c73569fc8358636b0fa
12 changes: 12 additions & 0 deletions trunk/drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,10 @@ int dss_mgr_wait_for_go(struct omap_overlay_manager *mgr)
if (mgr_manual_update(mgr))
return 0;

r = dispc_runtime_get();
if (r)
return r;

irq = dispc_mgr_get_vsync_irq(mgr->id);

mp = get_mgr_priv(mgr);
Expand Down Expand Up @@ -431,6 +435,8 @@ int dss_mgr_wait_for_go(struct omap_overlay_manager *mgr)
}
}

dispc_runtime_put();

return r;
}

Expand All @@ -454,6 +460,10 @@ int dss_mgr_wait_for_go_ovl(struct omap_overlay *ovl)
if (ovl_manual_update(ovl))
return 0;

r = dispc_runtime_get();
if (r)
return r;

irq = dispc_mgr_get_vsync_irq(ovl->manager->id);

op = get_ovl_priv(ovl);
Expand Down Expand Up @@ -494,6 +504,8 @@ int dss_mgr_wait_for_go_ovl(struct omap_overlay *ovl)
}
}

dispc_runtime_put();

return r;
}

Expand Down
12 changes: 11 additions & 1 deletion trunk/drivers/video/omap2/dss/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr)
{
unsigned long timeout = msecs_to_jiffies(500);
u32 irq;
int r;

r = dispc_runtime_get();
if (r)
return r;

if (mgr->device->type == OMAP_DISPLAY_TYPE_VENC) {
irq = DISPC_IRQ_EVSYNC_ODD;
Expand All @@ -505,7 +510,12 @@ static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr)
else
irq = DISPC_IRQ_VSYNC2;
}
return omap_dispc_wait_for_irq_interruptible_timeout(irq, timeout);

r = omap_dispc_wait_for_irq_interruptible_timeout(irq, timeout);

dispc_runtime_put();

return r;
}

int dss_init_overlay_managers(struct platform_device *pdev)
Expand Down

0 comments on commit bd8d5d4

Please sign in to comment.