From c8e3bd9a22f5b8c62c6d0ced87b334ad463c5d00 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 17 Apr 2012 16:31:31 +0200 Subject: omap3isp: Unsupported subdev ioctls returned -EINVAL on older kernels Signed-off-by: Laurent Pinchart --- isp/omap3isp.c | 6 +++--- 1 file 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; -- cgit v1.2.3