|
@@ -423,7 +423,7 @@ static int vidioc_s_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
|
pix_mp = &f->fmt.pix_mp;
|
|
pix_mp = &f->fmt.pix_mp;
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
- if (ctx->vq_src.streaming || ctx->vq_dst.streaming) {
|
|
|
|
|
|
+ if (vb2_is_streaming(&ctx->vq_src) || vb2_is_streaming(&ctx->vq_dst)) {
|
|
v4l2_err(&dev->v4l2_dev, "%s queue busy\n", __func__);
|
|
v4l2_err(&dev->v4l2_dev, "%s queue busy\n", __func__);
|
|
ret = -EBUSY;
|
|
ret = -EBUSY;
|
|
goto out;
|
|
goto out;
|
|
@@ -820,7 +820,7 @@ static int vidioc_decoder_cmd(struct file *file, void *priv,
|
|
if (cmd->flags != 0)
|
|
if (cmd->flags != 0)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!ctx->vq_src.streaming)
|
|
|
|
|
|
+ if (!vb2_is_streaming(&ctx->vq_src))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
spin_lock_irqsave(&dev->irqlock, flags);
|
|
spin_lock_irqsave(&dev->irqlock, flags);
|