Skip to content

Commit

Permalink
[media] gspca - ov519: Set the default frame rate to 15 fps
Browse files Browse the repository at this point in the history
The frame rate variable was not initialized, so, the lowest frame rate was
used for most webcams.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Jun 1, 2011
1 parent 5ff01d5 commit c8ef0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/ov519.c
Original file line number Diff line number Diff line change
Expand Up @@ -3307,6 +3307,7 @@ static int sd_config(struct gspca_dev *gspca_dev,

gspca_dev->cam.ctrls = sd->ctrls;
sd->quality = QUALITY_DEF;
sd->frame_rate = 15;

return 0;
}
Expand Down Expand Up @@ -3469,7 +3470,6 @@ static int sd_init(struct gspca_dev *gspca_dev)
ARRAY_SIZE(init_519_ov7660));
write_i2c_regvals(sd, norm_7660, ARRAY_SIZE(norm_7660));
sd->gspca_dev.curr_mode = 1; /* 640x480 */
sd->frame_rate = 15;
ov519_set_mode(sd);
ov519_set_fr(sd);
sd->ctrls[COLORS].max = 4; /* 0..4 */
Expand Down

0 comments on commit c8ef0a5

Please sign in to comment.