VIDIOCGMBUF "Invalid argument" (hasciicam on eee, 2.6.27-8-eeepc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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.

Thanks
Dan

kernel 2.6.27-8-eeepc

[1] http://ascii.dyne.org/
[2] http://www.linuxtv.org/downloads/video4linux/API/V4L1_API.html
-- 
http://www.mcld.co.uk

--
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]

Add to Google Powered by Linux