Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65937
b: refs/heads/master
c: 85c7c70
h: refs/heads/master
i:
  65935: 1ec8451
v: v3
  • Loading branch information
Brandon Philips authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent f57213e commit 792cf62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 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: a326ae1126fddd07728e854322e0c657c6b1fbda
refs/heads/master: 85c7c70bc241d506dffc1879158f77f8aac69734
19 changes: 2 additions & 17 deletions trunk/drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,29 +1111,14 @@ vivi_poll(struct file *file, struct poll_table_struct *wait)
{
struct vivi_fh *fh = file->private_data;
struct vivi_buffer *buf;
struct videobuf_queue *q = &fh->vb_vidq;

dprintk(1,"%s\n",__FUNCTION__);

if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type)
return POLLERR;

if (res_get(fh->dev,fh)) {
dprintk(1,"poll: mmap interface\n");
/* streaming capture */
if (list_empty(&fh->vb_vidq.stream))
return POLLERR;
buf = list_entry(fh->vb_vidq.stream.next,struct vivi_buffer,vb.stream);
} else {
dprintk(1,"poll: read() interface\n");
/* read() capture */
return videobuf_poll_stream(file, &fh-> vb_vidq,
wait);
}
poll_wait(file, &buf->vb.done, wait);
if (buf->vb.state == STATE_DONE ||
buf->vb.state == STATE_ERROR)
return POLLIN|POLLRDNORM;
return 0;
return videobuf_poll_stream(file, q, wait);
}

static int vivi_release(struct inode *inode, struct file *file)
Expand Down

0 comments on commit 792cf62

Please sign in to comment.