Commit 10bb7530108cc11fedd0d615467a54f341079778

Authored by Hans de Goede
Committed by Mauro Carvalho Chehab
1 parent 82e839c9c5

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: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

Showing 1 changed file with 5 additions and 4 deletions Side-by-side Diff

drivers/media/video/gspca/sonixb.c
... ... @@ -809,10 +809,11 @@
809 809 else if (reg11 > 16)
810 810 reg11 = 16;
811 811  
812   - /* In 640x480, if the reg11 has less than 3, the image is
813   - unstable (not enough bandwidth). */
814   - if (gspca_dev->width == 640 && reg11 < 3)
815   - reg11 = 3;
  812 + /* In 640x480, if the reg11 has less than 4, the image is
  813 + unstable (the bridge goes into a higher compression mode
  814 + which we have not reverse engineered yet). */
  815 + if (gspca_dev->width == 640 && reg11 < 4)
  816 + reg11 = 4;
816 817  
817 818 /* frame exposure time in ms = 1000 * reg11 / 30 ->
818 819 reg10 = (sd->exposure / 2) * reg10_max / (1000 * reg11 / 30) */