ioctl failed with "Invalid Argument" Message
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