Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124538
b: refs/heads/master
c: 2d42513
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 24bd796 commit 12392a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 297a7ef700ce2e91ed0f941034541d1563ef0a7d
refs/heads/master: 2d425131d2c44228c4390d2d48d302f3e122bc49
21 changes: 3 additions & 18 deletions trunk/drivers/media/video/ov772x.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,30 +378,17 @@ struct ov772x_priv {

#define ENDMARKER { 0xff, 0xff }

static const struct regval_list ov772x_default_regs[] =
{
{ COM3, 0x00 },
{ COM4, PLL_4x | 0x01 },
{ 0x16, 0x00 }, /* Mystery */
{ COM11, 0x10 }, /* Mystery */
{ 0x28, 0x00 }, /* Mystery */
{ HREF, 0x00 },
{ COM13, 0xe2 }, /* Mystery */
{ AREF0, 0xef },
{ AREF2, 0x60 },
{ AREF6, 0x7a },
ENDMARKER,
};

/*
* register setting for color format
*/
static const struct regval_list ov772x_RGB555_regs[] = {
{ COM3, 0x00 },
{ COM7, FMT_RGB555 | OFMT_RGB },
ENDMARKER,
};

static const struct regval_list ov772x_RGB565_regs[] = {
{ COM3, 0x00 },
{ COM7, FMT_RGB565 | OFMT_RGB },
ENDMARKER,
};
Expand All @@ -413,6 +400,7 @@ static const struct regval_list ov772x_YYUV_regs[] = {
};

static const struct regval_list ov772x_UVYY_regs[] = {
{ COM3, 0x00 },
{ COM7, OFMT_YUV },
ENDMARKER,
};
Expand Down Expand Up @@ -634,9 +622,6 @@ static int ov772x_start_capture(struct soc_camera_device *icd)
* reset hardware
*/
ov772x_reset(priv->client);
ret = ov772x_write_array(priv->client, ov772x_default_regs);
if (ret < 0)
goto start_end;

/*
* set color format
Expand Down

0 comments on commit 12392a5

Please sign in to comment.