diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-29 21:56:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:05:10 -0400 |
commit | acb09af4e333dc92cdd32ae75ee7e5f3d7aaf60b (patch) | |
tree | a2d472a986de92cfd93faef6662abf95c40321b3 /drivers/media/video/vivi.c | |
parent | e9f668dd12d3ed293af0d466bcaa393b78a7d0ee (diff) |
V4L/DVB (6014): vivi: use videobuf_read_stream()
videobuf_read_stream is more efficient than videobuf_read_one
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/vivi.c')
-rw-r--r-- | drivers/media/video/vivi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index f6d3a9460ccc..c10169e35753 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c | |||
@@ -1123,7 +1123,7 @@ vivi_read(struct file *file, char __user *data, size_t count, loff_t *ppos) | |||
1123 | if (fh->type==V4L2_BUF_TYPE_VIDEO_CAPTURE) { | 1123 | if (fh->type==V4L2_BUF_TYPE_VIDEO_CAPTURE) { |
1124 | if (res_locked(fh->dev)) | 1124 | if (res_locked(fh->dev)) |
1125 | return -EBUSY; | 1125 | return -EBUSY; |
1126 | return videobuf_read_one(&fh->vb_vidq, data, count, ppos, | 1126 | return videobuf_read_stream(&fh->vb_vidq, data, count, ppos, 0, |
1127 | file->f_flags & O_NONBLOCK); | 1127 | file->f_flags & O_NONBLOCK); |
1128 | } | 1128 | } |
1129 | return 0; | 1129 | return 0; |