]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
media: video: tegra: ar0832: adjust frame rate
authorJihoon Bang <jbang@nvidia.com>
Tue, 14 Feb 2012 02:00:13 +0000 (18:00 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:04:12 +0000 (01:04 -0700)
Change line_length for 1080p mode in order to change
frame rate from 31.30 to 29.50 fps.
The reason that new fps is not 30 is because flicker
detection requires fps not to be multiples of 60/50Hz.

This change helps save power and lower the chance of frame
drop.

Bug 928296

Change-Id: I4fda13d9334c725754b3f5eab034309a1dfef3dc
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/83636
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Rebase-Id: Rb5df8f871f0db6bc939fb0094a1a04c815e6210e

drivers/media/video/tegra/ar0832_main.c

index 5148de72deb044ecd5460ff37a7cfb3aafaef829..e4d6433f2149cc48070e0c0bcdafd2c174ca1211 100644 (file)
@@ -739,7 +739,7 @@ static struct ar0832_reg mode_1920X1080_8140[] = {
        {0x3178, 0x0000},       /* RESERVED_MFR_3178 */
        {0x3ED0, 0x1E24},       /* RESERVED_MFR_3ED0 */
 
-       {0x0342, 0x103B},       /* LINE_LENGTH_PCK */
+       {0x0342, 0x1139},       /* LINE_LENGTH_PCK */
        {0x0340, 0x05C4},       /* FRAME_LENGTH_LINES */
        {0x0202, 0x05C4},       /* COARSE_INTEGRATION_TIME */
        {0x3014, 0x0702},       /* FINE_INTEGRATION_TIME */
@@ -864,7 +864,7 @@ static struct ar0832_reg mode_1920X1080_8141[] = {
        {0x3178, 0x0000},       /* RESERVED_MFR_3178 */
        {0x3ED0, 0x1E24},       /* RESERVED_MFR_3ED0 */
 
-       {0x0342, 0x103B},       /* LINE_LENGTH_PCK */
+       {0x0342, 0x1139},       /* LINE_LENGTH_PCK */
        {0x0340, 0x05C4},       /* FRAME_LENGTH_LINES */
        {0x0202, 0x05C4},       /* COARSE_INTEGRATION_TIME */
        {0x3014, 0x0702},       /* FINE_INTEGRATION_TIME */