The patch number 11538 was added via Erik Andr?n <[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:
        Linux Media Mailing List <[email protected]>

------

From: Erik Andr?n  <[email protected]>
gscpa - m5602-ov9650: Add defines for some magic constants


Replaces some magic constants with the defines. Remove a couple of bits that 
should be set later in the process depending on the v4l2 ctrl.

Priority: normal

Signed-off-by: Erik Andr?n <[email protected]>


---

 linux/drivers/media/video/gspca/m5602/m5602_ov9650.h |   14 +++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff -r 47952d365ff6 -r 416e8f56ca59 
linux/drivers/media/video/gspca/m5602/m5602_ov9650.h
--- a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.h      Sun Jan 18 
15:13:47 2009 +0100
+++ b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.h      Sun Jan 18 
19:21:07 2009 +0100
@@ -120,6 +120,10 @@
 #define OV9650_SOFT_SLEEP              (1 << 4)
 #define OV9650_OUTPUT_DRIVE_2X         (1 << 0)
 
+#define OV9650_DENOISE_ENABLE          (1 << 5)
+#define OV9650_WHITE_PIXEL_ENABLE      (1 << 1)
+#define OV9650_WHITE_PIXEL_OPTION      (1 << 0)
+
 #define OV9650_LEFT_OFFSET             0x62
 
 #define GAIN_DEFAULT                   0x14
@@ -198,7 +202,7 @@ static const unsigned char init_ov9650[]
        /* Reset chip */
        {SENSOR, OV9650_COM7, OV9650_REGISTER_RESET},
        /* One extra reset is needed in order to make the sensor behave
-          properly when resuming from ram */
+          properly when resuming from ram, could be a timing issue */
        {SENSOR, OV9650_COM7, OV9650_REGISTER_RESET},
 
        /* Enable double clock */
@@ -208,8 +212,7 @@ static const unsigned char init_ov9650[]
 
        /* Set fast AGC/AEC algorithm with unlimited step size */
        {SENSOR, OV9650_COM8, OV9650_FAST_AGC_AEC |
-                             OV9650_AEC_UNLIM_STEP_SIZE |
-                             OV9650_AWB_EN | OV9650_AGC_EN},
+                             OV9650_AEC_UNLIM_STEP_SIZE},
 
        {SENSOR, OV9650_CHLF, 0x10},
        {SENSOR, OV9650_ARBLM, 0xbf},
@@ -280,8 +283,11 @@ static const unsigned char init_ov9650[]
        {SENSOR, OV9650_VREF, 0x10},
        {SENSOR, OV9650_ADC, 0x04},
        {SENSOR, OV9650_HV, 0x40},
+
        /* Enable denoise, and white-pixel erase */
-       {SENSOR, OV9650_COM22, 0x23},
+       {SENSOR, OV9650_COM22, OV9650_DENOISE_ENABLE |
+                OV9650_WHITE_PIXEL_ENABLE |
+                OV9650_WHITE_PIXEL_OPTION},
 
        /* Enable VARIOPIXEL */
        {SENSOR, OV9650_COM3, OV9650_VARIOPIXEL},


---

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

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

Reply via email to