Lines Matching +full:0 +full:x1900
28 { 0x0000, 0, 0, "could not detect sound standard", V4L2_STD_ALL },
29 { 0x0001, 0, 0, "autodetect start", V4L2_STD_ALL },
30 { 0x0002, MSP_CARRIER(4.5), MSP_CARRIER(4.72),
32 { 0x0003, MSP_CARRIER(5.5), MSP_CARRIER(5.7421875),
34 { 0x0004, MSP_CARRIER(6.5), MSP_CARRIER(6.2578125),
36 { 0x0005, MSP_CARRIER(6.5), MSP_CARRIER(6.7421875),
38 { 0x0006, MSP_CARRIER(6.5), MSP_CARRIER(6.5),
40 { 0x0007, MSP_CARRIER(6.5), MSP_CARRIER(5.7421875),
42 { 0x0008, MSP_CARRIER(5.5), MSP_CARRIER(5.85),
44 { 0x0009, MSP_CARRIER(6.5), MSP_CARRIER(5.85),
46 { 0x000a, MSP_CARRIER(6.0), MSP_CARRIER(6.55),
48 { 0x000b, MSP_CARRIER(6.5), MSP_CARRIER(5.85),
50 { 0x000c, MSP_CARRIER(6.5), MSP_CARRIER(5.85),
52 { 0x000d, MSP_CARRIER(6.5), MSP_CARRIER(5.85),
54 { 0x0020, MSP_CARRIER(4.5), MSP_CARRIER(4.5),
56 { 0x0021, MSP_CARRIER(4.5), MSP_CARRIER(4.5),
58 { 0x0030, MSP_CARRIER(4.5), MSP_CARRIER(4.5),
60 { 0x0040, MSP_CARRIER(10.7), MSP_CARRIER(10.7),
62 { 0x0050, MSP_CARRIER(6.5), MSP_CARRIER(6.5),
64 { 0x0051, MSP_CARRIER(7.02), MSP_CARRIER(7.20),
66 { 0x0060, MSP_CARRIER(7.2), MSP_CARRIER(7.2),
68 { -1, 0, 0, NULL, 0 }, /* EOF */
85 0x00d0, 0x0500, 0x0020, 0x3000
90 0x00d0, 0x0100, 0x0020, 0x3000
95 0x00d0, 0x0480, 0x0020, 0x3000
100 0x00d0, 0x0480, 0x0030, 0x3000
105 0x00c6, 0x0480, 0x0000, 0x3000
110 0x00d0, 0x0040, 0x0120, 0x3000
115 0x00d0, 0x0040, 0x0120, 0x3000
120 0x00c6, 0x0140, 0x0120, 0x7c00
159 for (i = 0; msp_stdlist[i].name != NULL; i++) in msp_standard_std_name()
169 for (i = 0; msp_stdlist[i].name != NULL; i++) in msp_standard_std()
180 msp_write_dsp(client, 0x0008, 0x0520); /* I2S1 */ in msp_set_source()
181 msp_write_dsp(client, 0x0009, 0x0620); /* I2S2 */ in msp_set_source()
183 msp_write_dsp(client, 0x0008, src); in msp_set_source()
184 msp_write_dsp(client, 0x0009, src); in msp_set_source()
186 msp_write_dsp(client, 0x000a, src); in msp_set_source()
187 msp_write_dsp(client, 0x000b, src); in msp_set_source()
188 msp_write_dsp(client, 0x000c, src); in msp_set_source()
190 msp_write_dsp(client, 0x0041, src); in msp_set_source()
195 msp_write_dem(client, 0x0093, cdo1 & 0xfff); in msp3400c_set_carrier()
196 msp_write_dem(client, 0x009b, cdo1 >> 12); in msp3400c_set_carrier()
197 msp_write_dem(client, 0x00a3, cdo2 & 0xfff); in msp3400c_set_carrier()
198 msp_write_dem(client, 0x00ab, cdo2 >> 12); in msp3400c_set_carrier()
199 msp_write_dem(client, 0x0056, 0); /* LOAD_REG_1/2 */ in msp3400c_set_carrier()
213 msp_write_dem(client, 0x00bb, data->ad_cv | (tuner ? 0x100 : 0)); in msp3400c_set_mode()
215 for (i = 5; i >= 0; i--) /* fir 1 */ in msp3400c_set_mode()
216 msp_write_dem(client, 0x0001, data->fir1[i]); in msp3400c_set_mode()
218 msp_write_dem(client, 0x0005, 0x0004); /* fir 2 */ in msp3400c_set_mode()
219 msp_write_dem(client, 0x0005, 0x0040); in msp3400c_set_mode()
220 msp_write_dem(client, 0x0005, 0x0000); in msp3400c_set_mode()
221 for (i = 5; i >= 0; i--) in msp3400c_set_mode()
222 msp_write_dem(client, 0x0005, data->fir2[i]); in msp3400c_set_mode()
224 msp_write_dem(client, 0x0083, data->mode_reg); in msp3400c_set_mode()
232 msp_write_dsp(client, 0x000d, 0x1900); in msp3400c_set_mode()
233 msp_write_dsp(client, 0x000e, data->dsp_matrix); in msp3400c_set_mode()
235 msp_write_dsp(client, 0x0010, 0x5a00); in msp3400c_set_mode()
246 char *modestr = (state->audmode >= 0 && state->audmode < 5) ? in msp3400c_set_audmode()
248 int src = 0; /* channel source: FM/AM, nicam or SCART */ in msp3400c_set_audmode()
287 msp_write_dsp(client, 0x000e, 0x3001); in msp3400c_set_audmode()
293 msp_write_dsp(client, 0x000e, 0x3000); in msp3400c_set_audmode()
321 src = 0x0100; /* NICAM */ in msp3400c_set_audmode()
330 src = 0x0200; /* SCART */ in msp3400c_set_audmode()
346 src |= 0x0020; in msp3400c_set_audmode()
353 msp_set_scart(client, SCART_MONO, 0); in msp3400c_set_audmode()
354 src = 0x0200; in msp3400c_set_audmode()
358 src = 0x0030; in msp3400c_set_audmode()
363 src |= 0x0010; in msp3400c_set_audmode()
367 "set_audmode final source/matrix = 0x%x\n", src); in msp3400c_set_audmode()
407 int update = 0; in msp3400c_detect_stereo()
411 val = msp_read_dsp(client, 0x18); in msp3400c_detect_stereo()
423 newnicam = 0; in msp3400c_detect_stereo()
428 val = msp_read_dem(client, 0x23); in msp3400c_detect_stereo()
430 val & 1, (val & 0x1e) >> 1); in msp3400c_detect_stereo()
434 switch ((val & 0x1e) >> 1) { in msp3400c_detect_stereo()
435 case 0: in msp3400c_detect_stereo()
453 newnicam = 0; in msp3400c_detect_stereo()
487 state->watch_stereo = 0; in watch_stereo()
507 state->restart = 0; in msp3400c_thread()
515 state->scan_in_progress = 0; in msp3400c_thread()
525 val1 = val2 = 0; in msp3400c_thread()
527 state->watch_stereo = 0; in msp3400c_thread()
528 state->nicam_on = 0; in msp3400c_thread()
541 count = 0; in msp3400c_thread()
545 for (i = 0; i < count; i++) { in msp3400c_thread()
549 val = msp_read_dsp(client, 0x1b); in msp3400c_thread()
570 case 0: /* 4.5 */ in msp3400c_thread()
574 count = 0; in msp3400c_thread()
581 count = 0; in msp3400c_thread()
582 max2 = 0; in msp3400c_thread()
584 for (i = 0; i < count; i++) { in msp3400c_thread()
588 val = msp_read_dsp(client, 0x1b); in msp3400c_thread()
604 if (max2 == 0) { in msp3400c_thread()
634 } else if (max2 == 0 && (state->v4l2_std & V4L2_STD_SECAM)) { in msp3400c_thread()
640 } else if (max2 == 0 && state->has_nicam) { in msp3400c_thread()
651 case 0: /* 4.5 */ in msp3400c_thread()
663 state->scan_in_progress = 0; in msp3400c_thread()
682 return 0; in msp3400c_thread()
702 state->restart = 0; in msp3410d_thread()
710 state->scan_in_progress = 0; in msp3410d_thread()
723 std = 0x40; in msp3410d_thread()
725 std = (state->v4l2_std & V4L2_STD_NTSC) ? 0x20 : 1; in msp3410d_thread()
726 state->watch_stereo = 0; in msp3410d_thread()
727 state->nicam_on = 0; in msp3410d_thread()
735 "setting standard: %s (0x%04x)\n", in msp3410d_thread()
743 msp_write_dem(client, 0x20, std); in msp3410d_thread()
749 val = msp_read_dem(client, 0x7e); in msp3410d_thread()
750 if (val < 0x07ff) in msp3410d_thread()
756 for (i = 0; msp_stdlist[i].name != NULL; i++) in msp3410d_thread()
759 dev_dbg_lvl(&client->dev, 1, msp_debug, "current standard: %s (0x%04x)\n", in msp3410d_thread()
767 (state->v4l2_std & V4L2_STD_SECAM) && (val != 0x0009)) { in msp3410d_thread()
769 …vl(&client->dev, 1, msp_debug, "autodetection failed, switching to backup standard: %s (0x%04x)\n", in msp3410d_thread()
772 state->std = val = 0x0009; in msp3410d_thread()
773 msp_write_dem(client, 0x20, val); in msp3410d_thread()
780 case 0x0008: /* B/G NICAM */ in msp3410d_thread()
781 case 0x000a: /* I NICAM */ in msp3410d_thread()
782 case 0x000b: /* D/K NICAM */ in msp3410d_thread()
783 if (val == 0x000a) in msp3410d_thread()
791 case 0x0009: in msp3410d_thread()
796 case 0x0020: /* BTSC */ in msp3410d_thread()
800 case 0x0040: /* FM radio */ in msp3410d_thread()
809 case 0x0002: in msp3410d_thread()
810 case 0x0003: in msp3410d_thread()
811 case 0x0004: in msp3410d_thread()
812 case 0x0005: in msp3410d_thread()
819 msp_write_dsp(client, 0x0d, 0x1900); /* scart */ in msp3410d_thread()
820 msp_write_dsp(client, 0x0e, 0x3000); /* FM */ in msp3410d_thread()
822 msp_write_dsp(client, 0x10, 0x5a00); /* nicam */ in msp3410d_thread()
825 msp_write_dem(client, 0x40, state->i2s_mode); in msp3410d_thread()
829 state->scan_in_progress = 0; in msp3410d_thread()
844 return 0; in msp3410d_thread()
861 return 0x0001; in msp34xxg_modus()
865 return 0x4001; in msp34xxg_modus()
869 return 0x0001; in msp34xxg_modus()
873 return 0x6001; in msp34xxg_modus()
877 return 0x2001; in msp34xxg_modus()
879 return 0x7001; in msp34xxg_modus()
889 source = 0; /* mono only */ in msp34xxg_set_source()
890 matrix = 0x30; in msp34xxg_set_source()
894 matrix = 0x10; in msp34xxg_set_source()
898 matrix = 0x20; in msp34xxg_set_source()
902 matrix = 0x00; in msp34xxg_set_source()
907 matrix = 0x20; in msp34xxg_set_source()
912 source = (source << 8) | 0x20; in msp34xxg_set_source()
921 "set source to %d (0x%x) for output %02x\n", in, source, reg); in msp34xxg_set_source()
930 msp34xxg_set_source(client, 0x0008, (in >> 4) & 0xf); in msp34xxg_set_sources()
932 msp34xxg_set_source(client, 0x000c, (in >> 4) & 0xf); in msp34xxg_set_sources()
933 msp34xxg_set_source(client, 0x0009, (in >> 8) & 0xf); in msp34xxg_set_sources()
934 msp34xxg_set_source(client, 0x000a, (in >> 12) & 0xf); in msp34xxg_set_sources()
936 msp34xxg_set_source(client, 0x0041, (in >> 16) & 0xf); in msp34xxg_set_sources()
937 msp34xxg_set_source(client, 0x000b, (in >> 20) & 0xf); in msp34xxg_set_sources()
954 msp_write_dem(client, 0x40, state->i2s_mode); in msp34xxg_reset()
958 modus |= tuner ? 0x100 : 0; in msp34xxg_reset()
959 msp_write_dem(client, 0x30, modus); in msp34xxg_reset()
965 msp_write_dsp(client, 0x0d, 0x1900); /* scart */ in msp34xxg_reset()
966 msp_write_dsp(client, 0x0e, 0x3000); /* FM */ in msp34xxg_reset()
968 msp_write_dsp(client, 0x10, 0x5a00); /* nicam */ in msp34xxg_reset()
972 * of 0x190 to ignore noisy stereo signals. in msp34xxg_reset()
973 * this needs tuning. (recommended range 0x00a0-0x03c0) in msp34xxg_reset()
974 * 0x7f0 = forced mono mode in msp34xxg_reset()
980 msp_write_dem(client, 0x22, msp_stereo_thresh); in msp34xxg_reset()
999 state->restart = 0; in msp34xxg_thread()
1007 state->scan_in_progress = 0; in msp34xxg_thread()
1014 state->std = state->radio ? 0x40 : in msp34xxg_thread()
1016 msp_write_dem(client, 0x20, state->std); in msp34xxg_thread()
1024 for (i = 0; i < 10; i++) { in msp34xxg_thread()
1029 val = msp_read_dem(client, 0x7e); in msp34xxg_thread()
1030 if (val < 0x07ff) { in msp34xxg_thread()
1045 "detected standard: %s (0x%04x)\n", in msp34xxg_thread()
1051 msp_write_dsp(client, 0x0e, 0x7c00); in msp34xxg_thread()
1058 if (msp_write_dsp(client, 0x13, state->acb)) in msp34xxg_thread()
1062 the 0x20 standard (BTSC) */ in msp34xxg_thread()
1063 if (state->std != 0x20) in msp34xxg_thread()
1078 return 0; in msp34xxg_thread()
1084 int status = msp_read_dem(client, 0x0200); in msp34xxg_detect_stereo()
1085 int is_bilingual = status & 0x100; in msp34xxg_detect_stereo()
1086 int is_stereo = status & 0x40; in msp34xxg_detect_stereo()
1090 return 0; in msp34xxg_detect_stereo()
1092 state->rxsubchans = 0; in msp34xxg_detect_stereo()
1098 if (state->std == 0x20) in msp34xxg_detect_stereo()
1105 "status=0x%x, stereo=%d, bilingual=%d -> rxsubchans=%d\n", in msp34xxg_detect_stereo()
1114 if (state->std == 0x20) { in msp34xxg_set_audmode()
1118 msp_write_dem(client, 0x20, 0x21); in msp34xxg_set_audmode()
1120 msp_write_dem(client, 0x20, 0x20); in msp34xxg_set_audmode()
1153 return 0; in msp_detect_stereo()