ov8830: adjust manual white balance gains
authorTuukka Toivonen <tuukka.toivonen@intel.com>
Wed, 7 Mar 2012 12:36:29 +0000 (14:36 +0200)
committerbuildbot <buildbot@intel.com>
Mon, 12 Mar 2012 10:18:00 +0000 (03:18 -0700)
BZ: 26645

Adjust white balance gains to red: 1.43 green: 1.0 blue: 1.56

Change-Id: I869f4ead72f0164be17d74c0f501ec6ac4972bea
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37842
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/ov8830.c

index 1534b34..026c3d5 100644 (file)
@@ -86,12 +86,12 @@ static const struct ov8830_reg ov8830_mode1[] = {
        { OV8830_8BIT, { 0x30b6 }, 0x01 },      /* PLL1_op_sys_div: 1 */
        { OV8830_8BIT, { 0x3104 }, 0xa1 },
        { OV8830_8BIT, { 0x3106 }, 0x01 },
-       { OV8830_8BIT, { 0x3400 }, 0x04 },
-       { OV8830_8BIT, { 0x3401 }, 0x00 },
+       { OV8830_8BIT, { 0x3400 }, 0x05 },
+       { OV8830_8BIT, { 0x3401 }, 0xB8 },
        { OV8830_8BIT, { 0x3402 }, 0x04 },
        { OV8830_8BIT, { 0x3403 }, 0x00 },
-       { OV8830_8BIT, { 0x3404 }, 0x04 },
-       { OV8830_8BIT, { 0x3405 }, 0x00 },
+       { OV8830_8BIT, { 0x3404 }, 0x06 },
+       { OV8830_8BIT, { 0x3405 }, 0x3D },
        { OV8830_8BIT, { 0x3406 }, 0x01 },
        { OV8830_8BIT, { 0x3500 }, 0x00 },
        { OV8830_8BIT, { 0x3501 }, 0x7c },
@@ -364,12 +364,12 @@ static const struct ov8830_reg ov8830_mode_1600[] = {
        { OV8830_8BIT, { 0x3104 }, 0xA1 },
        { OV8830_8BIT, { 0x3106 }, 0x01 },
        { OV8830_8BIT, { 0x3300 }, 0x00 },
-       { OV8830_8BIT, { 0x3400 }, 0x04 },
-       { OV8830_8BIT, { 0x3401 }, 0x00 },
+       { OV8830_8BIT, { 0x3400 }, 0x05 },
+       { OV8830_8BIT, { 0x3401 }, 0xB8 },
        { OV8830_8BIT, { 0x3402 }, 0x04 },
        { OV8830_8BIT, { 0x3403 }, 0x00 },
-       { OV8830_8BIT, { 0x3404 }, 0x04 },
-       { OV8830_8BIT, { 0x3405 }, 0x00 },
+       { OV8830_8BIT, { 0x3404 }, 0x06 },
+       { OV8830_8BIT, { 0x3405 }, 0x3D },
        { OV8830_8BIT, { 0x3406 }, 0x01 },
        { OV8830_8BIT, { 0x3500 }, 0x00 },
        { OV8830_8BIT, { 0x3501 }, 0x4C },
@@ -663,12 +663,12 @@ static const struct ov8830_reg ov8830_mode2[] = {
        { OV8830_8BIT, { 0x3104 }, 0xa1 },
        { OV8830_8BIT, { 0x3106 }, 0x01 },
        { OV8830_8BIT, { 0x3300 }, 0x00 },
-       { OV8830_8BIT, { 0x3400 }, 0x04 },
-       { OV8830_8BIT, { 0x3401 }, 0x00 },
+       { OV8830_8BIT, { 0x3400 }, 0x05 },
+       { OV8830_8BIT, { 0x3401 }, 0xB8 },
        { OV8830_8BIT, { 0x3402 }, 0x04 },
        { OV8830_8BIT, { 0x3403 }, 0x00 },
-       { OV8830_8BIT, { 0x3404 }, 0x04 },
-       { OV8830_8BIT, { 0x3405 }, 0x00 },
+       { OV8830_8BIT, { 0x3404 }, 0x06 },
+       { OV8830_8BIT, { 0x3405 }, 0x3D },
        { OV8830_8BIT, { 0x3406 }, 0x01 },
        { OV8830_8BIT, { 0x3500 }, 0x00 },
        { OV8830_8BIT, { 0x3501 }, 0x9a },