summaryrefslogtreecommitdiff
path: root/isp/omap3isp.c
diff options
context:
space:
mode:
Diffstat (limited to 'isp/omap3isp.c')
-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;