@@ -25,10 +25,12 @@
#include <media/v4l2-async.h>
#include <media/v4l2-subdev.h>
-#define S5K6A3_SENSOR_MAX_WIDTH 1392
-#define S5K6A3_SENSOR_MAX_HEIGHT 1392
-#define S5K6A3_SENSOR_MIN_WIDTH 32
-#define S5K6A3_SENSOR_MIN_HEIGHT 32
+#define S5K6A3_SENSOR_MAX_WIDTH 1408
+#define S5K6A3_SENSOR_MAX_HEIGHT 1402
+#define S5K6A3_SENSOR_ACTIVE_WIDTH 1392
+#define S5K6A3_SENSOR_ACTIVE_HEIGHT 1392
+#define S5K6A3_SENSOR_MIN_WIDTH (32 + 16)
+#define S5K6A3_SENSOR_MIN_HEIGHT (32 + 10)
#define S5K6A3_DEF_PIX_WIDTH 1296
#define S5K6A3_DEF_PIX_HEIGHT 732
@@ -107,10 +109,11 @@ static void s5k6a3_try_format(struct v4l2_mbus_framefmt *mf)
fmt = find_sensor_format(mf);
mf->code = fmt->code;
- v4l_bound_align_image(&mf->width, S5K6A3_SENSOR_MIN_WIDTH,
- S5K6A3_SENSOR_MAX_WIDTH, 0,
- &mf->height, S5K6A3_SENSOR_MIN_HEIGHT,
- S5K6A3_SENSOR_MAX_HEIGHT, 0, 0);
+ v4l_bound_align_image(&mf->width,
+ S5K6A3_SENSOR_MIN_WIDTH, S5K6A3_SENSOR_MAX_WIDTH, 0,
+ &mf->height,
+ S5K6A3_SENSOR_MIN_HEIGHT, S5K6A3_SENSOR_MAX_HEIGHT, 0,
+ 0);
}
static struct v4l2_mbus_framefmt *__s5k6a3_get_format(