31 {0x00, 0x14}, {0x60, 0x17},
32 {0x0e, 0x18}, {0xf2, 0x19});
52 ctrl->
value = (r1 << 8) | (
r2 & 0xff);
115 return err ? -
EIO : 0;
155 .i2c_slave_id = 0x11,
156 .init = &hv7131d_init,
165 .default_value = 0x0250,
171 .name =
"red balance",
175 .default_value = 0x00,
181 .name =
"blue balance",
185 .default_value = 0x20,
191 .name =
"green balance",
195 .default_value = 0x1e,
201 .name =
"reset level",
205 .default_value = 0x30,
211 .name =
"pixel bias voltage",
215 .default_value = 0x02,
219 .get_ctrl = &hv7131d_get_ctrl,
220 .set_ctrl = &hv7131d_set_ctrl,
235 .set_crop = &hv7131d_set_crop,
242 .set_pix_format = &hv7131d_set_pix_format
248 int r0 = 0, r1 = 0,
err;
255 if (err || r0 < 0 || r1 < 0)
258 if ((r0 != 0x00 && r0 != 0x01) || r1 != 0x04)