Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61381
b: refs/heads/master
c: 90851fe
h: refs/heads/master
i:
  61379: ea42dd8
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent 2447f82 commit de58140
Show file tree
Hide file tree
Showing 2 changed files with 2 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: f885969196da6ae905162c0d1c5f0553de12cb40
refs/heads/master: 90851fe9fad68db24da8cb497bad7327b97ed3d2
5 changes: 1 addition & 4 deletions trunk/drivers/media/video/ivtv/ivtv-streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,6 @@ int ivtv_stop_v4l2_encode_stream(struct ivtv_stream *s, int gop_end)
then = jiffies;
/* Make sure DMA is complete */
add_wait_queue(&s->waitq, &wait);
set_current_state(TASK_INTERRUPTIBLE);
do {
/* check if DMA is pending */
if ((s->type == IVTV_ENC_STREAM_TYPE_MPG) && /* MPG Only */
Expand All @@ -822,9 +821,7 @@ int ivtv_stop_v4l2_encode_stream(struct ivtv_stream *s, int gop_end)
} else if (read_reg(IVTV_REG_DMASTATUS) & 0x02) {
break;
}

ivtv_sleep_timeout(HZ / 100, 1);
} while (then + HZ * 2 > jiffies);
} while (!ivtv_sleep_timeout(HZ / 100, 1) && then + HZ * 2 > jiffies);

set_current_state(TASK_RUNNING);
remove_wait_queue(&s->waitq, &wait);
Expand Down

0 comments on commit de58140

Please sign in to comment.