aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/sonixb.c
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@hhs.nl>2008-07-15 04:36:30 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:26:33 -0400
commit3647fea840c94c04f35215cb75b48613c0af310e (patch)
tree3ecb7a769b9258b6521b5c7582db81e6fb2af848 /drivers/media/video/gspca/sonixb.c
parentad5ef80dd79851ea683e2d30ca4ebdc0c043a675 (diff)
V4L/DVB (8356): gspca: 352x288 mode fix and source clean-up for Sonix bridges.
sonixb: Bad initialization of sensor for 352x288 mode. (from Hans de Goede) sonixj: Clean-up source. Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/gspca/sonixb.c')
-rw-r--r--drivers/media/video/gspca/sonixb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c
index 6c97c8356d7f..c0ce21fe85f7 100644
--- a/drivers/media/video/gspca/sonixb.c
+++ b/drivers/media/video/gspca/sonixb.c
@@ -244,7 +244,7 @@ static const __u8 initOv7630_3[] = {
244 0x44, 0x44, 0x00, 0x1a, 0x20, 0x20, 0x20, 0x80, /* r01 .. r08 */ 244 0x44, 0x44, 0x00, 0x1a, 0x20, 0x20, 0x20, 0x80, /* r01 .. r08 */
245 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, /* r09 .. r10 */ 245 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, /* r09 .. r10 */
246 0x00, 0x01, 0x01, 0x0a, /* r11 .. r14 */ 246 0x00, 0x01, 0x01, 0x0a, /* r11 .. r14 */
247 0x16, 0x12, /* H & V sizes r15 .. r16 */ 247 0x28, 0x1e, /* H & V sizes r15 .. r16 */
248 0x68, 0x8f, MCK_INIT1, /* r17 .. r19 */ 248 0x68, 0x8f, MCK_INIT1, /* r17 .. r19 */
249 0x1d, 0x10, 0x02, 0x03, 0x0f, 0x0c, 0x00, /* r1a .. r20 */ 249 0x1d, 0x10, 0x02, 0x03, 0x0f, 0x0c, 0x00, /* r1a .. r20 */
250 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, /* r21 .. r28 */ 250 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, /* r21 .. r28 */
@@ -785,7 +785,6 @@ static void sd_start(struct gspca_dev *gspca_dev)
785 const __u8 *sn9c10x; 785 const __u8 *sn9c10x;
786 __u8 reg01, reg17; 786 __u8 reg01, reg17;
787 __u8 reg17_19[3]; 787 __u8 reg17_19[3];
788 static const __u8 reg15[2] = { 0x28, 0x1e };
789 788
790 mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; 789 mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
791 switch (sd->sensor) { 790 switch (sd->sensor) {
@@ -905,8 +904,8 @@ static void sd_start(struct gspca_dev *gspca_dev)
905 sizeof tas5130_sensor_init); 904 sizeof tas5130_sensor_init);
906 break; 905 break;
907 } 906 }
908 /* H_size V_size 0x28, 0x1e maybe 640x480 */ 907 /* H_size V_size 0x28, 0x1e -> 640x480. 0x16, 0x12 -> 352x288 */
909 reg_w(gspca_dev, 0x15, reg15, 2); 908 reg_w(gspca_dev, 0x15, &sn9c10x[0x15 - 1], 2);
910 /* compression register */ 909 /* compression register */
911 reg_w(gspca_dev, 0x18, &reg17_19[1], 1); 910 reg_w(gspca_dev, 0x18, &reg17_19[1], 1);
912 if (sd->sensor != SENSOR_OV7630_3) { 911 if (sd->sensor != SENSOR_OV7630_3) {