• 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 hv7131d_init(struct sn9c102_device* cam)
29 err = sn9c102_write_const_regs(cam, {0x00, 0x10}, {0x00, 0x11},
33 err += sn9c102_i2c_write(cam, 0x01, 0x04);
34 err += sn9c102_i2c_write(cam, 0x02, 0x00);
35 err += sn9c102_i2c_write(cam, 0x28, 0x00);
41 static int hv7131d_get_ctrl(struct sn9c102_device* cam,
47 int r1 = sn9c102_i2c_read(cam, 0x26),
48 r2 = sn9c102_i2c_read(cam, 0x27);
55 if ((ctrl->value = sn9c102_i2c_read(cam, 0x31)) < 0)
60 if ((ctrl->value = sn9c102_i2c_read(cam, 0x33)) < 0)
65 if ((ctrl->value = sn9c102_i2c_read(cam, 0x32)) < 0)
70 if ((ctrl->value = sn9c102_i2c_read(cam, 0x30)) < 0)
75 if ((ctrl->value = sn9c102_i2c_read(cam, 0x34)) < 0)
85 static int hv7131d_set_ctrl(struct sn9c102_device* cam,
92 err += sn9c102_i2c_write(cam, 0x26, ctrl->value >> 8);
93 err += sn9c102_i2c_write(cam, 0x27, ctrl->value & 0xff);
96 err += sn9c102_i2c_write(cam, 0x31, 0x3f - ctrl->value);
99 err += sn9c102_i2c_write(cam, 0x33, 0x3f - ctrl->value);
102 err += sn9c102_i2c_write(cam, 0x32, 0x3f - ctrl->value);
105 err += sn9c102_i2c_write(cam, 0x30, ctrl->value);
108 err += sn9c102_i2c_write(cam, 0x34, ctrl->value);
118 static int hv7131d_set_crop(struct sn9c102_device* cam,
121 struct sn9c102_sensor* s = sn9c102_get_sensor(cam);
126 err += sn9c102_write_reg(cam, h_start, 0x12);
127 err += sn9c102_write_reg(cam, v_start, 0x13);
133 static int hv7131d_set_pix_format(struct sn9c102_device* cam,
139 err += sn9c102_write_reg(cam, 0x42, 0x19);
141 err += sn9c102_write_reg(cam, 0xf2, 0x19);
245 int sn9c102_probe_hv7131d(struct sn9c102_device* cam)
249 err = sn9c102_write_const_regs(cam, {0x01, 0x01}, {0x00, 0x01},
252 r0 = sn9c102_i2c_try_read(cam, &hv7131d, 0x00);
253 r1 = sn9c102_i2c_try_read(cam, &hv7131d, 0x01);
260 sn9c102_attach_sensor(cam, &hv7131d);