Re: [question] v4l read() operation

2012-02-27 Thread Ezequiel García
Hi Dave, 2012/2/25 Dave Hylands dhyla...@gmail.com: I'm not all that familiar with v4l, but based on what you've posted, you need to populate the read routine in your v4l2_fops structure to support read. My bad! You are totally right: I forgot about my webcam. When I did: $ cat /dev/video0

Re: [question] v4l read() operation

2012-02-25 Thread Dave Hylands
Hi Ezequiel 2012/2/25 Ezequiel García elezegar...@gmail.com: Hi, If I register a video device with this fops: static const struct v4l2_file_operations v4l2_fops = {        .owner      = THIS_MODULE,        .open        = xxx_open,        .unlocked_ioctl = xxx_unlocked_ioctl,        .poll

Re: [question] v4l read() operation

2012-02-25 Thread Andy Walls
Ezequiel García elezegar...@gmail.com wrote: Hi, If I register a video device with this fops: static const struct v4l2_file_operations v4l2_fops = { .owner = THIS_MODULE, .open= xxx_open, .unlocked_ioctl = xxx_unlocked_ioctl, .poll =