Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271962
b: refs/heads/master
c: 24465b4
h: refs/heads/master
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 14, 2011
1 parent 39dfd34 commit 791051a
Show file tree
Hide file tree
Showing 2 changed files with 9 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: af76e9f625b235f46d2a2002c4102f6f1249dcf4
refs/heads/master: 24465b448546e10666ad6021be0615214a258cbc
8 changes: 8 additions & 0 deletions trunk/drivers/media/video/cx23885/cx23885-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,14 @@ static int vidioc_streamon(struct file *file, void *priv,

if (unlikely(!res_get(dev, fh, get_resource(fh))))
return -EBUSY;

/* Don't start VBI streaming unless vida streaming
* has already started.
*/
if ((fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) &&
((cx_read(VID_A_DMA_CTL) & 0x11) == 0))
return -EINVAL;

return videobuf_streamon(get_queue(fh));
}

Expand Down

0 comments on commit 791051a

Please sign in to comment.