PD#SWPL-17478
Problem:
cat /dev/video33 panic
Solution:
read return 0
Verify:
U212
Change-Id: Idcabf7eca7d99d020fb759261fd7f613da83b096
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
return 0;
}
+static ssize_t vidioc_read(struct file *file, char __user *data,
+ size_t count, loff_t *ppos)
+{
+ pr_info("v4lvideo read\n");
+ return 0;
+}
+
static int vidioc_querycap(struct file *file,
void *priv,
struct v4l2_capability *cap)
.owner = THIS_MODULE,
.open = vidioc_open,
.release = vidioc_close,
- .read = vb2_fop_read,
+ .read = vidioc_read,
.poll = vb2_fop_poll,
.unlocked_ioctl = video_ioctl2,/* V4L2 ioctl handler */
.mmap = vb2_fop_mmap,