This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] gspca_cpia1: Don't allow the framerate divisor to go above 2
Author:  Hans de Goede <[email protected]>
Date:    Mon Feb 21 11:30:30 2011 -0300

Having a framerate divisor of 3 is not really necesarry and leads to
various troubles (frames going missing, compression issues) when allowed.

Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/gspca/cpia1.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=4375bfc42912c55facfb92482e1983aa2b8eca88

diff --git a/drivers/media/video/gspca/cpia1.c 
b/drivers/media/video/gspca/cpia1.c
index 4bf2cab..2a4a428 100644
--- a/drivers/media/video/gspca/cpia1.c
+++ b/drivers/media/video/gspca/cpia1.c
@@ -1,7 +1,7 @@
 /*
  * cpia CPiA (1) gspca driver
  *
- * Copyright (C) 2010 Hans de Goede <[email protected]>
+ * Copyright (C) 2010-2011 Hans de Goede <[email protected]>
  *
  * This module is adapted from the in kernel v4l1 cpia driver which is :
  *
@@ -1400,7 +1400,7 @@ static void monitor_exposure(struct gspca_dev *gspca_dev)
                if ((sd->exposure_status == EXPOSURE_VERY_DARK ||
                     sd->exposure_status == EXPOSURE_DARK) &&
                    sd->exposure_count >= DARK_TIME * framerate &&
-                   sd->params.sensorFps.divisor < 3) {
+                   sd->params.sensorFps.divisor < 2) {
 
                        /* dark for too long */
                        ++sd->params.sensorFps.divisor;
@@ -1456,7 +1456,7 @@ static void monitor_exposure(struct gspca_dev *gspca_dev)
                if ((sd->exposure_status == EXPOSURE_VERY_DARK ||
                     sd->exposure_status == EXPOSURE_DARK) &&
                    sd->exposure_count >= DARK_TIME * framerate &&
-                   sd->params.sensorFps.divisor < 3) {
+                   sd->params.sensorFps.divisor < 2) {
 
                        /* dark for too long */
                        ++sd->params.sensorFps.divisor;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to