Lines Matching +full:0 +full:x2e0
26 #define TLV320_ADDRESS 0x34
27 #define VPX322_ADDR_ANALOGCONTROL1 0x02
28 #define VPX322_ADDR_BRIGHTNESS0 0x0127
29 #define VPX322_ADDR_BRIGHTNESS1 0x0131
30 #define VPX322_ADDR_CONTRAST0 0x0128
31 #define VPX322_ADDR_CONTRAST1 0x0132
32 #define VPX322_ADDR_HUE 0x00dc
33 #define VPX322_ADDR_SAT 0x0030
50 0x1e, 0x00,
51 0x00, 0x17,
52 0x02, 0x17,
53 0x04, 0xf9,
54 0x06, 0xf9,
55 0x08, 0x02,
56 0x0a, 0x00,
57 0x0c, 0x00,
58 0x0a, 0x00,
59 0x0c, 0x00,
60 0x0e, 0x02,
61 0x10, 0x00,
62 0x12, 0x01,
63 0x00, 0x00,
68 0xF2, 0x0f,
69 0xAA, 0x00,
70 0xF8, 0xff,
71 0x00, 0x00,
75 0x028, 0x067,
76 0x120, 0x016,
77 0x121, 0xcF2,
78 0x122, 0x0F2,
79 0x123, 0x00c,
80 0x124, 0x2d0,
81 0x125, 0x2e0,
82 0x126, 0x004,
83 0x128, 0x1E0,
84 0x12A, 0x016,
85 0x12B, 0x0F2,
86 0x12C, 0x0F2,
87 0x12D, 0x00c,
88 0x12E, 0x2d0,
89 0x12F, 0x2e0,
90 0x130, 0x004,
91 0x132, 0x1E0,
92 0x140, 0x060,
93 0x153, 0x00C,
94 0x154, 0x200,
95 0x150, 0x801,
96 0x000, 0x000
101 0x120, 0x017,
102 0x121, 0xd22,
103 0x122, 0x122,
104 0x12A, 0x017,
105 0x12B, 0x122,
106 0x12C, 0x122,
107 0x140, 0x060,
108 0x000, 0x000,
139 usb_rcvctrlpipe(usb->usbdev, 0), request, in go7007_usb_vendor_request()
144 usb_sndctrlpipe(usb->usbdev, 0), request, in go7007_usb_vendor_request()
170 if (mutex_lock_interruptible(&usb->i2c_lock) != 0) { in write_reg()
175 rc = go7007_usb_vendor_request(go, 0x55, dev_addr, in write_reg()
206 memset(buf, 0xcd, 6); in write_reg_fp()
209 if (mutex_lock_interruptible(&usb->i2c_lock) != 0) { in write_reg_fp()
214 rc = go7007_usb_vendor_request(go, 0x57, addr, val, buf, 16, 1); in write_reg_fp()
216 if (rc < 0) { in write_reg_fp()
221 if (buf[0] == 0) { in write_reg_fp()
243 if (addr == 0x12b) in write_reg_fp()
246 return 0; in write_reg_fp()
269 memset(buf, 0xcd, 6); in read_reg_fp()
271 if (mutex_lock_interruptible(&usb->i2c_lock) != 0) { in read_reg_fp()
276 rc = go7007_usb_vendor_request(go, 0x58, addr, 0, buf, 16, 1); in read_reg_fp()
278 if (rc < 0) { in read_reg_fp()
283 *val = (buf[0] << 8) | buf[1]; in read_reg_fp()
286 return 0; in read_reg_fp()
294 for (i = 0; !((regs[i] == 0x00) && (regs[i+1] == 0x00)); i += 2) { in write_regs()
295 if (write_reg(client, regs[i], regs[i+1]) < 0) { in write_regs()
300 return 0; in write_regs()
307 for (i = 0; !((regs[i] == 0x00) && (regs[i+1] == 0x00)); i += 2) { in write_regs_fp()
308 if (write_reg_fp(client, regs[i], regs[i+1]) < 0) { in write_regs_fp()
313 return 0; in write_regs_fp()
326 vidsys = (state->std == V4L2_STD_NTSC) ? 0x01 : 0x00; in s2250_s_video_routing()
327 if (input == 0) { in s2250_s_video_routing()
329 write_reg_fp(client, 0x20, 0x020 | vidsys); in s2250_s_video_routing()
330 write_reg_fp(client, 0x21, 0x662); in s2250_s_video_routing()
331 write_reg_fp(client, 0x140, 0x060); in s2250_s_video_routing()
334 write_reg_fp(client, 0x20, 0x040 | vidsys); in s2250_s_video_routing()
335 write_reg_fp(client, 0x21, 0x666); in s2250_s_video_routing()
336 write_reg_fp(client, 0x140, 0x060); in s2250_s_video_routing()
341 return 0; in s2250_s_video_routing()
350 vidsource = (state->input == 1) ? 0x040 : 0x020; in s2250_s_std()
354 write_reg_fp(client, 0x20, vidsource); in s2250_s_std()
357 write_reg_fp(client, 0x20, vidsource | 1); in s2250_s_std()
360 return 0; in s2250_s_std()
373 ctrl->val | (oldvalue & ~0xff)); in s2250_s_ctrl()
376 ctrl->val | (oldvalue & ~0xff)); in s2250_s_ctrl()
377 write_reg_fp(client, 0x140, 0x60); in s2250_s_ctrl()
382 ctrl->val | (oldvalue & ~0x3f)); in s2250_s_ctrl()
385 ctrl->val | (oldvalue & ~0x3f)); in s2250_s_ctrl()
386 write_reg_fp(client, 0x140, 0x60); in s2250_s_ctrl()
397 return 0; in s2250_s_ctrl()
412 return 0; in s2250_set_fmt()
415 write_reg_fp(client, 0x12b, state->reg12b_val | 0x400); in s2250_set_fmt()
416 write_reg_fp(client, 0x140, 0x060); in s2250_set_fmt()
418 write_reg_fp(client, 0x12b, state->reg12b_val & ~0x400); in s2250_set_fmt()
419 write_reg_fp(client, 0x140, 0x060); in s2250_set_fmt()
421 return 0; in s2250_set_fmt()
430 case 0: in s2250_s_audio_routing()
431 write_reg(state->audio, 0x08, 0x02); /* Line In */ in s2250_s_audio_routing()
434 write_reg(state->audio, 0x08, 0x04); /* Mic */ in s2250_s_audio_routing()
437 write_reg(state->audio, 0x08, 0x05); /* Mic Boost */ in s2250_s_audio_routing()
443 return 0; in s2250_s_audio_routing()
455 v4l2_info(sd, "Input: %s\n", state->input == 0 ? "Composite" : in s2250_log_status()
458 v4l2_info(sd, "Audio input: %s\n", state->audio_input == 0 ? "Line In" : in s2250_log_status()
522 v4l2_info(sd, "initializing %s at address 0x%x on %s\n", in s2250_probe()
527 V4L2_CID_BRIGHTNESS, -128, 127, 1, 0); in s2250_probe()
529 V4L2_CID_CONTRAST, 0, 0x3f, 1, 0x32); in s2250_probe()
531 V4L2_CID_SATURATION, 0, 4094, 1, 2070); in s2250_probe()
533 V4L2_CID_HUE, -512, 511, 1, 0); in s2250_probe()
544 state->hue = 0; in s2250_probe()
548 if (write_regs(audio, aud_regs) < 0) { in s2250_probe()
553 if (write_regs(client, vid_regs) < 0) { in s2250_probe()
557 if (write_regs_fp(client, vid_regs_fp) < 0) { in s2250_probe()
563 write_reg_fp(client, 0x20, 0x020 | 1); in s2250_probe()
564 write_reg_fp(client, 0x21, 0x662); in s2250_probe()
565 write_reg_fp(client, 0x140, 0x060); in s2250_probe()
568 state->audio_input = 0; in s2250_probe()
569 write_reg(client, 0x08, 0x02); /* Line In */ in s2250_probe()
571 if (mutex_lock_interruptible(&usb->i2c_lock) == 0) { in s2250_probe()
574 int rc = go7007_usb_vendor_request(go, 0x41, 0, 0, in s2250_probe()
577 if (rc > 0) { in s2250_probe()
580 data[0] = 0; in s2250_probe()
582 data[0] &= ~mask; in s2250_probe()
584 go7007_usb_vendor_request(go, 0x40, 0, in s2250_probe()
587 data, 16, 0); in s2250_probe()
595 return 0; in s2250_probe()
615 { "s2250", 0 },