Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306088
b: refs/heads/master
c: 296da3c
h: refs/heads/master
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Mar 27, 2012
1 parent 0f462a9 commit ba38362
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0bf0f713d6e6b9f1c510d598c29ac17812a4eea5
refs/heads/master: 296da3cd14db9eb5606924962b2956c9c656dbb0
9 changes: 9 additions & 0 deletions trunk/drivers/media/video/pwc/pwc-if.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,10 +625,19 @@ static ssize_t pwc_video_read(struct file *file, char __user *buf,
static unsigned int pwc_video_poll(struct file *file, poll_table *wait)
{
struct pwc_device *pdev = video_drvdata(file);
unsigned long req_events = poll_requested_events(wait);

if (!pdev->udev)
return POLL_ERR;

if ((req_events & (POLLIN | POLLRDNORM)) &&
pdev->vb_queue.num_buffers == 0 &&
!pdev->iso_init) {
/* This poll will start a read stream, check capt_file */
if (pwc_test_n_set_capt_file(pdev, file))
return POLL_ERR;
}

return vb2_poll(&pdev->vb_queue, file, wait);
}

Expand Down

0 comments on commit ba38362

Please sign in to comment.