Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109571
b: refs/heads/master
c: de00448
h: refs/heads/master
i:
  109569: 132df6c
  109567: f2cb472
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Sep 3, 2008
1 parent d92d4bc commit 3f2b56f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 012d6b029ec17f45374303bbdccd0bc206725751
refs/heads/master: de00448f708a2fd705f9c5ccdfa383dbf3dcef92
5 changes: 5 additions & 0 deletions trunk/drivers/media/video/gspca/ov519.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ static struct ctrl sd_ctrls[] = {
.get = sd_getcolors,
},
/* next controls work with ov7670 only */
#define HFLIP_IDX 3
{
{
.id = V4L2_CID_HFLIP,
Expand All @@ -140,6 +141,7 @@ static struct ctrl sd_ctrls[] = {
.set = sd_sethflip,
.get = sd_gethflip,
},
#define VFLIP_IDX 4
{
{
.id = V4L2_CID_VFLIP,
Expand Down Expand Up @@ -1370,6 +1372,9 @@ static int sd_config(struct gspca_dev *gspca_dev,
sd->colors = COLOR_DEF;
sd->hflip = HFLIP_DEF;
sd->vflip = VFLIP_DEF;
if (sd->sensor != SEN_OV7670)
gspca_dev->ctrl_dis = (1 << HFLIP_IDX)
| (1 << VFLIP_IDX);
return 0;
error:
PDEBUG(D_ERR, "OV519 Config failed");
Expand Down

0 comments on commit 3f2b56f

Please sign in to comment.