The following warning information should be displayed
only when the format is XGA and frame rate is 30fps:
pr_warning("ov5640: actual frame rate of XGA is 22.5fps\n");
Signed-off-by: Sheng Nan <b38800@freescale.com>
ov5640_set_night_mode(night_mode);
/* skip 9 vysnc: start capture at 10th vsync */
- if (mode == ov5640_mode_XGA_1024_768) {
+ if (mode == ov5640_mode_XGA_1024_768 && frame_rate == ov5640_30_fps) {
pr_warning("ov5640: actual frame rate of XGA is 22.5fps\n");
/* 1/22.5 * 9*/
msleep(400);