Skip to content

Commit 4ea09e6

Browse files
xuanhao_zhangasus-leslieyu
authored andcommitted
Camera: Fix ov5647 flicker issue
Adjust correct value of v_blank Change-Id: Ie55b6121a7c9cb36e6743eee8494558a86dca318
1 parent 0ebd6a7 commit 4ea09e6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/media/i2c/ov5647.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ static struct regval_list ov5647_1296x972[] = {
196196
{0x3618, 0x00}, /* analog control */
197197
{0x380c, 0x07}, /* HTS = 1896 */
198198
{0x380d, 0x68}, /* HTS */
199-
{0x380e, 0x05}, /* VTS = 1420 */
200-
{0x380f, 0x8c}, /* VTS */
199+
{0x380e, 0x06}, /* VTS = 1757 */
200+
{0x380f, 0xdd}, /* VTS */
201201
{0x3814, 0x31}, /* X INC */
202202
{0x3815, 0x31}, /* X INC */
203203
{0x3708, 0x64}, /* analog control */
@@ -236,8 +236,8 @@ static struct regval_list ov5647_2592x1944[] = {
236236
{0x3618, 0x04},
237237
{0x380c, 0x0a},
238238
{0x380d, 0x8c},
239-
{0x380e, 0x07},
240-
{0x380f, 0xb6},
239+
{0x380e, 0x09},
240+
{0x380f, 0xA4},
241241
{0x3814, 0x11},
242242
{0x3815, 0x11},
243243
{0x3708, 0x64},
@@ -270,17 +270,17 @@ static const struct ov5647_mode supported_modes[] = {
270270
{
271271
.width = 1296,
272272
.height = 972,
273-
.max_fps = 25,
273+
.max_fps = 30,
274274
.hts_def = 0x0768,
275-
.vts_def = 0x058c,
275+
.vts_def = 0x06dd,
276276
.reg_list = ov5647_1296x972,
277277
},
278278
{
279279
.width = 2592,
280280
.height = 1944,
281281
.max_fps = 15,
282282
.hts_def = 0x0a8c,
283-
.vts_def = 0x07b6,
283+
.vts_def = 0x09a4,
284284
.reg_list = ov5647_2592x1944,
285285
},
286286
};

0 commit comments

Comments
 (0)