@@ -61,6 +61,9 @@ static int soc_camera_platform_try_fmt(struct v4l2_subdev *sd,
{
struct soc_camera_platform_info *p = v4l2_get_subdevdata(sd);
+ if (p->try_fmt)
+ return p->try_fmt(p, mf);
+
mf->width = p->format.width;
mf->height = p->format.height;
mf->code = p->format.code;
@@ -22,6 +22,8 @@ struct soc_camera_platform_info {
struct v4l2_mbus_framefmt format;
unsigned long bus_param;
struct device *dev;
+ int (*try_fmt)(struct soc_camera_platform_info *info,
+ struct v4l2_mbus_framefmt *mf);
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
};