Web lists-archives.org

Re: Question about saa7115




thank you for your answers, I think I have a better understanding of
what's happenning.
still, Imade a little test to be sure, and it didn't return what I expected

I added a print_test function (printk something then return 0) to
vivi.c, and pointed .ioctl (in the file_operations structure) to that
function, and started this :
int main(int argc, char *argv[])
{
        int err;
        struct v4l2_capability cap;
        int fd = open("/dev/video0", O_RDWR );
        err = ioctl(fd, VIDIOC_QUERYCAP, &cap);
        return 0;
}
(consider required includes done)

vivi tells me the device is opened, closed (yeah, I know, I should
have coded the close instruction) but nothing between those two, did I
missed something, such as the fact that vivi doesn't respond to ioctl
?

regards

-- 
Guillaume

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list