diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/ov772x.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index 76f296642db6..a2d51e27e48d 100644 --- a/drivers/media/video/ov772x.c +++ b/drivers/media/video/ov772x.c | |||
@@ -378,30 +378,17 @@ struct ov772x_priv { | |||
378 | 378 | ||
379 | #define ENDMARKER { 0xff, 0xff } | 379 | #define ENDMARKER { 0xff, 0xff } |
380 | 380 | ||
381 | static const struct regval_list ov772x_default_regs[] = | ||
382 | { | ||
383 | { COM3, 0x00 }, | ||
384 | { COM4, PLL_4x | 0x01 }, | ||
385 | { 0x16, 0x00 }, /* Mystery */ | ||
386 | { COM11, 0x10 }, /* Mystery */ | ||
387 | { 0x28, 0x00 }, /* Mystery */ | ||
388 | { HREF, 0x00 }, | ||
389 | { COM13, 0xe2 }, /* Mystery */ | ||
390 | { AREF0, 0xef }, | ||
391 | { AREF2, 0x60 }, | ||
392 | { AREF6, 0x7a }, | ||
393 | ENDMARKER, | ||
394 | }; | ||
395 | |||
396 | /* | 381 | /* |
397 | * register setting for color format | 382 | * register setting for color format |
398 | */ | 383 | */ |
399 | static const struct regval_list ov772x_RGB555_regs[] = { | 384 | static const struct regval_list ov772x_RGB555_regs[] = { |
385 | { COM3, 0x00 }, | ||
400 | { COM7, FMT_RGB555 | OFMT_RGB }, | 386 | { COM7, FMT_RGB555 | OFMT_RGB }, |
401 | ENDMARKER, | 387 | ENDMARKER, |
402 | }; | 388 | }; |
403 | 389 | ||
404 | static const struct regval_list ov772x_RGB565_regs[] = { | 390 | static const struct regval_list ov772x_RGB565_regs[] = { |
391 | { COM3, 0x00 }, | ||
405 | { COM7, FMT_RGB565 | OFMT_RGB }, | 392 | { COM7, FMT_RGB565 | OFMT_RGB }, |
406 | ENDMARKER, | 393 | ENDMARKER, |
407 | }; | 394 | }; |
@@ -413,6 +400,7 @@ static const struct regval_list ov772x_YYUV_regs[] = { | |||
413 | }; | 400 | }; |
414 | 401 | ||
415 | static const struct regval_list ov772x_UVYY_regs[] = { | 402 | static const struct regval_list ov772x_UVYY_regs[] = { |
403 | { COM3, 0x00 }, | ||
416 | { COM7, OFMT_YUV }, | 404 | { COM7, OFMT_YUV }, |
417 | ENDMARKER, | 405 | ENDMARKER, |
418 | }; | 406 | }; |
@@ -634,9 +622,6 @@ static int ov772x_start_capture(struct soc_camera_device *icd) | |||
634 | * reset hardware | 622 | * reset hardware |
635 | */ | 623 | */ |
636 | ov772x_reset(priv->client); | 624 | ov772x_reset(priv->client); |
637 | ret = ov772x_write_array(priv->client, ov772x_default_regs); | ||
638 | if (ret < 0) | ||
639 | goto start_end; | ||
640 | 625 | ||
641 | /* | 626 | /* |
642 | * set color format | 627 | * set color format |