On Tue, 7 Apr 2009, Dean A. wrote: > +static int vidioc_g_parm(struct file *file, void *priv, > + struct v4l2_streamparm *sp) > +{ > + struct s2255_fh *fh = priv; > + struct s2255_dev *dev = fh->dev; > + if (sp->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) > + return -EINVAL; You do not need to check the buffer type, video_ioctl2 does it already. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html