media: video: tegra: IMX135: change mode settings
Bhushan Rayrikar [Mon, 16 Sep 2013 19:01:30 +0000 (12:01 -0700)]
Change 3896X2192 mode to 3840X2160 to save power.

Bug 1358534

Change-Id: I2207a87b06228cd7d957a2175d252d1a0680c567
Signed-off-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-on: http://git-master/r/275249
(cherry picked from commit ac1717085a84eb95f69554304728b747f44b6b4a)
Reviewed-on: http://git-master/r/275487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

drivers/media/video/tegra/imx135.c
drivers/media/video/tegra/imx135_tables.h

index 3723f75..b5e1821 100644 (file)
@@ -280,8 +280,8 @@ imx135_set_mode(struct imx135_info *info, struct imx135_mode *mode)
                } else if (mode->xres == 2616 && mode->yres == 1472) {
                        sensor_mode = IMX135_MODE_2616X1472_HDR;
                        quality_hdr = 1;
-               } else if (mode->xres == 3896 && mode->yres == 2192) {
-                       sensor_mode = IMX135_MODE_3896X2192_HDR;
+               } else if (mode->xres == 3840 && mode->yres == 2160) {
+                       sensor_mode = IMX135_MODE_3840X2160_HDR;
                        quality_hdr = 1;
                } else {
                        pr_err("%s: invalid resolution supplied to set mode %d %d\n",
index 723fc69..b7a86bd 100644 (file)
@@ -865,7 +865,7 @@ static struct imx135_reg mode_2616x1472_HDR[] = {
        {IMX135_TABLE_END, 0x00}
 };
 
-static struct imx135_reg mode_3896x2192_HDR[] = {
+static struct imx135_reg mode_3840x2160_HDR[] = {
        /* software reset */
        {0x0103, 0x01},
        /* global settings */
@@ -954,9 +954,9 @@ static struct imx135_reg mode_3896x2192_HDR[] = {
        {0x034A, 0x0A},
        {0x034B, 0x5F},
        {0x034C, 0x0F},
-       {0x034D, 0x38},
+       {0x034D, 0x00},
        {0x034E, 0x08},
-       {0x034F, 0x90},
+       {0x034F, 0x70},
        {0x0350, 0x00},
        {0x0351, 0x00},
        {0x0352, 0x00},
@@ -2230,7 +2230,7 @@ enum {
        IMX135_MODE_1920X1080_HDR,
        IMX135_MODE_2104X1560_HDR,
        IMX135_MODE_2616X1472_HDR,
-       IMX135_MODE_3896X2192_HDR,
+       IMX135_MODE_3840X2160_HDR,
        IMX135_MODE_4208X3120,
        IMX135_MODE_2104X1560,
        IMX135_MODE_1920X1080,
@@ -2245,7 +2245,7 @@ static struct imx135_reg *mode_table[] = {
        [IMX135_MODE_2104X1560_HDR] = mode_2104x1560_HDR,
        [IMX135_MODE_1920X1080_HDR] = mode_1920x1080_HDR,
        [IMX135_MODE_2616X1472_HDR] = mode_2616x1472_HDR,
-       [IMX135_MODE_3896X2192_HDR] = mode_3896x2192_HDR,
+       [IMX135_MODE_3840X2160_HDR] = mode_3840x2160_HDR,
        [IMX135_MODE_4208X3120] = mode_4208x3120,
        [IMX135_MODE_2104X1560] = mode_2104x1560,
        [IMX135_MODE_1920X1080] = mode_1920x1080,