ioctl failed with "Invalid Argument" Message

Diego de Freitas Nascimento <[email protected]>
Newsgroups gmane.comp.video.video4linux
Organization ICA
Message-ID <[email protected]>
Hi all,

i'm trying to capture video from a web cam (vcamusb) and every ioctl
that i try return an error: "Invalid Argument".

For example. To set the contrast the code is:

...

v4l2_control ctrl;

memset( &ctrl, 0, sizeof( struct v4l2_control ) );

ctrl.id = V4L2_CID_CONTRAST;
ctrl.value = 80;

if ( ioctl( fd, VIDIOC_S_CTRL, &ctrl ) < 0 )
{
	perror( "VIDIOC_S_CTRL" );
}

...

this same code work to another camera (an uvc camera). But the driver to
uvc is already using v4l2 ioctls while the driver for vcamusb is using
old ioctls.

how can i fix this problem ?


--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.