Lines Matching +full:0 +full:x110

60 			 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04  in set_audclk_freq()
61 * AUX_PLL Integer = 0x0d, AUX PLL Post Divider = 0x20 in set_audclk_freq()
63 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq()
65 /* VID_PLL Fraction = 0x2be2fe */ in set_audclk_freq()
66 /* xtal * 0xf.15f17f0/4 = 108 MHz: 432 MHz pre-postdiv*/ in set_audclk_freq()
67 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
69 /* AUX_PLL Fraction = 0x176740c */ in set_audclk_freq()
70 /* xtal * 0xd.bb3a060/0x20 = 32000 * 384: 393 MHz p-pd*/ in set_audclk_freq()
71 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq()
74 /* 0x1.f77f = (4 * xtal/8*2/455) / 32000 */ in set_audclk_freq()
75 cx18_av_write4(cx, 0x900, 0x0801f77f); in set_audclk_freq()
76 cx18_av_write4(cx, 0x904, 0x0801f77f); in set_audclk_freq()
77 cx18_av_write4(cx, 0x90c, 0x0801f77f); in set_audclk_freq()
79 /* SA_MCLK_SEL=1, SA_MCLK_DIV=0x20 */ in set_audclk_freq()
80 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq()
82 /* AUD_COUNT = 0x2fff = 8 samples * 4 * 384 - 1 */ in set_audclk_freq()
83 cx18_av_write4(cx, 0x12c, 0x11202fff); in set_audclk_freq()
86 * EN_AV_LOCK = 0 in set_audclk_freq()
87 * VID_COUNT = 0x0d2ef8 = 107999.000 * 8 = in set_audclk_freq()
90 cx18_av_write4(cx, 0x128, 0xa00d2ef8); in set_audclk_freq()
95 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in set_audclk_freq()
96 * AUX_PLL Integer = 0x0e, AUX PLL Post Divider = 0x18 in set_audclk_freq()
98 cx18_av_write4(cx, 0x108, 0x180e040f); in set_audclk_freq()
100 /* VID_PLL Fraction = 0x2be2fe */ in set_audclk_freq()
101 /* xtal * 0xf.15f17f0/4 = 108 MHz: 432 MHz pre-postdiv*/ in set_audclk_freq()
102 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
104 /* AUX_PLL Fraction = 0x062a1f2 */ in set_audclk_freq()
105 /* xtal * 0xe.3150f90/0x18 = 44100 * 384: 406 MHz p-pd*/ in set_audclk_freq()
106 cx18_av_write4(cx, 0x110, 0x0062a1f2); in set_audclk_freq()
109 /* 0x1.6d59 = (4 * xtal/8*2/455) / 44100 */ in set_audclk_freq()
110 cx18_av_write4(cx, 0x900, 0x08016d59); in set_audclk_freq()
111 cx18_av_write4(cx, 0x904, 0x08016d59); in set_audclk_freq()
112 cx18_av_write4(cx, 0x90c, 0x08016d59); in set_audclk_freq()
114 /* SA_MCLK_SEL=1, SA_MCLK_DIV=0x18 */ in set_audclk_freq()
115 cx18_av_write(cx, 0x127, 0x58); in set_audclk_freq()
117 /* AUD_COUNT = 0x92ff = 49 samples * 2 * 384 - 1 */ in set_audclk_freq()
118 cx18_av_write4(cx, 0x12c, 0x112092ff); in set_audclk_freq()
121 * EN_AV_LOCK = 0 in set_audclk_freq()
122 * VID_COUNT = 0x1d4bf8 = 239999.000 * 8 = in set_audclk_freq()
125 cx18_av_write4(cx, 0x128, 0xa01d4bf8); in set_audclk_freq()
130 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in set_audclk_freq()
131 * AUX_PLL Integer = 0x0e, AUX PLL Post Divider = 0x16 in set_audclk_freq()
133 cx18_av_write4(cx, 0x108, 0x160e040f); in set_audclk_freq()
135 /* VID_PLL Fraction = 0x2be2fe */ in set_audclk_freq()
136 /* xtal * 0xf.15f17f0/4 = 108 MHz: 432 MHz pre-postdiv*/ in set_audclk_freq()
137 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
139 /* AUX_PLL Fraction = 0x05227ad */ in set_audclk_freq()
140 /* xtal * 0xe.2913d68/0x16 = 48000 * 384: 406 MHz p-pd*/ in set_audclk_freq()
141 cx18_av_write4(cx, 0x110, 0x005227ad); in set_audclk_freq()
144 /* 0x1.4faa = (4 * xtal/8*2/455) / 48000 */ in set_audclk_freq()
145 cx18_av_write4(cx, 0x900, 0x08014faa); in set_audclk_freq()
146 cx18_av_write4(cx, 0x904, 0x08014faa); in set_audclk_freq()
147 cx18_av_write4(cx, 0x90c, 0x08014faa); in set_audclk_freq()
149 /* SA_MCLK_SEL=1, SA_MCLK_DIV=0x16 */ in set_audclk_freq()
150 cx18_av_write(cx, 0x127, 0x56); in set_audclk_freq()
152 /* AUD_COUNT = 0x5fff = 4 samples * 16 * 384 - 1 */ in set_audclk_freq()
153 cx18_av_write4(cx, 0x12c, 0x11205fff); in set_audclk_freq()
156 * EN_AV_LOCK = 0 in set_audclk_freq()
157 * VID_COUNT = 0x1193f8 = 143999.000 * 8 = in set_audclk_freq()
160 cx18_av_write4(cx, 0x128, 0xa01193f8); in set_audclk_freq()
167 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in set_audclk_freq()
168 * AUX_PLL Integer = 0x0d, AUX PLL Post Divider = 0x30 in set_audclk_freq()
170 cx18_av_write4(cx, 0x108, 0x300d040f); in set_audclk_freq()
172 /* VID_PLL Fraction = 0x2be2fe */ in set_audclk_freq()
173 /* xtal * 0xf.15f17f0/4 = 108 MHz: 432 MHz pre-postdiv*/ in set_audclk_freq()
174 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
176 /* AUX_PLL Fraction = 0x176740c */ in set_audclk_freq()
177 /* xtal * 0xd.bb3a060/0x30 = 32000 * 256: 393 MHz p-pd*/ in set_audclk_freq()
178 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq()
181 /* 0x1.0000 = 32000/32000 */ in set_audclk_freq()
182 cx18_av_write4(cx, 0x8f8, 0x08010000); in set_audclk_freq()
185 /* 0x2.0000 = 2 * (32000/32000) */ in set_audclk_freq()
186 cx18_av_write4(cx, 0x900, 0x08020000); in set_audclk_freq()
187 cx18_av_write4(cx, 0x904, 0x08020000); in set_audclk_freq()
188 cx18_av_write4(cx, 0x90c, 0x08020000); in set_audclk_freq()
190 /* SA_MCLK_SEL=1, SA_MCLK_DIV=0x30 */ in set_audclk_freq()
191 cx18_av_write(cx, 0x127, 0x70); in set_audclk_freq()
193 /* AUD_COUNT = 0x1fff = 8 samples * 4 * 256 - 1 */ in set_audclk_freq()
194 cx18_av_write4(cx, 0x12c, 0x11201fff); in set_audclk_freq()
197 * EN_AV_LOCK = 0 in set_audclk_freq()
198 * VID_COUNT = 0x0d2ef8 = 107999.000 * 8 = in set_audclk_freq()
201 cx18_av_write4(cx, 0x128, 0xa00d2ef8); in set_audclk_freq()
206 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in set_audclk_freq()
207 * AUX_PLL Integer = 0x0e, AUX PLL Post Divider = 0x24 in set_audclk_freq()
209 cx18_av_write4(cx, 0x108, 0x240e040f); in set_audclk_freq()
211 /* VID_PLL Fraction = 0x2be2fe */ in set_audclk_freq()
212 /* xtal * 0xf.15f17f0/4 = 108 MHz: 432 MHz pre-postdiv*/ in set_audclk_freq()
213 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
215 /* AUX_PLL Fraction = 0x062a1f2 */ in set_audclk_freq()
216 /* xtal * 0xe.3150f90/0x24 = 44100 * 256: 406 MHz p-pd*/ in set_audclk_freq()
217 cx18_av_write4(cx, 0x110, 0x0062a1f2); in set_audclk_freq()
220 /* 0x1.60cd = 44100/32000 */ in set_audclk_freq()
221 cx18_av_write4(cx, 0x8f8, 0x080160cd); in set_audclk_freq()
224 /* 0x1.7385 = 2 * (32000/44100) */ in set_audclk_freq()
225 cx18_av_write4(cx, 0x900, 0x08017385); in set_audclk_freq()
226 cx18_av_write4(cx, 0x904, 0x08017385); in set_audclk_freq()
227 cx18_av_write4(cx, 0x90c, 0x08017385); in set_audclk_freq()
229 /* SA_MCLK_SEL=1, SA_MCLK_DIV=0x24 */ in set_audclk_freq()
230 cx18_av_write(cx, 0x127, 0x64); in set_audclk_freq()
232 /* AUD_COUNT = 0x61ff = 49 samples * 2 * 256 - 1 */ in set_audclk_freq()
233 cx18_av_write4(cx, 0x12c, 0x112061ff); in set_audclk_freq()
236 * EN_AV_LOCK = 0 in set_audclk_freq()
237 * VID_COUNT = 0x1d4bf8 = 239999.000 * 8 = in set_audclk_freq()
240 cx18_av_write4(cx, 0x128, 0xa01d4bf8); in set_audclk_freq()
245 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in set_audclk_freq()
246 * AUX_PLL Integer = 0x0d, AUX PLL Post Divider = 0x20 in set_audclk_freq()
248 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq()
250 /* VID_PLL Fraction = 0x2be2fe */ in set_audclk_freq()
251 /* xtal * 0xf.15f17f0/4 = 108 MHz: 432 MHz pre-postdiv*/ in set_audclk_freq()
252 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
254 /* AUX_PLL Fraction = 0x176740c */ in set_audclk_freq()
255 /* xtal * 0xd.bb3a060/0x20 = 48000 * 256: 393 MHz p-pd*/ in set_audclk_freq()
256 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq()
259 /* 0x1.8000 = 48000/32000 */ in set_audclk_freq()
260 cx18_av_write4(cx, 0x8f8, 0x08018000); in set_audclk_freq()
263 /* 0x1.5555 = 2 * (32000/48000) */ in set_audclk_freq()
264 cx18_av_write4(cx, 0x900, 0x08015555); in set_audclk_freq()
265 cx18_av_write4(cx, 0x904, 0x08015555); in set_audclk_freq()
266 cx18_av_write4(cx, 0x90c, 0x08015555); in set_audclk_freq()
268 /* SA_MCLK_SEL=1, SA_MCLK_DIV=0x20 */ in set_audclk_freq()
269 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq()
271 /* AUD_COUNT = 0x3fff = 4 samples * 16 * 256 - 1 */ in set_audclk_freq()
272 cx18_av_write4(cx, 0x12c, 0x11203fff); in set_audclk_freq()
275 * EN_AV_LOCK = 0 in set_audclk_freq()
276 * VID_COUNT = 0x1193f8 = 143999.000 * 8 = in set_audclk_freq()
279 cx18_av_write4(cx, 0x128, 0xa01193f8); in set_audclk_freq()
286 return 0; in set_audclk_freq()
295 v = cx18_av_read(cx, 0x803) & ~0x10; in cx18_av_audio_set_path()
296 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in cx18_av_audio_set_path()
299 v = cx18_av_read(cx, 0x810) | 0x01; in cx18_av_audio_set_path()
300 cx18_av_write_expect(cx, 0x810, v, v, 0x0f); in cx18_av_audio_set_path()
303 cx18_av_write(cx, 0x8d3, 0x1f); in cx18_av_audio_set_path()
307 cx18_av_write4(cx, 0x8d0, 0x01011012); in cx18_av_audio_set_path()
314 cx18_av_write4(cx, 0x8d0, 0x1f063870); in cx18_av_audio_set_path()
320 v = cx18_av_read(cx, 0x810) & ~0x01; in cx18_av_audio_set_path()
321 cx18_av_write_expect(cx, 0x810, v, v, 0x0f); in cx18_av_audio_set_path()
326 v = cx18_av_read(cx, 0x803) | 0x10; in cx18_av_audio_set_path()
327 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in cx18_av_audio_set_path()
333 /* First convert the volume to msp3400 values (0-127) */ in set_volume()
336 * -114dB to -96dB maps to 0 in set_volume()
339 vol = 0; in set_volume()
344 cx18_av_write(cx, 0x8d4, 228 - (vol * 2)); in set_volume()
350 cx18_av_and_or(cx, 0x8d9, ~0x3f, 48 - (bass * 48 / 0xffff)); in set_bass()
356 cx18_av_and_or(cx, 0x8db, ~0x3f, 48 - (treble * 48 / 0xffff)); in set_treble()
362 if (bal > 0x80) { in set_balance()
364 cx18_av_and_or(cx, 0x8d5, 0x7f, 0x80); in set_balance()
366 cx18_av_and_or(cx, 0x8d5, ~0x7f, bal & 0x7f); in set_balance()
369 cx18_av_and_or(cx, 0x8d5, 0x7f, 0x00); in set_balance()
371 cx18_av_and_or(cx, 0x8d5, ~0x7f, 0x80 - bal); in set_balance()
385 v = cx18_av_read(cx, 0x803); in set_mute()
388 v &= ~0x10; in set_mute()
389 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in set_mute()
390 cx18_av_write(cx, 0x8d3, 0x1f); in set_mute()
393 v |= 0x10; in set_mute()
394 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in set_mute()
398 cx18_av_and_or(cx, 0x8d3, ~0x2, mute ? 0x02 : 0x00); in set_mute()
410 v = cx18_av_read(cx, 0x803) & ~0x10; in cx18_av_s_clock_freq()
411 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in cx18_av_s_clock_freq()
412 cx18_av_write(cx, 0x8d3, 0x1f); in cx18_av_s_clock_freq()
414 v = cx18_av_read(cx, 0x810) | 0x1; in cx18_av_s_clock_freq()
415 cx18_av_write_expect(cx, 0x810, v, v, 0x0f); in cx18_av_s_clock_freq()
419 v = cx18_av_read(cx, 0x810) & ~0x1; in cx18_av_s_clock_freq()
420 cx18_av_write_expect(cx, 0x810, v, v, 0x0f); in cx18_av_s_clock_freq()
422 v = cx18_av_read(cx, 0x803) | 0x10; in cx18_av_s_clock_freq()
423 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in cx18_av_s_clock_freq()
452 return 0; in cx18_av_audio_s_ctrl()