Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285160
b: refs/heads/master
c: e144ca6
h: refs/heads/master
v: v3
  • Loading branch information
Archit Taneja authored and Mauro Carvalho Chehab committed Nov 7, 2011
1 parent 1a026d7 commit cb72a80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: 2780168859645353086b98492a979ae97da0a2dc
refs/heads/master: e144ca6426655aec8ec828e339ac57a3e00fefd0
14 changes: 11 additions & 3 deletions trunk/drivers/media/video/omap/omap_vout.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ static int omapvid_handle_interlace_display(struct omap_vout_device *vout,

static void omap_vout_isr(void *arg, unsigned int irqstatus)
{
int ret, fid;
u32 addr;
int ret, fid, mgr_id;
u32 addr, irq;
struct omap_overlay *ovl;
struct timeval timevalue;
struct omapvideo_info *ovid;
Expand All @@ -582,14 +582,22 @@ static void omap_vout_isr(void *arg, unsigned int irqstatus)
if (!ovl->manager || !ovl->manager->device)
return;

mgr_id = ovl->manager->id;
cur_display = ovl->manager->device;

spin_lock(&vout->vbq_lock);
do_gettimeofday(&timevalue);

switch (cur_display->type) {
case OMAP_DISPLAY_TYPE_DPI:
if (!(irqstatus & (DISPC_IRQ_VSYNC | DISPC_IRQ_VSYNC2)))
if (mgr_id == OMAP_DSS_CHANNEL_LCD)
irq = DISPC_IRQ_VSYNC;
else if (mgr_id == OMAP_DSS_CHANNEL_LCD2)
irq = DISPC_IRQ_VSYNC2;
else
goto vout_isr_err;

if (!(irqstatus & irq))
goto vout_isr_err;
break;
case OMAP_DISPLAY_TYPE_VENC:
Expand Down

0 comments on commit cb72a80

Please sign in to comment.