media: ov5640: change 1080p resolution to 1088p
Bryan Wu [Wed, 16 Oct 2013 18:07:58 +0000 (11:07 -0700)]
Setting the resolution to 1088p (as of now), since
there are flickers observed for 1080p and also
the encoder is not compatible with alignement of
the RM surfaces of 1080p. 1088p is a stop-gap solution
until the issues with 1080p are resolved.

Bug 1369083

Change-Id: I3e73076451e7671d90603c6496ad14733591edeb
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/309543
Tested-by: Vikram Fugro <vfugro@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kaustubh Purandare <kpurandare@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

drivers/media/video/ov5640.c

index 795d9bd..04b0443 100644 (file)
@@ -288,7 +288,7 @@ static struct ov5640_reg mode_2592x1944[] = {
        {OV5640_TABLE_END, 0x0000}
 };
 
-static struct ov5640_reg mode_1920x1080[] = {
+static struct ov5640_reg mode_1920x1088[] = {
        /* PLL Control MIPI bit rate/lane = 672MHz, 16-bit mode.
         * Output size: 1936x1096 (336, 426) - (2287, 1529),
         * Line Length = 2500, Frame Length = 1120.
@@ -1097,7 +1097,7 @@ static struct ov5640_reg mode_640x480[] = {
 enum {
        OV5640_MODE_640x480,
        OV5640_MODE_1296x972,
-       OV5640_MODE_1920x1080,
+       OV5640_MODE_1920x1088,
        OV5640_MODE_2592x1944,
        OV5640_SIZE_LAST,
 };
@@ -1105,7 +1105,7 @@ enum {
 static struct ov5640_reg *mode_table[] = {
        [OV5640_MODE_640x480] = mode_640x480,
        [OV5640_MODE_1296x972] = mode_1296x972,
-       [OV5640_MODE_1920x1080] = mode_1920x1080,
+       [OV5640_MODE_1920x1088] = mode_1920x1088,
        [OV5640_MODE_2592x1944] = mode_2592x1944,
 };
 
@@ -1144,7 +1144,7 @@ static enum v4l2_mbus_pixelcode ov5640_codes[] = {
 static const struct v4l2_frmsize_discrete ov5640_frmsizes[OV5640_SIZE_LAST] = {
        {640, 480},
        {1296, 972},
-       {1920, 1080},
+       {1920, 1088},
        {2592, 1944},
 };