|
@@ -1192,10 +1192,12 @@ static int csi_enum_frame_size(struct v4l2_subdev *sd,
|
|
} else {
|
|
} else {
|
|
crop = __csi_get_crop(priv, cfg, fse->which);
|
|
crop = __csi_get_crop(priv, cfg, fse->which);
|
|
|
|
|
|
- fse->min_width = fse->max_width = fse->index & 1 ?
|
|
|
|
|
|
+ fse->min_width = fse->index & 1 ?
|
|
crop->width / 2 : crop->width;
|
|
crop->width / 2 : crop->width;
|
|
- fse->min_height = fse->max_height = fse->index & 2 ?
|
|
|
|
|
|
+ fse->max_width = fse->min_width;
|
|
|
|
+ fse->min_height = fse->index & 2 ?
|
|
crop->height / 2 : crop->height;
|
|
crop->height / 2 : crop->height;
|
|
|
|
+ fse->max_height = fse->min_height;
|
|
}
|
|
}
|
|
|
|
|
|
mutex_unlock(&priv->lock);
|
|
mutex_unlock(&priv->lock);
|