• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/media/video/sn9c102/

Lines Matching defs:cam

25 static int hv7131r_init(struct sn9c102_device* cam)
29 switch (sn9c102_get_bridge(cam)) {
31 err = sn9c102_write_const_regs(cam, {0x00, 0x03}, {0x1a, 0x04},
50 err = sn9c102_write_const_regs(cam, {0x44, 0x01}, {0x40, 0x02},
131 err += sn9c102_i2c_write(cam, 0x20, 0x00);
132 err += sn9c102_i2c_write(cam, 0x21, 0xd6);
133 err += sn9c102_i2c_write(cam, 0x25, 0x06);
139 static int hv7131r_get_ctrl(struct sn9c102_device* cam,
144 if ((ctrl->value = sn9c102_i2c_read(cam, 0x30)) < 0)
148 if ((ctrl->value = sn9c102_i2c_read(cam, 0x31)) < 0)
153 if ((ctrl->value = sn9c102_i2c_read(cam, 0x33)) < 0)
158 if ((ctrl->value = sn9c102_i2c_read(cam, 0x32)) < 0)
163 if ((ctrl->value = sn9c102_i2c_read(cam, 0x01)) < 0)
173 static int hv7131r_set_ctrl(struct sn9c102_device* cam,
180 err += sn9c102_i2c_write(cam, 0x30, ctrl->value);
183 err += sn9c102_i2c_write(cam, 0x31, ctrl->value);
186 err += sn9c102_i2c_write(cam, 0x33, ctrl->value);
189 err += sn9c102_i2c_write(cam, 0x32, ctrl->value);
193 int r = sn9c102_i2c_read(cam, 0x01);
196 err += sn9c102_i2c_write(cam, 0x01,
208 static int hv7131r_set_crop(struct sn9c102_device* cam,
211 struct sn9c102_sensor* s = sn9c102_get_sensor(cam);
216 err += sn9c102_write_reg(cam, h_start, 0x12);
217 err += sn9c102_write_reg(cam, v_start, 0x13);
223 static int hv7131r_set_pix_format(struct sn9c102_device* cam,
228 switch (sn9c102_get_bridge(cam)) {
231 err += sn9c102_write_reg(cam, 0xa0, 0x19);
232 err += sn9c102_i2c_write(cam, 0x01, 0x04);
234 err += sn9c102_write_reg(cam, 0x30, 0x19);
235 err += sn9c102_i2c_write(cam, 0x01, 0x04);
241 err += sn9c102_write_reg(cam, 0xa5, 0x17);
242 err += sn9c102_i2c_write(cam, 0x01, 0x24);
244 err += sn9c102_write_reg(cam, 0xa3, 0x17);
245 err += sn9c102_i2c_write(cam, 0x01, 0x04);
344 int sn9c102_probe_hv7131r(struct sn9c102_device* cam)
348 err = sn9c102_write_const_regs(cam, {0x09, 0x01}, {0x44, 0x02},
352 devid = sn9c102_i2c_try_read(cam, &hv7131r, 0x00);
359 sn9c102_attach_sensor(cam, &hv7131r);