Lines Matching +full:0 +full:x2e

33 module_param(debug, int, 0);
34 MODULE_PARM_DESC(debug, "Debug level (0-1)");
39 #define SAA7110_NR_REG 0x35
97 if (ret < 0) in saa7110_write_block()
116 #define FRESP_06H_COMPST 0x03 /*0x13*/
117 #define FRESP_06H_SVIDEO 0x83 /*0xC0*/
123 /* mode 0 */ in saa7110_selmux()
124 {FRESP_06H_COMPST, 0xD9, 0x17, 0x40, 0x03, in saa7110_selmux()
125 0x44, 0x75, 0x16}, in saa7110_selmux()
127 {FRESP_06H_COMPST, 0xD8, 0x17, 0x40, 0x03, in saa7110_selmux()
128 0x44, 0x75, 0x16}, in saa7110_selmux()
130 {FRESP_06H_COMPST, 0xBA, 0x07, 0x91, 0x03, in saa7110_selmux()
131 0x60, 0xB5, 0x05}, in saa7110_selmux()
133 {FRESP_06H_COMPST, 0xB8, 0x07, 0x91, 0x03, in saa7110_selmux()
134 0x60, 0xB5, 0x05}, in saa7110_selmux()
136 {FRESP_06H_COMPST, 0x7C, 0x07, 0xD2, 0x83, in saa7110_selmux()
137 0x60, 0xB5, 0x03}, in saa7110_selmux()
139 {FRESP_06H_COMPST, 0x78, 0x07, 0xD2, 0x83, in saa7110_selmux()
140 0x60, 0xB5, 0x03}, in saa7110_selmux()
142 {FRESP_06H_SVIDEO, 0x59, 0x17, 0x42, 0xA3, in saa7110_selmux()
143 0x44, 0x75, 0x12}, in saa7110_selmux()
145 {FRESP_06H_SVIDEO, 0x9A, 0x17, 0xB1, 0x13, in saa7110_selmux()
146 0x60, 0xB5, 0x14}, in saa7110_selmux()
148 {FRESP_06H_SVIDEO, 0x3C, 0x27, 0xC1, 0x23, in saa7110_selmux()
149 0x44, 0x75, 0x21} in saa7110_selmux()
154 saa7110_write(sd, 0x06, ptr[0]); /* Luminance control */ in saa7110_selmux()
155 saa7110_write(sd, 0x20, ptr[1]); /* Analog Control #1 */ in saa7110_selmux()
156 saa7110_write(sd, 0x21, ptr[2]); /* Analog Control #2 */ in saa7110_selmux()
157 saa7110_write(sd, 0x22, ptr[3]); /* Mixer Control #1 */ in saa7110_selmux()
158 saa7110_write(sd, 0x2C, ptr[4]); /* Mixer Control #2 */ in saa7110_selmux()
159 saa7110_write(sd, 0x30, ptr[5]); /* ADCs gain control */ in saa7110_selmux()
160 saa7110_write(sd, 0x31, ptr[6]); /* Mixer Control #3 */ in saa7110_selmux()
161 saa7110_write(sd, 0x21, ptr[7]); /* Analog Control #2 */ in saa7110_selmux()
164 return 0; in saa7110_selmux()
168 0, 0x4C, 0x3C, 0x0D, 0xEF, 0xBD, 0xF2, 0x03, 0x00,
169 /* 0x08 */ 0xF8, 0xF8, 0x60, 0x60, 0x00, 0x86, 0x18, 0x90,
170 /* 0x10 */ 0x00, 0x59, 0x40, 0x46, 0x42, 0x1A, 0xFF, 0xDA,
171 /* 0x18 */ 0xF2, 0x8B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
172 /* 0x20 */ 0xD9, 0x16, 0x40, 0x41, 0x80, 0x41, 0x80, 0x4F,
173 /* 0x28 */ 0xFE, 0x01, 0xCF, 0x0F, 0x03, 0x01, 0x03, 0x0C,
174 /* 0x30 */ 0x44, 0x71, 0x02, 0x8C, 0x02
190 if (status & 0x40) { in determine_norm()
191 v4l2_dbg(1, debug, sd, "status=0x%02x (no signal)\n", status); in determine_norm()
194 if ((status & 3) == 0) { in determine_norm()
195 saa7110_write(sd, 0x06, 0x83); in determine_norm()
196 if (status & 0x20) { in determine_norm()
197 v4l2_dbg(1, debug, sd, "status=0x%02x (NTSC/no color)\n", status); in determine_norm()
198 /*saa7110_write(sd,0x2E,0x81);*/ in determine_norm()
201 v4l2_dbg(1, debug, sd, "status=0x%02x (PAL/no color)\n", status); in determine_norm()
202 /*saa7110_write(sd,0x2E,0x9A);*/ in determine_norm()
205 /*saa7110_write(sd,0x06,0x03);*/ in determine_norm()
206 if (status & 0x20) { /* 60Hz */ in determine_norm()
207 v4l2_dbg(1, debug, sd, "status=0x%02x (NTSC)\n", status); in determine_norm()
208 saa7110_write(sd, 0x0D, 0x86); in determine_norm()
209 saa7110_write(sd, 0x0F, 0x50); in determine_norm()
210 saa7110_write(sd, 0x11, 0x2C); in determine_norm()
211 /*saa7110_write(sd,0x2E,0x81);*/ in determine_norm()
216 saa7110_write(sd, 0x0D, 0x86); in determine_norm()
217 saa7110_write(sd, 0x0F, 0x10); in determine_norm()
218 saa7110_write(sd, 0x11, 0x59); in determine_norm()
219 /*saa7110_write(sd,0x2E,0x9A);*/ in determine_norm()
226 if ((status & 0x03) == 0x01) { in determine_norm()
227 v4l2_dbg(1, debug, sd, "status=0x%02x (SECAM)\n", status); in determine_norm()
228 saa7110_write(sd, 0x0D, 0x87); in determine_norm()
231 v4l2_dbg(1, debug, sd, "status=0x%02x (PAL)\n", status); in determine_norm()
241 v4l2_dbg(1, debug, sd, "status=0x%02x norm=%llx\n", in saa7110_g_input_status()
243 if (!(status & 0x40)) in saa7110_g_input_status()
244 res = 0; in saa7110_g_input_status()
245 if (!(status & 0x03)) in saa7110_g_input_status()
249 return 0; in saa7110_g_input_status()
255 return 0; in saa7110_querystd()
264 /*saa7110_write(sd, 0x06, 0x03);*/ in saa7110_s_std()
266 saa7110_write(sd, 0x0D, 0x86); in saa7110_s_std()
267 saa7110_write(sd, 0x0F, 0x50); in saa7110_s_std()
268 saa7110_write(sd, 0x11, 0x2C); in saa7110_s_std()
269 /*saa7110_write(sd, 0x2E, 0x81);*/ in saa7110_s_std()
272 saa7110_write(sd, 0x0D, 0x86); in saa7110_s_std()
273 saa7110_write(sd, 0x0F, 0x10); in saa7110_s_std()
274 saa7110_write(sd, 0x11, 0x59); in saa7110_s_std()
275 /*saa7110_write(sd, 0x2E, 0x9A);*/ in saa7110_s_std()
278 saa7110_write(sd, 0x0D, 0x87); in saa7110_s_std()
279 saa7110_write(sd, 0x0F, 0x10); in saa7110_s_std()
280 saa7110_write(sd, 0x11, 0x59); in saa7110_s_std()
281 /*saa7110_write(sd, 0x2E, 0x9A);*/ in saa7110_s_std()
287 return 0; in saa7110_s_std()
303 return 0; in saa7110_s_routing()
312 saa7110_write(sd, 0x0E, enable ? 0x18 : 0x80); in saa7110_s_stream()
315 return 0; in saa7110_s_stream()
324 saa7110_write(sd, 0x19, ctrl->val); in saa7110_s_ctrl()
327 saa7110_write(sd, 0x13, ctrl->val); in saa7110_s_ctrl()
330 saa7110_write(sd, 0x12, ctrl->val); in saa7110_s_ctrl()
333 saa7110_write(sd, 0x07, ctrl->val); in saa7110_s_ctrl()
338 return 0; in saa7110_s_ctrl()
372 v4l_info(client, "chip found @ 0x%x (%s)\n", in saa7110_probe()
381 decoder->input = 0; in saa7110_probe()
385 V4L2_CID_BRIGHTNESS, 0, 255, 1, 128); in saa7110_probe()
387 V4L2_CID_CONTRAST, 0, 127, 1, 64); in saa7110_probe()
389 V4L2_CID_SATURATION, 0, 127, 1, 64); in saa7110_probe()
391 V4L2_CID_HUE, -128, 127, 1, 0); in saa7110_probe()
404 if (rv < 0) { in saa7110_probe()
408 saa7110_write(sd, 0x21, 0x10); in saa7110_probe()
409 saa7110_write(sd, 0x0e, 0x18); in saa7110_probe()
410 saa7110_write(sd, 0x0D, 0x04); in saa7110_probe()
412 saa7110_write(sd, 0x0D, 0x06); in saa7110_probe()
415 v4l2_dbg(1, debug, sd, "version %x, status=0x%02x\n", in saa7110_probe()
417 saa7110_write(sd, 0x0D, 0x86); in saa7110_probe()
418 saa7110_write(sd, 0x0F, 0x10); in saa7110_probe()
419 saa7110_write(sd, 0x11, 0x59); in saa7110_probe()
420 /*saa7110_write(sd, 0x2E, 0x9A);*/ in saa7110_probe()
423 /*saa7110_selmux(sd,0);*/ in saa7110_probe()
425 /* setup and implicit mode 0 select has been performed */ in saa7110_probe()
427 return 0; in saa7110_probe()