> My code is roughly: > > v4l2_format retval > retval.fmt.pix.sizeimage=0; > retval.fmt.pix.bytesperline = 0; > retval.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; > retval.fmt.pix.width = 640; > retval.fmt.pix.height = 480; > retval.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24; > retval.fmt.pix.field = V4L2_FIELD_ANY; > retval.fmt.pix.priv = 0; > > Unfortunately, the ioctl fails with EINVAL Which ioctl are we talking about? How do you call ioctl?