Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371348
b: refs/heads/master
c: 346f1e0
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Apr 3, 2013
1 parent 3d64f3d commit 6691957
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: e087cc21c6d23d27951d45289a096b825326d3e2
refs/heads/master: 346f1e0772cbd087f176fd3e09ffa5a4569812e6
15 changes: 11 additions & 4 deletions trunk/drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,20 +435,27 @@ static inline struct omap_dss_device *dss_mgr_get_device(struct omap_overlay_man
static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr)
{
unsigned long timeout = msecs_to_jiffies(500);
struct omap_dss_device *dssdev = mgr->get_device(mgr);
u32 irq;
int r;

if (mgr->output == NULL)
return -ENODEV;

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

if (dssdev->type == OMAP_DISPLAY_TYPE_VENC)
switch (mgr->output->id) {
case OMAP_DSS_OUTPUT_VENC:
irq = DISPC_IRQ_EVSYNC_ODD;
else if (dssdev->type == OMAP_DISPLAY_TYPE_HDMI)
break;
case OMAP_DSS_OUTPUT_HDMI:
irq = DISPC_IRQ_EVSYNC_EVEN;
else
break;
default:
irq = dispc_mgr_get_vsync_irq(mgr->id);
break;
}

r = omap_dispc_wait_for_irq_interruptible_timeout(irq, timeout);

Expand Down

0 comments on commit 6691957

Please sign in to comment.