diff options
-rw-r--r-- | drivers/media/video/au0828/au0828-video.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/au0828/au0828-video.c b/drivers/media/video/au0828/au0828-video.c index cf8fc6274713..48682af911fa 100644 --- a/drivers/media/video/au0828/au0828-video.c +++ b/drivers/media/video/au0828/au0828-video.c | |||
@@ -1116,6 +1116,13 @@ static ssize_t au0828_v4l2_read(struct file *filp, char __user *buf, | |||
1116 | if (!res_get(fh, AU0828_RESOURCE_VBI)) | 1116 | if (!res_get(fh, AU0828_RESOURCE_VBI)) |
1117 | return -EBUSY; | 1117 | return -EBUSY; |
1118 | 1118 | ||
1119 | if (dev->vbi_timeout_running == 0) { | ||
1120 | /* Handle case where caller tries to read without | ||
1121 | calling streamon first */ | ||
1122 | dev->vbi_timeout_running = 1; | ||
1123 | mod_timer(&dev->vbi_timeout, jiffies + (HZ / 10)); | ||
1124 | } | ||
1125 | |||
1119 | return videobuf_read_stream(&fh->vb_vbiq, buf, count, pos, 0, | 1126 | return videobuf_read_stream(&fh->vb_vbiq, buf, count, pos, 0, |
1120 | filp->f_flags & O_NONBLOCK); | 1127 | filp->f_flags & O_NONBLOCK); |
1121 | } | 1128 | } |