The patch number 8198 was added via Jean-Francois Moine <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Hans de Goede  <[EMAIL PROTECTED]>
gspca: Frame decoding errors when PAC207 in full daylight.


Signed-off-by: Hans de Goede <[EMAIL PROTECTED]>
Signed-off-by: Jean-Francois Moine <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/gspca/pac207.c |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff -r 8745ad321988 -r ce410a987cb8 linux/drivers/media/video/gspca/pac207.c
--- a/linux/drivers/media/video/gspca/pac207.c  Fri Jul 04 20:29:32 2008 +0200
+++ b/linux/drivers/media/video/gspca/pac207.c  Fri Jul 04 20:39:08 2008 +0200
@@ -40,9 +40,17 @@ MODULE_LICENSE("GPL");
 #define PAC207_BRIGHTNESS_MAX          255
 #define PAC207_BRIGHTNESS_DEFAULT      4 /* power on default: 4 */
 
-#define PAC207_EXPOSURE_MIN            4
+/* An exposure value of 4 also works (3 does not) but then we need to lower
+   the compression balance setting when in 352x288 mode, otherwise the usb
+   bandwidth is not enough and packets get dropped resulting in corrupt
+   frames. The problem with this is that when the compression balance gets
+   lowered below 0x80, the pac207 starts using a different compression
+   algorithm for some lines, these lines get prefixed with a 0x2dd2 prefix
+   and currently we do not know how to decompress these lines, so for now
+   we use a minimum exposure value of 5 */
+#define PAC207_EXPOSURE_MIN            5
 #define PAC207_EXPOSURE_MAX            26
-#define PAC207_EXPOSURE_DEFAULT                4 /* power on default: 3 ?? */
+#define PAC207_EXPOSURE_DEFAULT                5 /* power on default: 3 ?? */
 #define PAC207_EXPOSURE_KNEE           11 /* 4 = 30 fps, 11 = 8, 15 = 6 */
 
 #define PAC207_GAIN_MIN                        0


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/ce410a987cb8075ec9dd947cb0bba09202734733

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to