From: root Date: Wed, 16 May 2012 09:21:05 +0000 (+0800) Subject: camera rk30: ov2655 mirror and flip is initialized wrong , fix it. X-Git-Tag: firefly_0821_release~9171 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8f97a8e9563aea718b7de705fa5db046b0e1d49;p=firefly-linux-kernel-4.4.55.git camera rk30: ov2655 mirror and flip is initialized wrong , fix it. --- diff --git a/drivers/media/video/ov2655.c b/drivers/media/video/ov2655.c old mode 100755 new mode 100644 index f31b005777de..c12a5a40c14d --- a/drivers/media/video/ov2655.c +++ b/drivers/media/video/ov2655.c @@ -118,14 +118,14 @@ static struct reginfo sensor_init_data[] = {0x360b, 0x00}, {0x30b0, 0xff}, {0x30b1, 0xff}, - {0x30b2, 0x26}, + {0x30b2, 0x24}, {0x300e, 0x34}, {0x300f, 0xa6}, {0x3010, 0x81}, {0x3082, 0x01}, {0x30f4, 0x01}, - {0x3090, 0x3b},//0x33}, + {0x3090, 0x33},//0x3b}, {0x3091, 0xc0}, {0x30ac, 0x42}, @@ -317,7 +317,7 @@ static struct reginfo sensor_init_data[] = {0x3379, 0x80}, {0x3069, 0x84}, - {0x307c, 0x13},//0x10}, + {0x307c, 0x10},//0x13}, {0x3087, 0x02}, {0x3300, 0xfc}, @@ -334,22 +334,6 @@ static struct reginfo sensor_init_data[] = {0x3086, 0x0f}, {0x3086, 0x00}, -#if 0 - //night mode - {0x300e, 0x34}, - {0x3011, 0x00}, - {0x302c, 0x00}, - {0x3071, 0x00}, - {0x3070, 0xb9}, - {0x301c, 0x02}, - {0x3073, 0x00}, - {0x3072, 0x9a}, - {0x301d, 0x03}, - {0x3014, 0x0c}, - {0x3015, 0x50},//add 5 dummy frame - {0x302e, 0x00}, - {0x302d, 0x00}, -#endif {0x0, 0x0} //end flag @@ -361,10 +345,9 @@ static struct reginfo sensor_720p[]= /* 1600X1200 UXGA */ static struct reginfo sensor_uxga[] = { -#if 1 - // {0x3086,0x01}, //sleep off + {0x300E, 0x34}, - {0x3011, 0x00}, + {0x3011, 0x01}, {0x3012, 0x00}, {0x302a, 0x05}, {0x302b, 0xCB}, @@ -397,19 +380,7 @@ static struct reginfo sensor_uxga[] = {0x331C, 0x00}, {0x331D, 0x6C}, {0x3302, 0x01}, - // {0x3086,0x00}, //sleep on -#else - {0x300e, 0x38}, - {0x3011, 0x00}, - {0x302c, 0x00}, - {0x3071, 0x00}, - {0x3070, 0x5d}, - {0x301c, 0x0d}, - {0x3073, 0x00}, - {0x3072, 0x4e}, - {0x301d, 0x0f}, -#endif {0x0, 0x0}, }; @@ -507,7 +478,7 @@ static struct reginfo sensor_vga[] = { // {0x3086,0x00}, //sleep off {0x300E, 0x34}, - {0x3011, 0x00}, + {0x3011, 0x01}, {0x3012, 0x10}, {0x302a, 0x02}, {0x302b, 0xE6},