Lines Matching +full:0 +full:x596
36 MODULE_PARM_DESC(debug, "Debug level (0-1)");
76 #define TUNER_AUDIO_MONO 0 /* LL */
90 int fw_addr = reg == 0x454 || (reg >= 0x464 && reg <= 0x478) || reg == 0x480 || reg == 0x488; in saa717x_write()
94 msg.flags = 0; in saa717x_write()
96 mm1[0] = (reg >> 8) & 0xff; in saa717x_write()
97 mm1[1] = reg & 0xff; in saa717x_write()
100 mm1[4] = (value >> 16) & 0xff; in saa717x_write()
101 mm1[3] = (value >> 8) & 0xff; in saa717x_write()
102 mm1[2] = value & 0xff; in saa717x_write()
104 mm1[2] = value & 0xff; in saa717x_write()
108 v4l2_dbg(2, debug, sd, "wrote: reg 0x%03x=%08x\n", reg, value); in saa717x_write()
114 while (data[0] || data[1]) { in saa717x_write_regs()
115 saa717x_write(sd, data[0], data[1]); in saa717x_write_regs()
124 int fw_addr = (reg >= 0x404 && reg <= 0x4b8) || reg == 0x528; in saa717x_read()
126 unsigned char mm2[4] = { 0, 0, 0, 0 }; in saa717x_read()
130 msgs[0].flags = 0; in saa717x_read()
132 msgs[0].addr = msgs[1].addr = client->addr; in saa717x_read()
133 mm1[0] = (reg >> 8) & 0xff; in saa717x_read()
134 mm1[1] = reg & 0xff; in saa717x_read()
135 msgs[0].len = 2; in saa717x_read()
136 msgs[0].buf = mm1; in saa717x_read()
142 value = (mm2[2] << 16) | (mm2[1] << 8) | mm2[0]; in saa717x_read()
144 value = mm2[0]; in saa717x_read()
146 v4l2_dbg(2, debug, sd, "read: reg 0x%03x=0x%08x\n", reg, value); in saa717x_read()
155 0x101, 0x008, /* Increment delay */
157 0x103, 0x000, /* Analog input control 2 */
158 0x104, 0x090, /* Analog input control 3 */
159 0x105, 0x090, /* Analog input control 4 */
160 0x106, 0x0eb, /* Horizontal sync start */
161 0x107, 0x0e0, /* Horizontal sync stop */
162 0x109, 0x055, /* Luminance control */
164 0x10f, 0x02a, /* Chroma gain control */
165 0x110, 0x000, /* Chroma control 2 */
167 0x114, 0x045, /* analog/ADC */
169 0x118, 0x040, /* RAW data gain */
170 0x119, 0x080, /* RAW data offset */
172 0x044, 0x000, /* VBI horizontal input window start (L) TASK A */
173 0x045, 0x000, /* VBI horizontal input window start (H) TASK A */
174 0x046, 0x0cf, /* VBI horizontal input window stop (L) TASK A */
175 0x047, 0x002, /* VBI horizontal input window stop (H) TASK A */
177 0x049, 0x000, /* VBI vertical input window start (H) TASK A */
179 0x04c, 0x0d0, /* VBI horizontal output length (L) TASK A */
180 0x04d, 0x002, /* VBI horizontal output length (H) TASK A */
182 0x064, 0x080, /* Lumina brightness TASK A */
183 0x065, 0x040, /* Luminance contrast TASK A */
184 0x066, 0x040, /* Chroma saturation TASK A */
186 0x068, 0x000, /* VBI horizontal scaling increment (L) TASK A */
187 0x069, 0x004, /* VBI horizontal scaling increment (H) TASK A */
188 0x06a, 0x000, /* VBI phase offset TASK A */
190 0x06e, 0x000, /* Horizontal phase offset Luma TASK A */
191 0x06f, 0x000, /* Horizontal phase offset Chroma TASK A */
193 0x072, 0x000, /* Vertical filter mode TASK A */
195 0x084, 0x000, /* VBI horizontal input window start (L) TAKS B */
196 0x085, 0x000, /* VBI horizontal input window start (H) TAKS B */
197 0x086, 0x0cf, /* VBI horizontal input window stop (L) TAKS B */
198 0x087, 0x002, /* VBI horizontal input window stop (H) TAKS B */
200 0x089, 0x000, /* VBI vertical input window start (H) TAKS B */
202 0x08c, 0x0d0, /* VBI horizontal output length (L) TASK B */
203 0x08d, 0x002, /* VBI horizontal output length (H) TASK B */
205 0x0a4, 0x080, /* Lumina brightness TASK B */
206 0x0a5, 0x040, /* Luminance contrast TASK B */
207 0x0a6, 0x040, /* Chroma saturation TASK B */
208 /* 0A7H reserved */
209 0x0a8, 0x000, /* VBI horizontal scaling increment (L) TASK B */
210 0x0a9, 0x004, /* VBI horizontal scaling increment (H) TASK B */
211 0x0aa, 0x000, /* VBI phase offset TASK B */
213 0x0ae, 0x000, /* Horizontal phase offset Luma TASK B */
214 0x0af, 0x000, /*Horizontal phase offset Chroma TASK B */
216 0x0b2, 0x000, /* Vertical filter mode TASK B */
218 0x00c, 0x000, /* Start point GREEN path */
219 0x00d, 0x000, /* Start point BLUE path */
220 0x00e, 0x000, /* Start point RED path */
222 0x010, 0x010, /* GREEN path gamma curve --- */
223 0x011, 0x020,
224 0x012, 0x030,
225 0x013, 0x040,
226 0x014, 0x050,
227 0x015, 0x060,
228 0x016, 0x070,
229 0x017, 0x080,
230 0x018, 0x090,
231 0x019, 0x0a0,
232 0x01a, 0x0b0,
233 0x01b, 0x0c0,
234 0x01c, 0x0d0,
235 0x01d, 0x0e0,
236 0x01e, 0x0f0,
237 0x01f, 0x0ff, /* --- GREEN path gamma curve */
239 0x020, 0x010, /* BLUE path gamma curve --- */
240 0x021, 0x020,
241 0x022, 0x030,
242 0x023, 0x040,
243 0x024, 0x050,
244 0x025, 0x060,
245 0x026, 0x070,
246 0x027, 0x080,
247 0x028, 0x090,
248 0x029, 0x0a0,
249 0x02a, 0x0b0,
250 0x02b, 0x0c0,
251 0x02c, 0x0d0,
252 0x02d, 0x0e0,
253 0x02e, 0x0f0,
254 0x02f, 0x0ff, /* --- BLUE path gamma curve */
256 0x030, 0x010, /* RED path gamma curve --- */
257 0x031, 0x020,
258 0x032, 0x030,
259 0x033, 0x040,
260 0x034, 0x050,
261 0x035, 0x060,
262 0x036, 0x070,
263 0x037, 0x080,
264 0x038, 0x090,
265 0x039, 0x0a0,
266 0x03a, 0x0b0,
267 0x03b, 0x0c0,
268 0x03c, 0x0d0,
269 0x03d, 0x0e0,
270 0x03e, 0x0f0,
271 0x03f, 0x0ff, /* --- RED path gamma curve */
273 0x109, 0x085, /* Luminance control */
276 0x584, 0x000, /* AGC gain control */
277 0x585, 0x000, /* Program count */
278 0x586, 0x003, /* Status reset */
279 0x588, 0x0ff, /* Number of audio samples (L) */
280 0x589, 0x00f, /* Number of audio samples (M) */
281 0x58a, 0x000, /* Number of audio samples (H) */
282 0x58b, 0x000, /* Audio select */
283 0x58c, 0x010, /* Audio channel assign1 */
284 0x58d, 0x032, /* Audio channel assign2 */
285 0x58e, 0x054, /* Audio channel assign3 */
286 0x58f, 0x023, /* Audio format */
287 0x590, 0x000, /* SIF control */
289 0x595, 0x000, /* ?? */
290 0x596, 0x000, /* ?? */
291 0x597, 0x000, /* ?? */
293 0x464, 0x00, /* Digital input crossbar1 */
295 0x46c, 0xbbbb10, /* Digital output selection1-3 */
296 0x470, 0x101010, /* Digital output selection4-6 */
298 0x478, 0x00, /* Sound feature control */
300 0x474, 0x18, /* Softmute control */
302 0x454, 0x0425b9, /* Sound Easy programming(reset) */
303 0x454, 0x042539, /* Sound Easy programming(reset) */
307 0x042, 0x003, /* Data path configuration for VBI (TASK A) */
309 0x082, 0x003, /* Data path configuration for VBI (TASK B) */
311 0x108, 0x0f8, /* Sync control */
312 0x2a9, 0x0fd, /* ??? */
313 0x102, 0x089, /* select video input "mode 9" */
314 0x111, 0x000, /* Mode/delay control */
316 0x10e, 0x00a, /* Chroma control 1 */
318 0x594, 0x002, /* SIF, analog I/O select */
320 0x454, 0x0425b9, /* Sound */
321 0x454, 0x042539,
323 0x111, 0x000,
324 0x10e, 0x00a,
325 0x464, 0x000,
326 0x300, 0x000,
327 0x301, 0x006,
328 0x302, 0x000,
329 0x303, 0x006,
330 0x308, 0x040,
331 0x309, 0x000,
332 0x30a, 0x000,
333 0x30b, 0x000,
334 0x000, 0x002,
335 0x001, 0x000,
336 0x002, 0x000,
337 0x003, 0x000,
338 0x004, 0x033,
339 0x040, 0x01d,
340 0x041, 0x001,
341 0x042, 0x004,
342 0x043, 0x000,
343 0x080, 0x01e,
344 0x081, 0x001,
345 0x082, 0x004,
346 0x083, 0x000,
347 0x190, 0x018,
348 0x115, 0x000,
349 0x116, 0x012,
350 0x117, 0x018,
351 0x04a, 0x011,
352 0x08a, 0x011,
353 0x04b, 0x000,
354 0x08b, 0x000,
355 0x048, 0x000,
356 0x088, 0x000,
357 0x04e, 0x012,
358 0x08e, 0x012,
359 0x058, 0x012,
360 0x098, 0x012,
361 0x059, 0x000,
362 0x099, 0x000,
363 0x05a, 0x003,
364 0x09a, 0x003,
365 0x05b, 0x001,
366 0x09b, 0x001,
367 0x054, 0x008,
368 0x094, 0x008,
369 0x055, 0x000,
370 0x095, 0x000,
371 0x056, 0x0c7,
372 0x096, 0x0c7,
373 0x057, 0x002,
374 0x097, 0x002,
375 0x0ff, 0x0ff,
376 0x060, 0x001,
377 0x0a0, 0x001,
378 0x061, 0x000,
379 0x0a1, 0x000,
380 0x062, 0x000,
381 0x0a2, 0x000,
382 0x063, 0x000,
383 0x0a3, 0x000,
384 0x070, 0x000,
385 0x0b0, 0x000,
386 0x071, 0x004,
387 0x0b1, 0x004,
388 0x06c, 0x0e9,
389 0x0ac, 0x0e9,
390 0x06d, 0x003,
391 0x0ad, 0x003,
392 0x05c, 0x0d0,
393 0x09c, 0x0d0,
394 0x05d, 0x002,
395 0x09d, 0x002,
396 0x05e, 0x0f2,
397 0x09e, 0x0f2,
398 0x05f, 0x000,
399 0x09f, 0x000,
400 0x074, 0x000,
401 0x0b4, 0x000,
402 0x075, 0x000,
403 0x0b5, 0x000,
404 0x076, 0x000,
405 0x0b6, 0x000,
406 0x077, 0x000,
407 0x0b7, 0x000,
408 0x195, 0x008,
409 0x0ff, 0x0ff,
410 0x108, 0x0f8,
411 0x111, 0x000,
412 0x10e, 0x00a,
413 0x2a9, 0x0fd,
414 0x464, 0x001,
415 0x454, 0x042135,
416 0x598, 0x0e7,
417 0x599, 0x07d,
418 0x59a, 0x018,
419 0x59c, 0x066,
420 0x59d, 0x090,
421 0x59e, 0x001,
422 0x584, 0x000,
423 0x585, 0x000,
424 0x586, 0x003,
425 0x588, 0x0ff,
426 0x589, 0x00f,
427 0x58a, 0x000,
428 0x58b, 0x000,
429 0x58c, 0x010,
430 0x58d, 0x032,
431 0x58e, 0x054,
432 0x58f, 0x023,
433 0x590, 0x000,
434 0x595, 0x000,
435 0x596, 0x000,
436 0x597, 0x000,
437 0x464, 0x000,
438 0x46c, 0xbbbb10,
439 0x470, 0x101010,
442 0x478, 0x000,
443 0x474, 0x018,
444 0x454, 0x042135,
445 0x598, 0x0e7,
446 0x599, 0x07d,
447 0x59a, 0x018,
448 0x59c, 0x066,
449 0x59d, 0x090,
450 0x59e, 0x001,
451 0x584, 0x000,
452 0x585, 0x000,
453 0x586, 0x003,
454 0x588, 0x0ff,
455 0x589, 0x00f,
456 0x58a, 0x000,
457 0x58b, 0x000,
458 0x58c, 0x010,
459 0x58d, 0x032,
460 0x58e, 0x054,
461 0x58f, 0x023,
462 0x590, 0x000,
463 0x595, 0x000,
464 0x596, 0x000,
465 0x597, 0x000,
466 0x464, 0x000,
467 0x46c, 0xbbbb10,
468 0x470, 0x101010,
470 0x478, 0x000,
471 0x474, 0x018,
472 0x454, 0x042135,
473 0x598, 0x0e7,
474 0x599, 0x07d,
475 0x59a, 0x018,
476 0x59c, 0x066,
477 0x59d, 0x090,
478 0x59e, 0x001,
479 0x584, 0x000,
480 0x585, 0x000,
481 0x586, 0x003,
482 0x588, 0x0ff,
483 0x589, 0x00f,
484 0x58a, 0x000,
485 0x58b, 0x000,
486 0x58c, 0x010,
487 0x58d, 0x032,
488 0x58e, 0x054,
489 0x58f, 0x023,
490 0x590, 0x000,
491 0x595, 0x000,
492 0x596, 0x000,
493 0x597, 0x000,
494 0x464, 0x000,
495 0x46c, 0xbbbb10,
496 0x470, 0x101010,
497 0x478, 0x000,
498 0x474, 0x018,
499 0x454, 0x042135,
500 0x193, 0x000,
501 0x300, 0x000,
502 0x301, 0x006,
503 0x302, 0x000,
504 0x303, 0x006,
505 0x308, 0x040,
506 0x309, 0x000,
507 0x30a, 0x000,
508 0x30b, 0x000,
509 0x000, 0x002,
510 0x001, 0x000,
511 0x002, 0x000,
512 0x003, 0x000,
513 0x004, 0x033,
514 0x040, 0x01d,
515 0x041, 0x001,
516 0x042, 0x004,
517 0x043, 0x000,
518 0x080, 0x01e,
519 0x081, 0x001,
520 0x082, 0x004,
521 0x083, 0x000,
522 0x190, 0x018,
523 0x115, 0x000,
524 0x116, 0x012,
525 0x117, 0x018,
526 0x04a, 0x011,
527 0x08a, 0x011,
528 0x04b, 0x000,
529 0x08b, 0x000,
530 0x048, 0x000,
531 0x088, 0x000,
532 0x04e, 0x012,
533 0x08e, 0x012,
534 0x058, 0x012,
535 0x098, 0x012,
536 0x059, 0x000,
537 0x099, 0x000,
538 0x05a, 0x003,
539 0x09a, 0x003,
540 0x05b, 0x001,
541 0x09b, 0x001,
542 0x054, 0x008,
543 0x094, 0x008,
544 0x055, 0x000,
545 0x095, 0x000,
546 0x056, 0x0c7,
547 0x096, 0x0c7,
548 0x057, 0x002,
549 0x097, 0x002,
550 0x060, 0x001,
551 0x0a0, 0x001,
552 0x061, 0x000,
553 0x0a1, 0x000,
554 0x062, 0x000,
555 0x0a2, 0x000,
556 0x063, 0x000,
557 0x0a3, 0x000,
558 0x070, 0x000,
559 0x0b0, 0x000,
560 0x071, 0x004,
561 0x0b1, 0x004,
562 0x06c, 0x0e9,
563 0x0ac, 0x0e9,
564 0x06d, 0x003,
565 0x0ad, 0x003,
566 0x05c, 0x0d0,
567 0x09c, 0x0d0,
568 0x05d, 0x002,
569 0x09d, 0x002,
570 0x05e, 0x0f2,
571 0x09e, 0x0f2,
572 0x05f, 0x000,
573 0x09f, 0x000,
574 0x074, 0x000,
575 0x0b4, 0x000,
576 0x075, 0x000,
577 0x0b5, 0x000,
578 0x076, 0x000,
579 0x0b6, 0x000,
580 0x077, 0x000,
581 0x0b7, 0x000,
582 0x195, 0x008,
583 0x598, 0x0e7,
584 0x599, 0x07d,
585 0x59a, 0x018,
586 0x59c, 0x066,
587 0x59d, 0x090,
588 0x59e, 0x001,
589 0x584, 0x000,
590 0x585, 0x000,
591 0x586, 0x003,
592 0x588, 0x0ff,
593 0x589, 0x00f,
594 0x58a, 0x000,
595 0x58b, 0x000,
596 0x58c, 0x010,
597 0x58d, 0x032,
598 0x58e, 0x054,
599 0x58f, 0x023,
600 0x590, 0x000,
601 0x595, 0x000,
602 0x596, 0x000,
603 0x597, 0x000,
604 0x464, 0x000,
605 0x46c, 0xbbbb10,
606 0x470, 0x101010,
607 0x478, 0x000,
608 0x474, 0x018,
609 0x454, 0x042135,
610 0x193, 0x0a6,
611 0x108, 0x0f8,
612 0x042, 0x003,
613 0x082, 0x003,
614 0x454, 0x0425b9,
615 0x454, 0x042539,
616 0x193, 0x000,
617 0x193, 0x0a6,
618 0x464, 0x000,
620 0, 0
625 0x108, 0x0f8, /* Sync control */
626 0x111, 0x000, /* Mode/delay control */
627 0x10e, 0x00a, /* Chroma control 1 */
628 0, 0
633 0x108, 0x0e8, /* Sync control */
634 0x111, 0x000, /* Mode/delay control */
635 0x10e, 0x04a, /* Chroma control 1 */
636 0, 0
641 0x108, 0x0e8, /* Sync control */
642 0x111, 0x000, /* Mode/delay control */
643 0x10e, 0x04a, /* Chroma control 1 */
644 0, 0
651 Register 0x46c
652 7-4: DMA2, 3-0: DMA1 ch. DMA4, DMA3 DMA2, DMA1
653 0: MAIN left, 1: MAIN right
659 0xbbbb00,
662 Register 0x470
663 7-4:DAC right ch. 3-0:DAC left ch.
665 0x00,
668 0xbbbb10, 0x101010,
671 0xbbbb00, 0x00,
674 0xbbbb11, 0x111111,
685 static char *stdres[0x20] = { in get_inf_dev_status()
686 [0x00] = "no standard detected", in get_inf_dev_status()
687 [0x01] = "B/G (in progress)", in get_inf_dev_status()
688 [0x02] = "D/K (in progress)", in get_inf_dev_status()
689 [0x03] = "M (in progress)", in get_inf_dev_status()
691 [0x04] = "B/G A2", in get_inf_dev_status()
692 [0x05] = "B/G NICAM", in get_inf_dev_status()
693 [0x06] = "D/K A2 (1)", in get_inf_dev_status()
694 [0x07] = "D/K A2 (2)", in get_inf_dev_status()
695 [0x08] = "D/K A2 (3)", in get_inf_dev_status()
696 [0x09] = "D/K NICAM", in get_inf_dev_status()
697 [0x0a] = "L NICAM", in get_inf_dev_status()
698 [0x0b] = "I NICAM", in get_inf_dev_status()
700 [0x0c] = "M Korea", in get_inf_dev_status()
701 [0x0d] = "M BTSC ", in get_inf_dev_status()
702 [0x0e] = "M EIAJ", in get_inf_dev_status()
704 [0x0f] = "FM radio / IF 10.7 / 50 deemp", in get_inf_dev_status()
705 [0x10] = "FM radio / IF 10.7 / 75 deemp", in get_inf_dev_status()
706 [0x11] = "FM radio / IF sel / 50 deemp", in get_inf_dev_status()
707 [0x12] = "FM radio / IF sel / 75 deemp", in get_inf_dev_status()
709 [0x13 ... 0x1e] = "unknown", in get_inf_dev_status()
710 [0x1f] = "??? [in progress]", in get_inf_dev_status()
714 *dual_flag = *stereo_flag = 0; in get_inf_dev_status()
716 /* (demdec status: 0x528) */ in get_inf_dev_status()
719 reg_data3 = saa717x_read(sd, 0x0528); in get_inf_dev_status()
721 v4l2_dbg(1, debug, sd, "tvaudio thread status: 0x%x [%s%s%s]\n", in get_inf_dev_status()
722 reg_data3, stdres[reg_data3 & 0x1f], in get_inf_dev_status()
723 (reg_data3 & 0x000020) ? ",stereo" : "", in get_inf_dev_status()
724 (reg_data3 & 0x000040) ? ",dual" : ""); in get_inf_dev_status()
727 (reg_data3 & 0x000080) ? " A2/EIAJ pilot tone " : "", in get_inf_dev_status()
728 (reg_data3 & 0x000100) ? " A2/EIAJ dual " : "", in get_inf_dev_status()
729 (reg_data3 & 0x000200) ? " A2/EIAJ stereo " : "", in get_inf_dev_status()
730 (reg_data3 & 0x000400) ? " A2/EIAJ noise mute " : "", in get_inf_dev_status()
732 (reg_data3 & 0x000800) ? " BTSC/FM radio pilot " : "", in get_inf_dev_status()
733 (reg_data3 & 0x001000) ? " SAP carrier " : "", in get_inf_dev_status()
734 (reg_data3 & 0x002000) ? " BTSC stereo noise mute " : "", in get_inf_dev_status()
735 (reg_data3 & 0x004000) ? " SAP noise mute " : "", in get_inf_dev_status()
736 (reg_data3 & 0x008000) ? " VDSP " : "", in get_inf_dev_status()
738 (reg_data3 & 0x010000) ? " NICST " : "", in get_inf_dev_status()
739 (reg_data3 & 0x020000) ? " NICDU " : "", in get_inf_dev_status()
740 (reg_data3 & 0x040000) ? " NICAM muted " : "", in get_inf_dev_status()
741 (reg_data3 & 0x080000) ? " NICAM reserve sound " : "", in get_inf_dev_status()
743 (reg_data3 & 0x100000) ? " init done " : ""); in get_inf_dev_status()
745 if (reg_data3 & 0x000220) { in get_inf_dev_status()
750 if (reg_data3 & 0x000140) { in get_inf_dev_status()
762 saa717x_write(sd, 0x46c, reg_set_audio_template[audio_mode][0]); in set_audio_mode()
763 saa717x_write(sd, 0x470, reg_set_audio_template[audio_mode][1]); in set_audio_mode()
770 u8 mute = 0xac; /* -84 dB */ in set_audio_regs()
775 saa717x_write(sd, 0x0594, decoder->audio_input); in set_audio_regs()
779 /* normalize ( 65535 to 0 -> 24 to -40 (not -84)) */ in set_audio_regs()
786 /* main volume L[7-0],R[7-0],0x00 24=24dB,-83dB, -84(mute) */ in set_audio_regs()
787 /* def:0dB->6dB(MPG600GR) */ in set_audio_regs()
796 saa717x_write(sd, 0x480, val); in set_audio_regs()
799 val = decoder->audio_main_bass & 0x1f; in set_audio_regs()
800 val |= (decoder->audio_main_treble & 0x1f) << 5; in set_audio_regs()
801 saa717x_write(sd, 0x488, val); in set_audio_regs()
802 return 0; in set_audio_regs()
817 { 1, 0, 0, 0, 0 }, in set_h_prescale()
824 { 8, 15, 0, 4, 3 }, in set_h_prescale()
825 { 9, 15, 0, 4, 3 }, in set_h_prescale()
831 task_shift = task * 0x40; in set_h_prescale()
832 for (i = 0; i < count; i++) in set_h_prescale()
839 saa717x_write(sd, 0x60 + task_shift, vals[i].xpsc); in set_h_prescale()
841 saa717x_write(sd, 0x61 + task_shift, vals[i].xacl); in set_h_prescale()
843 saa717x_write(sd, 0x62 + task_shift, in set_h_prescale()
846 saa717x_write(sd, 0x63 + task_shift, in set_h_prescale()
855 task_shift = task * 0x40; in set_v_scale()
857 saa717x_write(sd, 0x70 + task_shift, yscale & 0xff); in set_v_scale()
859 saa717x_write(sd, 0x71 + task_shift, yscale >> 8); in set_v_scale()
869 saa717x_write(sd, 0x10a, ctrl->val); in saa717x_s_ctrl()
870 return 0; in saa717x_s_ctrl()
873 saa717x_write(sd, 0x10b, ctrl->val); in saa717x_s_ctrl()
874 return 0; in saa717x_s_ctrl()
877 saa717x_write(sd, 0x10c, ctrl->val); in saa717x_s_ctrl()
878 return 0; in saa717x_s_ctrl()
881 saa717x_write(sd, 0x10d, ctrl->val); in saa717x_s_ctrl()
882 return 0; in saa717x_s_ctrl()
905 return 0; in saa717x_s_ctrl()
908 return 0; in saa717x_s_ctrl()
915 int is_tuner = input & 0x80; /* tuner input flag */ in saa717x_s_video_routing()
917 input &= 0x7f; in saa717x_s_video_routing()
920 /* inputs from 0-9 are available*/ in saa717x_s_video_routing()
934 saa717x_write(sd, 0x102, in saa717x_s_video_routing()
935 (saa717x_read(sd, 0x102) & 0xf0) | in saa717x_s_video_routing()
939 saa717x_write(sd, 0x109, in saa717x_s_video_routing()
940 (saa717x_read(sd, 0x109) & 0x7f) | in saa717x_s_video_routing()
941 (input_line < 6 ? 0x0 : 0x80)); in saa717x_s_video_routing()
961 return 0; in saa717x_s_video_routing()
969 return 0; in saa717x_g_register()
974 u16 addr = reg->reg & 0xffff; in saa717x_s_register()
975 u8 val = reg->val & 0xff; in saa717x_s_register()
978 return 0; in saa717x_s_register()
1004 return 0; in saa717x_set_fmt()
1009 if (prescale == 0) in saa717x_set_fmt()
1016 set_h_prescale(sd, 0, prescale); in saa717x_set_fmt()
1021 saa717x_write(sd, 0x6C, (u8)(h_scale & 0xFF)); in saa717x_set_fmt()
1022 saa717x_write(sd, 0x6D, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt()
1024 saa717x_write(sd, 0xAC, (u8)(h_scale & 0xFF)); in saa717x_set_fmt()
1025 saa717x_write(sd, 0xAD, (u8)((h_scale >> 8) & 0xFF)); in saa717x_set_fmt()
1028 set_v_scale(sd, 0, v_scale); in saa717x_set_fmt()
1034 saa717x_write(sd, 0x5C, (u8)(fmt->width & 0xFF)); in saa717x_set_fmt()
1035 saa717x_write(sd, 0x5D, (u8)((fmt->width >> 8) & 0xFF)); in saa717x_set_fmt()
1037 saa717x_write(sd, 0x9C, (u8)(fmt->width & 0xFF)); in saa717x_set_fmt()
1038 saa717x_write(sd, 0x9D, (u8)((fmt->width >> 8) & 0xFF)); in saa717x_set_fmt()
1042 saa717x_write(sd, 0x5E, (u8)(fmt->height & 0xFF)); in saa717x_set_fmt()
1043 saa717x_write(sd, 0x5F, (u8)((fmt->height >> 8) & 0xFF)); in saa717x_set_fmt()
1045 saa717x_write(sd, 0x9E, (u8)(fmt->height & 0xFF)); in saa717x_set_fmt()
1046 saa717x_write(sd, 0x9F, (u8)((fmt->height >> 8) & 0xFF)); in saa717x_set_fmt()
1047 return 0; in saa717x_set_fmt()
1055 return 0; in saa717x_s_radio()
1065 decoder->radio = 0; in saa717x_s_std()
1067 return 0; in saa717x_s_std()
1081 return 0; in saa717x_s_audio_routing()
1093 saa717x_write(sd, 0x193, enable ? 0xa6 : 0x26); in saa717x_s_stream()
1094 return 0; in saa717x_s_stream()
1129 return 0; in saa717x_s_tuner()
1138 return 0; in saa717x_g_tuner()
1145 if ((dual_f == 0) && (stereo_f == 0)) { in saa717x_g_tuner()
1172 return 0; in saa717x_g_tuner()
1180 return 0; in saa717x_log_status()
1236 u8 id = 0; in saa717x_probe()
1250 if (saa717x_write(sd, 0x5a4, 0xfe) && in saa717x_probe()
1251 saa717x_write(sd, 0x5a5, 0x0f) && in saa717x_probe()
1252 saa717x_write(sd, 0x5a6, 0x00) && in saa717x_probe()
1253 saa717x_write(sd, 0x5a7, 0x01)) in saa717x_probe()
1254 id = saa717x_read(sd, 0x5a0); in saa717x_probe()
1255 if (id != 0xc2 && id != 0x32 && id != 0xf2 && id != 0x6c) { in saa717x_probe()
1259 if (id == 0xc2) in saa717x_probe()
1261 else if (id == 0x32) in saa717x_probe()
1263 else if (id == 0x6c) in saa717x_probe()
1267 v4l2_info(sd, "%s found @ 0x%x (%s)\n", p, in saa717x_probe()
1274 V4L2_CID_BRIGHTNESS, 0, 255, 1, 128); in saa717x_probe()
1276 V4L2_CID_CONTRAST, 0, 255, 1, 68); in saa717x_probe()
1278 V4L2_CID_SATURATION, 0, 255, 1, 64); in saa717x_probe()
1280 V4L2_CID_HUE, -128, 127, 1, 0); in saa717x_probe()
1282 V4L2_CID_AUDIO_VOLUME, 0, 65535, 65535 / 100, 42000); in saa717x_probe()
1284 V4L2_CID_AUDIO_BALANCE, 0, 65535, 65535 / 100, 32768); in saa717x_probe()
1286 V4L2_CID_AUDIO_BASS, -16, 15, 1, 0); in saa717x_probe()
1288 V4L2_CID_AUDIO_TREBLE, -16, 15, 1, 0); in saa717x_probe()
1290 V4L2_CID_AUDIO_MUTE, 0, 1, 1, 0); in saa717x_probe()
1304 decoder->playback = 0; /* initially capture mode used */ in saa717x_probe()
1323 return 0; in saa717x_probe()