Commit 10bb7530 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

V4L/DVB: gscpa_sonixb: limit ov7630 max framerate at 640x480

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).
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 82e839c9
...@@ -809,10 +809,11 @@ static void setexposure(struct gspca_dev *gspca_dev) ...@@ -809,10 +809,11 @@ static void setexposure(struct gspca_dev *gspca_dev)
else if (reg11 > 16) else if (reg11 > 16)
reg11 = 16; reg11 = 16;
/* In 640x480, if the reg11 has less than 3, the image is /* In 640x480, if the reg11 has less than 4, the image is
unstable (not enough bandwidth). */ unstable (the bridge goes into a higher compression mode
if (gspca_dev->width == 640 && reg11 < 3) which we have not reverse engineered yet). */
reg11 = 3; if (gspca_dev->width == 640 && reg11 < 4)
reg11 = 4;
/* frame exposure time in ms = 1000 * reg11 / 30 -> /* frame exposure time in ms = 1000 * reg11 / 30 ->
reg10 = (sd->exposure / 2) * reg10_max / (1000 * reg11 / 30) */ reg10 = (sd->exposure / 2) * reg10_max / (1000 * reg11 / 30) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment