39 {0x00, 0x14}, {0x20, 0x17},
40 {0x30, 0x19}, {0x09, 0x18});
44 {0x1a, 0x04}, {0x20, 0x05},
45 {0x20, 0x06}, {0x20, 0x07},
46 {0x00, 0x10}, {0x00, 0x11},
47 {0x00, 0x14}, {0x20, 0x17},
48 {0x30, 0x19}, {0x09, 0x18},
49 {0x02, 0x1c}, {0x03, 0x1d},
50 {0x0f, 0x1e}, {0x0c, 0x1f},
51 {0x00, 0x20}, {0x10, 0x21},
52 {0x20, 0x22}, {0x30, 0x23},
53 {0x40, 0x24}, {0x50, 0x25},
54 {0x60, 0x26}, {0x70, 0x27},
55 {0x80, 0x28}, {0x90, 0x29},
56 {0xa0, 0x2a}, {0xb0, 0x2b},
57 {0xc0, 0x2c}, {0xd0, 0x2d},
58 {0xe0, 0x2e}, {0xf0, 0x2f},
91 ctrl->
value = (r1 << 6) | (
r2 & 0x3f);
168 return err ? -
EIO : 0;
206 .i2c_slave_id = 0x40,
207 .init = &pas202bcb_init,
216 .default_value = 0x01e5,
222 .name =
"global gain",
226 .default_value = 0x0b,
232 .name =
"red balance",
236 .default_value = 0x00,
242 .name =
"blue balance",
246 .default_value = 0x05,
252 .name =
"green balance",
256 .default_value = 0x00,
262 .name =
"DAC magnitude",
266 .default_value = 0x04,
270 .get_ctrl = &pas202bcb_get_ctrl,
271 .set_ctrl = &pas202bcb_set_ctrl,
286 .set_crop = &pas202bcb_set_crop,
293 .set_pix_format = &pas202bcb_set_pix_format
299 int r0 = 0, r1 = 0, err = 0;
300 unsigned int pid = 0;
316 {0x44, 0x02}, {0x29, 0x17});
325 if (err || r0 < 0 || r1 < 0)
328 pid = (r0 << 4) | ((r1 & 0xf0) >> 4);