Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acb09af4 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (6014): vivi: use videobuf_read_stream()



videobuf_read_stream is more efficient than videobuf_read_one

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent e9f668dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1123,7 +1123,7 @@ vivi_read(struct file *file, char __user *data, size_t count, loff_t *ppos)
	if (fh->type==V4L2_BUF_TYPE_VIDEO_CAPTURE) {
	if (fh->type==V4L2_BUF_TYPE_VIDEO_CAPTURE) {
		if (res_locked(fh->dev))
		if (res_locked(fh->dev))
			return -EBUSY;
			return -EBUSY;
		return videobuf_read_one(&fh->vb_vidq, data, count, ppos,
		return videobuf_read_stream(&fh->vb_vidq, data, count, ppos, 0,
					file->f_flags & O_NONBLOCK);
					file->f_flags & O_NONBLOCK);
	}
	}
	return 0;
	return 0;