summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-04-17 16:31:31 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-04-17 16:32:04 +0200
commitc8e3bd9a22f5b8c62c6d0ced87b334ad463c5d00 (patch)
treef005eb2b600a677bd92deb73717ed858760471db
parent30b23e261a3b02f548c834dee9d2e5cda0f1de32 (diff)
omap3isp: Unsupported subdev ioctls returned -EINVAL on older kernels
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--isp/omap3isp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/isp/omap3isp.c b/isp/omap3isp.c
index bffbe13..671dee4 100644
--- a/isp/omap3isp.c
+++ b/isp/omap3isp.c
@@ -639,14 +639,14 @@ static int omap3_isp_pipeline_try_format(struct omap3_isp_device *isp,
if (crop) {
ret = v4l2_subdev_set_crop(isp->sensor.entity, crop, 0,
V4L2_SUBDEV_FORMAT_TRY);
- if (ret < 0 && ret != -ENOTTY) {
+ if (ret < 0 && ret != -ENOTTY && ret != -EINVAL) {
printf("error: set crop on sensor output failed.\n");
return ret;
}
} else {
ret = v4l2_subdev_get_crop(isp->sensor.entity, &rect, 0,
V4L2_SUBDEV_FORMAT_TRY);
- if (ret < 0 && ret != -ENOTTY) {
+ if (ret < 0 && ret != -ENOTTY && ret != -EINVAL) {
printf("error: get crop on sensor output failed.\n");
return ret;
}
@@ -799,7 +799,7 @@ static int omap3_isp_pipeline_activate(struct omap3_isp_device *isp,
ret = v4l2_subdev_set_crop(pad->entity, &crop, pad->index,
V4L2_SUBDEV_FORMAT_ACTIVE);
- if (ret < 0 && ret != -ENOTTY) {
+ if (ret < 0 && ret != -ENOTTY && ret != -EINVAL) {
printf("error: set crop failed on %s:%u.\n",
pad->entity->info.name, pad->index);
return ret;