Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181592
b: refs/heads/master
c: 29b87f0
h: refs/heads/master
v: v3
  • Loading branch information
Antonio Ospite authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 2a834bc commit 687f5af
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 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: 4b27d074748553916ebbdeed9630a6959c85e7de
refs/heads/master: 29b87f045552910f964972b7a45e9be054401a0b
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/gspca/gspca.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern int gspca_debug;

/* used to list framerates supported by a camera mode (resolution) */
struct framerates {
int *rates;
const u8 *rates;
int nrates;
};

Expand Down
15 changes: 15 additions & 0 deletions trunk/drivers/media/video/gspca/ov534.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,20 @@ static const struct v4l2_pix_format ov772x_mode[] = {
.priv = 0},
};

static const u8 qvga_rates[] = {125, 100, 75, 60, 50, 40, 30};
static const u8 vga_rates[] = {60, 50, 40, 30, 15};

static const struct framerates ov772x_framerates[] = {
{ /* 320x240 */
.rates = qvga_rates,
.nrates = ARRAY_SIZE(qvga_rates),
},
{ /* 640x480 */
.rates = vga_rates,
.nrates = ARRAY_SIZE(vga_rates),
},
};

static const u8 bridge_init[][2] = {
{ 0xc2, 0x0c },
{ 0x88, 0xf8 },
Expand Down Expand Up @@ -799,6 +813,7 @@ static int sd_config(struct gspca_dev *gspca_dev,

cam->cam_mode = ov772x_mode;
cam->nmodes = ARRAY_SIZE(ov772x_mode);
cam->mode_framerates = ov772x_framerates;

cam->bulk = 1;
cam->bulk_size = 16384;
Expand Down

0 comments on commit 687f5af

Please sign in to comment.