Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250246
b: refs/heads/master
c: f3b1af1
h: refs/heads/master
v: v3
  • Loading branch information
Anatolij Gustschin authored and Mauro Carvalho Chehab committed May 20, 2011
1 parent 8d366c7 commit a80914e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 791ae6991051729697dfe60f277744ad6de42316
refs/heads/master: f3b1af19647f375efb96cbd0589f9279caea7023
4 changes: 4 additions & 0 deletions trunk/drivers/media/video/fsl-viu.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,12 +926,16 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p)
static int vidioc_streamon(struct file *file, void *priv, enum v4l2_buf_type i)
{
struct viu_fh *fh = priv;
struct viu_dev *dev = fh->dev;

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

if (dev->ovenable)
dev->ovenable = 0;

viu_start_dma(fh->dev);

return videobuf_streamon(&fh->vb_vidq);
Expand Down

0 comments on commit a80914e

Please sign in to comment.