Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181753
b: refs/heads/master
c: 10bb753
h: refs/heads/master
i:
  181751: 1678108
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 1fb8d56 commit 8260c64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 82e839c9c5f79c4e55dc1b6ecb2cf1c055f753c5
refs/heads/master: 10bb7530108cc11fedd0d615467a54f341079778
9 changes: 5 additions & 4 deletions trunk/drivers/media/video/gspca/sonixb.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,11 @@ static void setexposure(struct gspca_dev *gspca_dev)
else if (reg11 > 16)
reg11 = 16;

/* In 640x480, if the reg11 has less than 3, the image is
unstable (not enough bandwidth). */
if (gspca_dev->width == 640 && reg11 < 3)
reg11 = 3;
/* In 640x480, if the reg11 has less than 4, the image is
unstable (the bridge goes into a higher compression mode
which we have not reverse engineered yet). */
if (gspca_dev->width == 640 && reg11 < 4)
reg11 = 4;

/* frame exposure time in ms = 1000 * reg11 / 30 ->
reg10 = (sd->exposure / 2) * reg10_max / (1000 * reg11 / 30) */
Expand Down

0 comments on commit 8260c64

Please sign in to comment.