I'm trying to use the status ioctl to get position/movement status back from a
Logitech Orbit. I have a really simple program that opens the device and calls
the status ioctl:
fd = open ("/dev/video0", O_RDONLY);
if (fd == -1)
fatal ("cannot open device\n");
if (ioctl(fd, VIDIOCPWCMPTSTATUS, &pms) == -1)
fatal("VIDIOCPWCMPTSTATUS failed\n");
printf("Status: %d\n", pms.status);
printf("Time pan: %d\n", pms.time_pan);
printf("Time tilt: %d\n", pms.time_tilt);
it reports VIDIOCPWCMPTSTATUS failed.
I turned on ioctl debug in the driver, and I see this in /var/log/messages:
Jun 12 17:54:26 oberon kernel: v4l1 ioctl UNKNOWN, dir=r- (0x800c76d5)
I wasn't able to find exactly where that message came from in the driver, this
is the first time I've looked at the driver code.
Does the status ioctl work with an Orbit?
Any suggestions on what to try next?
BTW, I'm using pwc-10.0.12-rc1.
--
Chris Bare
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|