Lines Matching +full:0 +full:xc5000
12 * analog demodulator code isn't implemented (not needed for xc5000 since it
37 "Analog debugging messages [0=Off (default) 1=On]");
47 0="ATV RF" 1="ATV RF13" 2="CVBS" 3="S-Video" 4="PAL" 5=CVBS13" 6="SVideo13"
50 {AU8522_FILTER_COEF_R410, {0x25, 0x00, 0x25, 0x25, 0x00, 0x00, 0x00} },
51 {AU8522_FILTER_COEF_R411, {0x20, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00} },
52 {AU8522_FILTER_COEF_R412, {0x03, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00} },
53 {AU8522_FILTER_COEF_R413, {0xe6, 0x00, 0xe6, 0xe6, 0x00, 0x00, 0x00} },
54 {AU8522_FILTER_COEF_R414, {0x40, 0x00, 0x40, 0x40, 0x00, 0x00, 0x00} },
55 {AU8522_FILTER_COEF_R415, {0x1b, 0x00, 0x1b, 0x1b, 0x00, 0x00, 0x00} },
56 {AU8522_FILTER_COEF_R416, {0xc0, 0x00, 0xc0, 0x04, 0x00, 0x00, 0x00} },
57 {AU8522_FILTER_COEF_R417, {0x04, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00} },
58 {AU8522_FILTER_COEF_R418, {0x8c, 0x00, 0x8c, 0x8c, 0x00, 0x00, 0x00} },
59 {AU8522_FILTER_COEF_R419, {0xa0, 0x40, 0xa0, 0xa0, 0x40, 0x40, 0x40} },
60 {AU8522_FILTER_COEF_R41A, {0x21, 0x09, 0x21, 0x21, 0x09, 0x09, 0x09} },
61 {AU8522_FILTER_COEF_R41B, {0x6c, 0x38, 0x6c, 0x6c, 0x38, 0x38, 0x38} },
62 {AU8522_FILTER_COEF_R41C, {0x03, 0xff, 0x03, 0x03, 0xff, 0xff, 0xff} },
63 {AU8522_FILTER_COEF_R41D, {0xbf, 0xc7, 0xbf, 0xbf, 0xc7, 0xc7, 0xc7} },
64 {AU8522_FILTER_COEF_R41E, {0xa0, 0xdf, 0xa0, 0xa0, 0xdf, 0xdf, 0xdf} },
65 {AU8522_FILTER_COEF_R41F, {0x10, 0x06, 0x10, 0x10, 0x06, 0x06, 0x06} },
66 {AU8522_FILTER_COEF_R420, {0xae, 0x30, 0xae, 0xae, 0x30, 0x30, 0x30} },
67 {AU8522_FILTER_COEF_R421, {0xc4, 0x01, 0xc4, 0xc4, 0x01, 0x01, 0x01} },
68 {AU8522_FILTER_COEF_R422, {0x54, 0xdd, 0x54, 0x54, 0xdd, 0xdd, 0xdd} },
69 {AU8522_FILTER_COEF_R423, {0xd0, 0xaf, 0xd0, 0xd0, 0xaf, 0xaf, 0xaf} },
70 {AU8522_FILTER_COEF_R424, {0x1c, 0xf7, 0x1c, 0x1c, 0xf7, 0xf7, 0xf7} },
71 {AU8522_FILTER_COEF_R425, {0x76, 0xdb, 0x76, 0x76, 0xdb, 0xdb, 0xdb} },
72 {AU8522_FILTER_COEF_R426, {0x61, 0xc0, 0x61, 0x61, 0xc0, 0xc0, 0xc0} },
73 {AU8522_FILTER_COEF_R427, {0xd1, 0x2f, 0xd1, 0xd1, 0x2f, 0x2f, 0x2f} },
74 {AU8522_FILTER_COEF_R428, {0x84, 0xd8, 0x84, 0x84, 0xd8, 0xd8, 0xd8} },
75 {AU8522_FILTER_COEF_R429, {0x06, 0xfb, 0x06, 0x06, 0xfb, 0xfb, 0xfb} },
76 {AU8522_FILTER_COEF_R42A, {0x21, 0xd5, 0x21, 0x21, 0xd5, 0xd5, 0xd5} },
77 {AU8522_FILTER_COEF_R42B, {0x0a, 0x3e, 0x0a, 0x0a, 0x3e, 0x3e, 0x3e} },
78 {AU8522_FILTER_COEF_R42C, {0xe6, 0x15, 0xe6, 0xe6, 0x15, 0x15, 0x15} },
79 {AU8522_FILTER_COEF_R42D, {0x01, 0x34, 0x01, 0x01, 0x34, 0x34, 0x34} },
86 /* Registers 0x060b through 0x0652 are the LP Filter coefficients
88 0="SIF" 1="ATVRF/ATVRF13"
92 {0x060b, {0x21, 0x0b} },
93 {0x060c, {0xad, 0xad} },
94 {0x060d, {0x70, 0xf0} },
95 {0x060e, {0xea, 0xe9} },
96 {0x060f, {0xdd, 0xdd} },
97 {0x0610, {0x08, 0x64} },
98 {0x0611, {0x60, 0x60} },
99 {0x0612, {0xf8, 0xb2} },
100 {0x0613, {0x01, 0x02} },
101 {0x0614, {0xe4, 0xb4} },
102 {0x0615, {0x19, 0x02} },
103 {0x0616, {0xae, 0x2e} },
104 {0x0617, {0xee, 0xc5} },
105 {0x0618, {0x56, 0x56} },
106 {0x0619, {0x30, 0x58} },
107 {0x061a, {0xf9, 0xf8} },
108 {0x061b, {0x24, 0x64} },
109 {0x061c, {0x07, 0x07} },
110 {0x061d, {0x30, 0x30} },
111 {0x061e, {0xa9, 0xed} },
112 {0x061f, {0x09, 0x0b} },
113 {0x0620, {0x42, 0xc2} },
114 {0x0621, {0x1d, 0x2a} },
115 {0x0622, {0xd6, 0x56} },
116 {0x0623, {0x95, 0x8b} },
117 {0x0624, {0x2b, 0x2b} },
118 {0x0625, {0x30, 0x24} },
119 {0x0626, {0x3e, 0x3e} },
120 {0x0627, {0x62, 0xe2} },
121 {0x0628, {0xe9, 0xf5} },
122 {0x0629, {0x99, 0x19} },
123 {0x062a, {0xd4, 0x11} },
124 {0x062b, {0x03, 0x04} },
125 {0x062c, {0xb5, 0x85} },
126 {0x062d, {0x1e, 0x20} },
127 {0x062e, {0x2a, 0xea} },
128 {0x062f, {0xd7, 0xd2} },
129 {0x0630, {0x15, 0x15} },
130 {0x0631, {0xa3, 0xa9} },
131 {0x0632, {0x1f, 0x1f} },
132 {0x0633, {0xf9, 0xd1} },
133 {0x0634, {0xc0, 0xc3} },
134 {0x0635, {0x4d, 0x8d} },
135 {0x0636, {0x21, 0x31} },
136 {0x0637, {0x83, 0x83} },
137 {0x0638, {0x08, 0x8c} },
138 {0x0639, {0x19, 0x19} },
139 {0x063a, {0x45, 0xa5} },
140 {0x063b, {0xef, 0xec} },
141 {0x063c, {0x8a, 0x8a} },
142 {0x063d, {0xf4, 0xf6} },
143 {0x063e, {0x8f, 0x8f} },
144 {0x063f, {0x44, 0x0c} },
145 {0x0640, {0xef, 0xf0} },
146 {0x0641, {0x66, 0x66} },
147 {0x0642, {0xcc, 0xd2} },
148 {0x0643, {0x41, 0x41} },
149 {0x0644, {0x63, 0x93} },
150 {0x0645, {0x8e, 0x8e} },
151 {0x0646, {0xa2, 0x42} },
152 {0x0647, {0x7b, 0x7b} },
153 {0x0648, {0x04, 0x04} },
154 {0x0649, {0x00, 0x00} },
155 {0x064a, {0x40, 0x40} },
156 {0x064b, {0x8c, 0x98} },
157 {0x064c, {0x00, 0x00} },
158 {0x064d, {0x63, 0xc3} },
159 {0x064e, {0x04, 0x04} },
160 {0x064f, {0x20, 0x20} },
161 {0x0650, {0x00, 0x00} },
162 {0x0651, {0x40, 0x40} },
163 {0x0652, {0x01, 0x01} },
179 au8522_writereg(state, AU8522_TVDEC_SHARPNESSREG009H, 0x07); in setup_decoder_defaults()
180 au8522_writereg(state, AU8522_TVDEC_BRIGHTNESS_REG00AH, 0xed); in setup_decoder_defaults()
181 au8522_writereg(state, AU8522_TVDEC_CONTRAST_REG00BH, 0x79); in setup_decoder_defaults()
182 au8522_writereg(state, AU8522_TVDEC_SATURATION_CB_REG00CH, 0x80); in setup_decoder_defaults()
183 au8522_writereg(state, AU8522_TVDEC_SATURATION_CR_REG00DH, 0x80); in setup_decoder_defaults()
184 au8522_writereg(state, AU8522_TVDEC_HUE_H_REG00EH, 0x00); in setup_decoder_defaults()
185 au8522_writereg(state, AU8522_TVDEC_HUE_L_REG00FH, 0x00); in setup_decoder_defaults()
188 au8522_writereg(state, AU8522_TVDEC_INT_MASK_REG010H, 0x00); in setup_decoder_defaults()
191 au8522_writereg(state, AU8522_VIDEO_MODE_REG011H, 0x04); in setup_decoder_defaults()
193 au8522_writereg(state, AU8522_VIDEO_MODE_REG011H, 0x00); in setup_decoder_defaults()
283 for (i = 0; i < NUM_FILTER_COEF; i++) { in setup_decoder_defaults()
290 au8522_writereg(state, AU8522_REG42EH, 0x87); in setup_decoder_defaults()
291 au8522_writereg(state, AU8522_REG42FH, 0xa2); in setup_decoder_defaults()
292 au8522_writereg(state, AU8522_REG430H, 0xbf); in setup_decoder_defaults()
293 au8522_writereg(state, AU8522_REG431H, 0xcb); in setup_decoder_defaults()
294 au8522_writereg(state, AU8522_REG432H, 0xa1); in setup_decoder_defaults()
295 au8522_writereg(state, AU8522_REG433H, 0x41); in setup_decoder_defaults()
296 au8522_writereg(state, AU8522_REG434H, 0x88); in setup_decoder_defaults()
297 au8522_writereg(state, AU8522_REG435H, 0xc2); in setup_decoder_defaults()
298 au8522_writereg(state, AU8522_REG436H, 0x3c); in setup_decoder_defaults()
308 au8522_writereg(state, AU8522_PGA_CONTROL_REG082H, 0x00); in au8522_setup_cvbs_mode()
311 au8522_writereg(state, AU8522_CLAMPING_CONTROL_REG083H, 0x00); in au8522_setup_cvbs_mode()
330 au8522_writereg(state, AU8522_PGA_CONTROL_REG082H, 0x00); in au8522_setup_cvbs_tuner_mode()
333 au8522_writereg(state, AU8522_CLAMPING_CONTROL_REG083H, 0x0e); in au8522_setup_cvbs_tuner_mode()
336 au8522_writereg(state, AU8522_PGA_CONTROL_REG082H, 0x10); in au8522_setup_cvbs_tuner_mode()
357 au8522_writereg(state, AU8522_PGA_CONTROL_REG082H, 0x00); in au8522_setup_svideo_mode()
360 au8522_writereg(state, AU8522_CLAMPING_CONTROL_REG083H, 0x00); in au8522_setup_svideo_mode()
372 au8522_writereg(state, AU8522_AUDIO_VOLUME_L_REG0F2H, 0x00); in disable_audio_input()
373 au8522_writereg(state, AU8522_AUDIO_VOLUME_R_REG0F3H, 0x00); in disable_audio_input()
374 au8522_writereg(state, AU8522_AUDIO_VOLUME_REG0F4H, 0x00); in disable_audio_input()
376 au8522_writereg(state, AU8522_SYSTEM_MODULE_CONTROL_1_REG0A5H, 0x04); in disable_audio_input()
377 au8522_writereg(state, AU8522_I2S_CTRL_2_REG112H, 0x02); in disable_audio_input()
383 /* 0=disable, 1=SIF */
390 the input routing via register 0x81 */ in set_audio_input()
405 for (i = 0; i < NUM_LPFILTER_COEF; i++) { in set_audio_input()
407 lpfilter_coef[i].reg_val[0]); in set_audio_input()
411 au8522_writereg(state, AU8522_AUDIO_VOLUME_L_REG0F2H, 0x7F); in set_audio_input()
412 au8522_writereg(state, AU8522_AUDIO_VOLUME_R_REG0F3H, 0x7F); in set_audio_input()
413 au8522_writereg(state, AU8522_AUDIO_VOLUME_REG0F4H, 0xff); in set_audio_input()
419 au8522_writereg(state, AU8522_AUDIO_MODE_REG0F1H, 0x82); in set_audio_input()
423 au8522_writereg(state, AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H, 0x9d); in set_audio_input()
426 au8522_writereg(state, AU8522_AUDIOFREQ_REG606H, 0x03); in set_audio_input()
429 au8522_writereg(state, AU8522_I2S_CTRL_2_REG112H, 0xc2); in set_audio_input()
432 au8522_writereg(state, AU8522_SYSTEM_MODULE_CONTROL_1_REG0A5H, 0x09); in set_audio_input()
461 ctrl->val & 0xFF); in au8522_s_ctrl()
467 return 0; in au8522_s_ctrl()
478 reg->val = au8522_readreg(state, reg->reg & 0xffff); in au8522_g_register()
479 return 0; in au8522_g_register()
487 au8522_writereg(state, reg->reg, reg->val & 0xff); in au8522_s_register()
488 return 0; in au8522_s_register()
496 au8522_writereg(state, 0xa4, 1 << 5); in au8522_video_set()
541 state->current_frequency = 0; in au8522_s_stream()
544 0x01); in au8522_s_stream()
558 return 0; in au8522_s_stream()
580 return 0; in au8522_s_video_routing()
587 if ((std & (V4L2_STD_PAL_M | V4L2_STD_NTSC_M)) == 0) in au8522_s_std()
595 return 0; in au8522_s_std()
608 return 0; in au8522_s_audio_routing()
613 int val = 0; in au8522_g_tuner()
619 lock_status = au8522_readreg(state, 0x00); in au8522_g_tuner()
620 pll_status = au8522_readreg(state, 0x7e); in au8522_g_tuner()
621 if ((lock_status == 0xa2) && (pll_status & 0x10)) in au8522_g_tuner()
622 vt->signal = 0xffff; in au8522_g_tuner()
624 vt->signal = 0x00; in au8522_g_tuner()
633 return 0; in au8522_g_tuner()
692 case 0: in au8522_probe()
705 state->config.demod_address = 0x8e >> 1; in au8522_probe()
722 if (ret < 0) { in au8522_probe()
731 V4L2_CID_BRIGHTNESS, 0, 255, 1, 109); in au8522_probe()
733 V4L2_CID_CONTRAST, 0, 255, 1, in au8522_probe()
736 V4L2_CID_SATURATION, 0, 255, 1, 128); in au8522_probe()
738 V4L2_CID_HUE, -32768, 32767, 1, 0); in au8522_probe()
753 state->rev = 0; in au8522_probe()
756 au8522_writereg(state, 0x106, 1); in au8522_probe()
758 return 0; in au8522_probe()