| To: | |
|---|---|
| Subject: | [pwc] status ioctl problem |
| From: | Chris Bare <> |
| Date: | Mon, 12 Jun 2006 18:03:13 -0400 (EDT) |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pwc] Bare minimum example or simple library for PWC ??, Tommi Ilmonen |
|---|---|
| Next by Date: | [pwc] Freeze on some system, Vincent Barberet |
| Previous by Thread: | [pwc] Bare minimum example or simple library for PWC ??, vroemm |
| Next by Thread: | [pwc] Freeze on some system, Vincent Barberet |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU