diff options
Diffstat (limited to 'drivers/media/video/gspca/ov534.c')
-rw-r--r-- | drivers/media/video/gspca/ov534.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index 0878c09e2485..c02784bbe95a 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -282,6 +282,20 @@ static const struct v4l2_pix_format ov772x_mode[] = { | |||
282 | .priv = 0}, | 282 | .priv = 0}, |
283 | }; | 283 | }; |
284 | 284 | ||
285 | static const u8 qvga_rates[] = {125, 100, 75, 60, 50, 40, 30}; | ||
286 | static const u8 vga_rates[] = {60, 50, 40, 30, 15}; | ||
287 | |||
288 | static const struct framerates ov772x_framerates[] = { | ||
289 | { /* 320x240 */ | ||
290 | .rates = qvga_rates, | ||
291 | .nrates = ARRAY_SIZE(qvga_rates), | ||
292 | }, | ||
293 | { /* 640x480 */ | ||
294 | .rates = vga_rates, | ||
295 | .nrates = ARRAY_SIZE(vga_rates), | ||
296 | }, | ||
297 | }; | ||
298 | |||
285 | static const u8 bridge_init[][2] = { | 299 | static const u8 bridge_init[][2] = { |
286 | { 0xc2, 0x0c }, | 300 | { 0xc2, 0x0c }, |
287 | { 0x88, 0xf8 }, | 301 | { 0x88, 0xf8 }, |
@@ -799,6 +813,7 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
799 | 813 | ||
800 | cam->cam_mode = ov772x_mode; | 814 | cam->cam_mode = ov772x_mode; |
801 | cam->nmodes = ARRAY_SIZE(ov772x_mode); | 815 | cam->nmodes = ARRAY_SIZE(ov772x_mode); |
816 | cam->mode_framerates = ov772x_framerates; | ||
802 | 817 | ||
803 | cam->bulk = 1; | 818 | cam->bulk = 1; |
804 | cam->bulk_size = 16384; | 819 | cam->bulk_size = 16384; |