static int solo_set_fmt_cap(struct file *file, void *priv, struct v4l2_format *f) { struct solo_filehandle *fh = priv; if (videobuf_queue_is_busy(&fh->vidq)) return -EBUSY; /* For right now, if it doesn't match our running config, * then fail */ return solo_try_fmt_cap(file, priv, f); }
static int solo_set_fmt_cap(struct file *file, void *priv, struct v4l2_format *f) { struct solo_dev *solo_dev = video_drvdata(file); if (vb2_is_busy(&solo_dev->vidq)) return -EBUSY; /* For right now, if it doesn't match our running config, * then fail */ return solo_try_fmt_cap(file, priv, f); }