Strange problem (at least for me, please help)

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



Hi everybody,

I'm quite now to Video4Linux and I'm experiencing something I can't
explain.

I'm currently working on a custom board running Linux 2.4.17 with
a V4L2 capture device, which, at boot, correctly registers itself to
videodevX module since I can see the writing:

V4L2: Registered "Capture device (0)" as char device 81, 0
V4L2: Registered "Capture device (1)" as char device 81, 1

that I found coming from videodevX itself.

Then I run a simple test app that does the following:

   struct video_capability videoCaps;
   //struct v4l2_capability videoCaps;

   int videoFd;
   int result;

   videoFd = open("/dev/video1", O_RDWR);

   if (videoFd < 0)
       printf("Cannot open video input device\n");

   result = ioctl(videoFd, VIDIOCGCAP, &videoCaps);
   //result = ioctl(videoFd, VIDIOC_QUERYCAP, &videoCaps);

   printf("result = %d\n", result);

As you can see I do the same thing in two different ways:

In V4L2 mode I got

result = 0

while in V4L mode I got:

ioctl 1 not currently supported
result = -1

Looking at videodevX code I put a printk inside

v4l_compat_translate_ioctl

that I assumed being called during user-mode ioctl call,
but I never saw my print, as if the translation is not performed
at all (tht's why I get the 'not supported' message).

Any idea? Am I missing something?

Thanks in advance,

Matteo.

--
----------------------------------------------------
Matteo Pampolini   -    Project Leader

Residential Gateways & internet Appliances

CiaoLAB eTechnology S.p.A.

Email:  matteo.pampolini@xxxxxxxxxxx
Phone:  +39.02.2303.3946
Fax:    +39.02.2303.3289

"Linux is user-friendly.
 Just very selective about his friends..."
----------------------------------------------------





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux