|
|
|
Re: VIDIOCGMBUF "Invalid argument" (hasciicam on eee, 2.6.27-8-eeepc) | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi Dan,
On Sunday 01 February 2009, D wrote:
> Hi -
>
> I have an asus eee running eeebuntu 8.10, and I'm trying to get
> hasciicam [1] to work with the built-in UVC webcam. (All works fine
> when using "cheese" to confirm the webcam is working.) The hasciicam
> code calls the VIDIOCGMBUF ioctl and that's where it fails. Here's the
> code (from hasciicam.c):
>
> if (ioctl (dev, VIDIOCGMBUF, &grab_map) == -1) {
> perror("!! error in ioctl VIDIOCGMBUF: ");
> return -1;
> }
>
> ...where dev is pretty definitely open (we have already successfully
> called VIDIOCGCAP and suchlike), and grab_map is a struct of type
> video_mbuf as it should be. And here's the result:
>
> !! error in ioctl VIDIOCGMBUF: Invalid argument
>
> Does this suggest that hasciicam is calling the ioctl incorrectly?
> (For example, in [2] it says "a user first sets the desired image size
> and depth properties" before calling it, although it doesn't spell out
> precisely how that is done.) Or does it mean this particular ioctl is
> not available on the given setup?
>
> I'd be grateful for any suggestions.
The UVC driver doesn't support the deprecated V4L1 API. The v4l1compat.so
wrapper might help you, as it translates V4L1 calls to V4L2.
Best regards,
Laurent Pinchart
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
[Linux Media] [Older V4L] [Linux DVB] [Video Disk Recorder] [Linux Kernel] [Asterisk] [Photo] [DCCP] [Netdev] [Xorg] [Util Linux NG] [Xfree86] [Free Photo Albums] [Fedora Users] [Fedora Women] [ALSA Users] [ALSA Devel] [SSH] [DVB Maintainers] [Linux USB] [Yosemite Information]
![]() |
![]() |