Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331161
b: refs/heads/master
c: a694f1b
h: refs/heads/master
i:
  331159: 5286e5d
v: v3
  • Loading branch information
Wanlong Gao authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent 715e4d3 commit 8438037
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 254ee2e02132c84ca252129eb893c3ef8bb3b77e
refs/heads/master: a694f1b2af4942a1e0026e7929b4f7c5c251f82d
8 changes: 4 additions & 4 deletions trunk/drivers/media/platform/omap3isp/ispvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ isp_video_try_format(struct file *file, void *fh, struct v4l2_format *format)
fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt);
if (ret)
return ret == -ENOIOCTLCMD ? -EINVAL : ret;
return ret == -ENOIOCTLCMD ? -ENOTTY : ret;

isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix);
return 0;
Expand All @@ -754,7 +754,7 @@ isp_video_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap)
ret = v4l2_subdev_call(subdev, video, cropcap, cropcap);
mutex_unlock(&video->mutex);

return ret == -ENOIOCTLCMD ? -EINVAL : ret;
return ret == -ENOIOCTLCMD ? -ENOTTY : ret;
}

static int
Expand All @@ -781,7 +781,7 @@ isp_video_get_crop(struct file *file, void *fh, struct v4l2_crop *crop)
format.which = V4L2_SUBDEV_FORMAT_ACTIVE;
ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &format);
if (ret < 0)
return ret == -ENOIOCTLCMD ? -EINVAL : ret;
return ret == -ENOIOCTLCMD ? -ENOTTY : ret;

crop->c.left = 0;
crop->c.top = 0;
Expand All @@ -806,7 +806,7 @@ isp_video_set_crop(struct file *file, void *fh, struct v4l2_crop *crop)
ret = v4l2_subdev_call(subdev, video, s_crop, crop);
mutex_unlock(&video->mutex);

return ret == -ENOIOCTLCMD ? -EINVAL : ret;
return ret == -ENOIOCTLCMD ? -ENOTTY : ret;
}

static int
Expand Down

0 comments on commit 8438037

Please sign in to comment.