Skip to content

Commit

Permalink
V4L/DVB (10500): saa7146: setting control while capturing should retu…
Browse files Browse the repository at this point in the history
…rn EBUSY, not EINVAL.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 1b8dac1 commit 5a5b964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/common/saa7146_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,15 +697,15 @@ static int vidioc_s_ctrl(struct file *file, void *fh, struct v4l2_control *c)
if (IS_CAPTURE_ACTIVE(fh) != 0) {
DEB_D(("V4L2_CID_HFLIP while active capture.\n"));
mutex_unlock(&dev->lock);
return -EINVAL;
return -EBUSY;
}
vv->hflip = c->value;
break;
case V4L2_CID_VFLIP:
if (IS_CAPTURE_ACTIVE(fh) != 0) {
DEB_D(("V4L2_CID_VFLIP while active capture.\n"));
mutex_unlock(&dev->lock);
return -EINVAL;
return -EBUSY;
}
vv->vflip = c->value;
break;
Expand Down

0 comments on commit 5a5b964

Please sign in to comment.