[media] gspca: Fix coding style issues
The errors were found by checkpatch.pl. Most fixes are: - remove spaces followed by TAB(s), - split lines greater than 80 characters, - move most '{'s from start of line to end of previous line. (Some '{'s at start of line remain when the '}'s are on the same line) Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
76ad3b684a
commit
780e312175
@ -152,7 +152,8 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
|
||||
reg_w(gspca_dev, 0x003c, 0x0005);
|
||||
reg_w(gspca_dev, 0x003c, 0x0006);
|
||||
reg_w(gspca_dev, 0x003c, 0x0007);
|
||||
usb_set_interface(gspca_dev->dev, gspca_dev->iface, gspca_dev->nbalt - 1);
|
||||
usb_set_interface(gspca_dev->dev, gspca_dev->iface,
|
||||
gspca_dev->nbalt - 1);
|
||||
}
|
||||
|
||||
static void sd_pkt_scan(struct gspca_dev *gspca_dev,
|
||||
|
@ -687,7 +687,7 @@ static void cx11646_jpeg(struct gspca_dev*gspca_dev)
|
||||
reg_w_val(gspca_dev, 0x00c0, 0x00);
|
||||
reg_r(gspca_dev, 0x0001, 1);
|
||||
length = 8;
|
||||
switch (gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv) {
|
||||
switch (gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv) {
|
||||
case 0:
|
||||
for (i = 0; i < 27; i++) {
|
||||
if (i == 26)
|
||||
|
@ -710,9 +710,9 @@ static void Et_setgainG(struct gspca_dev *gspca_dev, __u8 gain)
|
||||
}
|
||||
|
||||
#define BLIMIT(bright) \
|
||||
(__u8)((bright > 0x1f)?0x1f:((bright < 4)?3:bright))
|
||||
(u8)((bright > 0x1f) ? 0x1f : ((bright < 4) ? 3 : bright))
|
||||
#define LIMIT(color) \
|
||||
(unsigned char)((color > 0xff)?0xff:((color < 0)?0:color))
|
||||
(u8)((color > 0xff) ? 0xff : ((color < 0) ? 0 : color))
|
||||
|
||||
static void do_autogain(struct gspca_dev *gspca_dev)
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ static const struct ctrl sd_ctrls[] = {
|
||||
{
|
||||
.id = V4L2_CID_CONTRAST,
|
||||
.type = V4L2_CTRL_TYPE_INTEGER,
|
||||
.name = "contrast",
|
||||
.name = "Contrast",
|
||||
.minimum = 0,
|
||||
.maximum = 9,
|
||||
.step = 4,
|
||||
@ -121,7 +121,7 @@ static const struct ctrl sd_ctrls[] = {
|
||||
{
|
||||
.id = V4L2_CID_WHITE_BALANCE_TEMPERATURE,
|
||||
.type = V4L2_CTRL_TYPE_INTEGER,
|
||||
.name = "Whitebalance ",
|
||||
.name = "White Balance",
|
||||
.minimum = 0,
|
||||
.maximum = 33,
|
||||
.step = 1,
|
||||
|
@ -125,8 +125,7 @@ static const struct m5602_sensor mt9m111 = {
|
||||
.start = mt9m111_start,
|
||||
};
|
||||
|
||||
static const unsigned char preinit_mt9m111[][4] =
|
||||
{
|
||||
static const unsigned char preinit_mt9m111[][4] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02, 0x00},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
|
||||
@ -165,8 +164,7 @@ static const unsigned char preinit_mt9m111[][4] =
|
||||
{BRIDGE, M5602_XB_I2C_CLK_DIV, 0x0a, 0x00}
|
||||
};
|
||||
|
||||
static const unsigned char init_mt9m111[][4] =
|
||||
{
|
||||
static const unsigned char init_mt9m111[][4] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02, 0x00},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
|
||||
@ -257,8 +255,7 @@ static const unsigned char init_mt9m111[][4] =
|
||||
{SENSOR, MT9M111_SC_SHUTTER_WIDTH, 0x01, 0x90},
|
||||
};
|
||||
|
||||
static const unsigned char start_mt9m111[][4] =
|
||||
{
|
||||
static const unsigned char start_mt9m111[][4] = {
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0, 0x00},
|
||||
@ -271,5 +268,4 @@ static const unsigned char start_mt9m111[][4] =
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00, 0x00},
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -105,8 +105,7 @@ static const struct m5602_sensor ov7660 = {
|
||||
.disconnect = ov7660_disconnect,
|
||||
};
|
||||
|
||||
static const unsigned char preinit_ov7660[][4] =
|
||||
{
|
||||
static const unsigned char preinit_ov7660[][4] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
@ -140,8 +139,7 @@ static const unsigned char preinit_ov7660[][4] =
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00}
|
||||
};
|
||||
|
||||
static const unsigned char init_ov7660[][4] =
|
||||
{
|
||||
static const unsigned char init_ov7660[][4] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
@ -259,5 +257,4 @@ static const unsigned char init_ov7660[][4] =
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -154,8 +154,7 @@ static const struct m5602_sensor ov9650 = {
|
||||
.disconnect = ov9650_disconnect,
|
||||
};
|
||||
|
||||
static const unsigned char preinit_ov9650[][3] =
|
||||
{
|
||||
static const unsigned char preinit_ov9650[][3] = {
|
||||
/* [INITCAM] */
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0},
|
||||
@ -180,8 +179,7 @@ static const unsigned char preinit_ov9650[][3] =
|
||||
{SENSOR, OV9650_OFON, 0x40}
|
||||
};
|
||||
|
||||
static const unsigned char init_ov9650[][3] =
|
||||
{
|
||||
static const unsigned char init_ov9650[][3] = {
|
||||
/* [INITCAM] */
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0},
|
||||
@ -297,8 +295,7 @@ static const unsigned char init_ov9650[][3] =
|
||||
{SENSOR, OV9650_COM2, OV9650_SOFT_SLEEP | OV9650_OUTPUT_DRIVE_2X},
|
||||
};
|
||||
|
||||
static const unsigned char res_init_ov9650[][3] =
|
||||
{
|
||||
static const unsigned char res_init_ov9650[][3] = {
|
||||
{SENSOR, OV9650_COM2, OV9650_OUTPUT_DRIVE_2X},
|
||||
|
||||
{BRIDGE, M5602_XB_LINE_OF_FRAME_H, 0x82},
|
||||
@ -307,5 +304,4 @@ static const unsigned char res_init_ov9650[][3] =
|
||||
{BRIDGE, M5602_XB_PIX_OF_LINE_L, 0x00},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x01}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -166,8 +166,7 @@ static const struct m5602_sensor po1030 = {
|
||||
.disconnect = po1030_disconnect,
|
||||
};
|
||||
|
||||
static const unsigned char preinit_po1030[][3] =
|
||||
{
|
||||
static const unsigned char preinit_po1030[][3] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
@ -193,8 +192,7 @@ static const unsigned char preinit_po1030[][3] =
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x00}
|
||||
};
|
||||
|
||||
static const unsigned char init_po1030[][3] =
|
||||
{
|
||||
static const unsigned char init_po1030[][3] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
@ -271,5 +269,4 @@ static const unsigned char init_po1030[][3] =
|
||||
{BRIDGE, M5602_XB_GPIO_EN_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00},
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -83,8 +83,7 @@ static const struct m5602_sensor s5k4aa = {
|
||||
.disconnect = s5k4aa_disconnect,
|
||||
};
|
||||
|
||||
static const unsigned char preinit_s5k4aa[][4] =
|
||||
{
|
||||
static const unsigned char preinit_s5k4aa[][4] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02, 0x00},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
|
||||
@ -127,8 +126,7 @@ static const unsigned char preinit_s5k4aa[][4] =
|
||||
{SENSOR, S5K4AA_PAGE_MAP, 0x00, 0x00}
|
||||
};
|
||||
|
||||
static const unsigned char init_s5k4aa[][4] =
|
||||
{
|
||||
static const unsigned char init_s5k4aa[][4] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02, 0x00},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
|
||||
@ -179,8 +177,7 @@ static const unsigned char init_s5k4aa[][4] =
|
||||
{SENSOR, 0x37, 0x00, 0x00},
|
||||
};
|
||||
|
||||
static const unsigned char VGA_s5k4aa[][4] =
|
||||
{
|
||||
static const unsigned char VGA_s5k4aa[][4] = {
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0, 0x00},
|
||||
@ -235,8 +232,7 @@ static const unsigned char VGA_s5k4aa[][4] =
|
||||
{SENSOR, 0x02, 0x0e, 0x00},
|
||||
};
|
||||
|
||||
static const unsigned char SXGA_s5k4aa[][4] =
|
||||
{
|
||||
static const unsigned char SXGA_s5k4aa[][4] = {
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0, 0x00},
|
||||
@ -284,6 +280,4 @@ static const unsigned char SXGA_s5k4aa[][4] =
|
||||
{SENSOR, S5K4AA_PAGE_MAP, 0x02, 0x00},
|
||||
{SENSOR, 0x02, 0x0e, 0x00},
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -67,8 +67,7 @@ struct s5k83a_priv {
|
||||
s32 *settings;
|
||||
};
|
||||
|
||||
static const unsigned char preinit_s5k83a[][4] =
|
||||
{
|
||||
static const unsigned char preinit_s5k83a[][4] = {
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02, 0x00},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
|
||||
@ -108,8 +107,7 @@ static const unsigned char preinit_s5k83a[][4] =
|
||||
/* This could probably be considerably shortened.
|
||||
I don't have the hardware to experiment with it, patches welcome
|
||||
*/
|
||||
static const unsigned char init_s5k83a[][4] =
|
||||
{
|
||||
static const unsigned char init_s5k83a[][4] = {
|
||||
/* The following sequence is useless after a clean boot
|
||||
but is necessary after resume from suspend */
|
||||
{BRIDGE, M5602_XB_GPIO_DIR, 0x1d, 0x00},
|
||||
@ -166,8 +164,7 @@ static const unsigned char init_s5k83a[][4] =
|
||||
{SENSOR, 0x00, 0x06, 0x00},
|
||||
};
|
||||
|
||||
static const unsigned char start_s5k83a[][4] =
|
||||
{
|
||||
static const unsigned char start_s5k83a[][4] = {
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0, 0x00},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0, 0x00},
|
||||
@ -193,5 +190,4 @@ static const unsigned char start_s5k83a[][4] =
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0, 0x00},
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -603,13 +603,11 @@ struct ov_i2c_regvals {
|
||||
};
|
||||
|
||||
/* Settings for OV2610 camera chip */
|
||||
static const struct ov_i2c_regvals norm_2610[] =
|
||||
{
|
||||
static const struct ov_i2c_regvals norm_2610[] = {
|
||||
{ 0x12, 0x80 }, /* reset */
|
||||
};
|
||||
|
||||
static const struct ov_i2c_regvals norm_3620b[] =
|
||||
{
|
||||
static const struct ov_i2c_regvals norm_3620b[] = {
|
||||
/*
|
||||
* From the datasheet: "Note that after writing to register COMH
|
||||
* (0x12) to change the sensor mode, registers related to the
|
||||
|
@ -897,9 +897,8 @@ static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val)
|
||||
struct sd *sd = (struct sd *) gspca_dev;
|
||||
|
||||
sd->contrast = val;
|
||||
if (gspca_dev->streaming) {
|
||||
if (gspca_dev->streaming)
|
||||
setbrightcont(gspca_dev);
|
||||
}
|
||||
return gspca_dev->usb_err;
|
||||
}
|
||||
|
||||
|
@ -672,9 +672,8 @@ static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val)
|
||||
struct sd *sd = (struct sd *) gspca_dev;
|
||||
|
||||
sd->contrast = val;
|
||||
if (gspca_dev->streaming) {
|
||||
if (gspca_dev->streaming)
|
||||
setcontrast(gspca_dev);
|
||||
}
|
||||
return gspca_dev->usb_err;
|
||||
}
|
||||
|
||||
|
@ -1270,7 +1270,8 @@ static int soi968_init_sensor(struct gspca_dev *gspca_dev)
|
||||
}
|
||||
}
|
||||
/* disable hflip and vflip */
|
||||
gspca_dev->ctrl_dis = (1 << HFLIP_IDX) | (1 << VFLIP_IDX) | (1 << EXPOSURE_IDX);
|
||||
gspca_dev->ctrl_dis = (1 << HFLIP_IDX) | (1 << VFLIP_IDX)
|
||||
| (1 << EXPOSURE_IDX);
|
||||
sd->hstart = 60;
|
||||
sd->vstart = 11;
|
||||
return 0;
|
||||
@ -1349,7 +1350,9 @@ static int mt9v_init_sensor(struct gspca_dev *gspca_dev)
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) | (1 << GAIN_IDX);
|
||||
gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX)
|
||||
| (1 << AUTOGAIN_IDX)
|
||||
| (1 << GAIN_IDX);
|
||||
sd->hstart = 2;
|
||||
sd->vstart = 2;
|
||||
sd->sensor = SENSOR_MT9V111;
|
||||
@ -1393,7 +1396,8 @@ static int mt9m112_init_sensor(struct gspca_dev *gspca_dev)
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) | (1 << GAIN_IDX);
|
||||
gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX)
|
||||
| (1 << GAIN_IDX);
|
||||
sd->hstart = 0;
|
||||
sd->vstart = 2;
|
||||
return 0;
|
||||
@ -1410,7 +1414,8 @@ static int mt9m111_init_sensor(struct gspca_dev *gspca_dev)
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) | (1 << GAIN_IDX);
|
||||
gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX)
|
||||
| (1 << GAIN_IDX);
|
||||
sd->hstart = 0;
|
||||
sd->vstart = 2;
|
||||
return 0;
|
||||
|
@ -323,8 +323,7 @@ static const __u8 initOv6650[] = {
|
||||
0x00, 0x01, 0x01, 0x0a, 0x16, 0x12, 0x68, 0x8b,
|
||||
0x10, 0x1d, 0x10, 0x02, 0x02, 0x09, 0x07
|
||||
};
|
||||
static const __u8 ov6650_sensor_init[][8] =
|
||||
{
|
||||
static const __u8 ov6650_sensor_init[][8] = {
|
||||
/* Bright, contrast, etc are set through SCBB interface.
|
||||
* AVCAP on win2 do not send any data on this controls. */
|
||||
/* Anyway, some registers appears to alter bright and constrat */
|
||||
|
@ -321,6 +321,7 @@ static const __u32 ctrl_dis[] = {
|
||||
[SENSOR_PO2030N] = (1 << AUTOGAIN) |
|
||||
(1 << INFRARED) |
|
||||
(1 << FREQ),
|
||||
|
||||
[SENSOR_SOI768] = (1 << AUTOGAIN) |
|
||||
(1 << INFRARED) |
|
||||
(1 << HFLIP) |
|
||||
@ -1712,7 +1713,6 @@ static void ov7648_probe(struct gspca_dev *gspca_dev)
|
||||
sd->sensor = SENSOR_PO1030;
|
||||
return;
|
||||
}
|
||||
|
||||
err("Unknown sensor %04x", val);
|
||||
}
|
||||
|
||||
@ -2678,7 +2678,6 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/* here change size mode 0 -> VGA; 1 -> CIF */
|
||||
sd->reg18 = sn9c1xx[0x18] | (mode << 4) | 0x40;
|
||||
reg_w1(gspca_dev, 0x18, sd->reg18);
|
||||
|
@ -92,8 +92,7 @@ static const struct v4l2_pix_format sif_mode[] = {
|
||||
* Initialization data: this is the first set-up data written to the
|
||||
* device (before the open data).
|
||||
*/
|
||||
static const u16 spca508_init_data[][2] =
|
||||
{
|
||||
static const u16 spca508_init_data[][2] = {
|
||||
{0x0000, 0x870b},
|
||||
|
||||
{0x0020, 0x8112}, /* Video drop enable, ISO streaming disable */
|
||||
|
@ -163,7 +163,8 @@ static int hdcs_reg_write_seq(struct sd *sd, u8 reg, u8 *vals, u8 len)
|
||||
for (i = 0; i < len; i++) {
|
||||
regs[2 * i] = reg;
|
||||
regs[2 * i + 1] = vals[i];
|
||||
/* All addresses are shifted left one bit as bit 0 toggles r/w */
|
||||
/* All addresses are shifted left one bit
|
||||
* as bit 0 toggles r/w */
|
||||
reg += 2;
|
||||
}
|
||||
|
||||
|
@ -712,6 +712,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
||||
sd->subtype = id->driver_info;
|
||||
|
||||
if (sd->subtype == AiptekMiniPenCam13) {
|
||||
|
||||
/* try to get the firmware as some cam answer 2.0.1.2.2
|
||||
* and should be a spca504b then overwrite that setting */
|
||||
reg_r(gspca_dev, 0x20, 0, 1);
|
||||
|
@ -3729,7 +3729,6 @@ static const struct usb_action pas106b_InitialScale[] = { /* 176x144 */
|
||||
{0xaa, 0x0d, 0x0000},
|
||||
{0xaa, 0x0e, 0x0002},
|
||||
{0xaa, 0x14, 0x0081},
|
||||
|
||||
/* Other registers */
|
||||
{0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION},
|
||||
/* Frame retreiving */
|
||||
@ -3783,7 +3782,6 @@ static const struct usb_action pas106b_InitialScale[] = { /* 176x144 */
|
||||
{0xa0, 0x05, ZC3XX_R185_WINYWIDTH},
|
||||
{0xa0, 0x14, ZC3XX_R186_WINYCENTER},
|
||||
{0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE},
|
||||
|
||||
/* Auto exposure and white balance */
|
||||
{0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH},
|
||||
{0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID},
|
||||
@ -3847,7 +3845,6 @@ static const struct usb_action pas106b_Initial[] = { /* 352x288 */
|
||||
{0xaa, 0x0d, 0x0000},
|
||||
{0xaa, 0x0e, 0x0002},
|
||||
{0xaa, 0x14, 0x0081},
|
||||
|
||||
/* Other registers */
|
||||
{0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION},
|
||||
/* Frame retreiving */
|
||||
@ -6307,8 +6304,7 @@ static int vga_3wr_probe(struct gspca_dev *gspca_dev)
|
||||
if (chipset_revision_sensor[i].revision == retword) {
|
||||
sd->chip_revision = retword;
|
||||
send_unknown(gspca_dev, SENSOR_PB0330);
|
||||
return chipset_revision_sensor[i]
|
||||
.internal_sensor_id;
|
||||
return chipset_revision_sensor[i].internal_sensor_id;
|
||||
}
|
||||
}
|
||||
|
||||
@ -6787,7 +6783,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
||||
/* fall thru */
|
||||
case SENSOR_PAS202B:
|
||||
case SENSOR_PO2030:
|
||||
/* reg_w(gspca_dev, 0x40, ZC3XX_R117_GGAIN); * (from win traces) */
|
||||
/* reg_w(gspca_dev, 0x40, ZC3XX_R117_GGAIN); in win traces */
|
||||
reg_r(gspca_dev, 0x0180);
|
||||
break;
|
||||
case SENSOR_OV7620:
|
||||
|
Reference in New Issue
Block a user