Lines Matching +full:0 +full:x10c
39 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
40 * AUX_PLL Integer = 0x06, AUX PLL Post Divider = 0x10 in cx25840_set_audclk_freq()
42 cx25840_write4(client, 0x108, 0x1006040f); in cx25840_set_audclk_freq()
45 * VID_PLL Fraction (register 0x10c) = 0x2be2fe in cx25840_set_audclk_freq()
46 * 28636360 * 0xf.15f17f0/4 = 108 MHz in cx25840_set_audclk_freq()
51 * AUX_PLL Fraction = 0x1bb39ee in cx25840_set_audclk_freq()
52 * 28636363 * 0x6.dd9cf70/0x10 = 32000 * 384 in cx25840_set_audclk_freq()
57 cx25840_write4(client, 0x110, 0x01bb39ee); in cx25840_set_audclk_freq()
61 * SA_MCLK_DIV = 0x10 = 384/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
63 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq()
69 /* 0x1.f77f = (4 * 28636360/8 * 2/455) / 32000 */ in cx25840_set_audclk_freq()
70 cx25840_write4(client, 0x900, 0x0801f77f); in cx25840_set_audclk_freq()
71 cx25840_write4(client, 0x904, 0x0801f77f); in cx25840_set_audclk_freq()
72 cx25840_write4(client, 0x90c, 0x0801f77f); in cx25840_set_audclk_freq()
77 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
78 * AUX_PLL Integer = 0x09, AUX PLL Post Divider = 0x10 in cx25840_set_audclk_freq()
80 cx25840_write4(client, 0x108, 0x1009040f); in cx25840_set_audclk_freq()
83 * VID_PLL Fraction (register 0x10c) = 0x2be2fe in cx25840_set_audclk_freq()
84 * 28636360 * 0xf.15f17f0/4 = 108 MHz in cx25840_set_audclk_freq()
89 * AUX_PLL Fraction = 0x0ec6bd6 in cx25840_set_audclk_freq()
90 * 28636363 * 0x9.7635eb0/0x10 = 44100 * 384 in cx25840_set_audclk_freq()
94 cx25840_write4(client, 0x110, 0x00ec6bd6); in cx25840_set_audclk_freq()
98 * SA_MCLK_DIV = 0x10 = 384/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
100 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq()
106 /* 0x1.6d59 = (4 * 28636360/8 * 2/455) / 44100 */ in cx25840_set_audclk_freq()
107 cx25840_write4(client, 0x900, 0x08016d59); in cx25840_set_audclk_freq()
108 cx25840_write4(client, 0x904, 0x08016d59); in cx25840_set_audclk_freq()
109 cx25840_write4(client, 0x90c, 0x08016d59); in cx25840_set_audclk_freq()
114 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
115 * AUX_PLL Integer = 0x0a, AUX PLL Post Divider = 0x10 in cx25840_set_audclk_freq()
117 cx25840_write4(client, 0x108, 0x100a040f); in cx25840_set_audclk_freq()
120 * VID_PLL Fraction (register 0x10c) = 0x2be2fe in cx25840_set_audclk_freq()
121 * 28636360 * 0xf.15f17f0/4 = 108 MHz in cx25840_set_audclk_freq()
126 * AUX_PLL Fraction = 0x098d6e5 in cx25840_set_audclk_freq()
127 * 28636363 * 0xa.4c6b728/0x10 = 48000 * 384 in cx25840_set_audclk_freq()
131 cx25840_write4(client, 0x110, 0x0098d6e5); in cx25840_set_audclk_freq()
135 * SA_MCLK_DIV = 0x10 = 384/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
137 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq()
143 /* 0x1.4faa = (4 * 28636360/8 * 2/455) / 48000 */ in cx25840_set_audclk_freq()
144 cx25840_write4(client, 0x900, 0x08014faa); in cx25840_set_audclk_freq()
145 cx25840_write4(client, 0x904, 0x08014faa); in cx25840_set_audclk_freq()
146 cx25840_write4(client, 0x90c, 0x08014faa); in cx25840_set_audclk_freq()
153 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
154 * AUX_PLL Integer = 0x08, AUX PLL Post Divider = 0x1e in cx25840_set_audclk_freq()
156 cx25840_write4(client, 0x108, 0x1e08040f); in cx25840_set_audclk_freq()
159 * VID_PLL Fraction (register 0x10c) = 0x2be2fe in cx25840_set_audclk_freq()
160 * 28636360 * 0xf.15f17f0/4 = 108 MHz in cx25840_set_audclk_freq()
165 * AUX_PLL Fraction = 0x12a0869 in cx25840_set_audclk_freq()
166 * 28636363 * 0x8.9504348/0x1e = 32000 * 256 in cx25840_set_audclk_freq()
170 cx25840_write4(client, 0x110, 0x012a0869); in cx25840_set_audclk_freq()
174 * SA_MCLK_DIV = 0x14 = 256/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
176 cx25840_write(client, 0x127, 0x54); in cx25840_set_audclk_freq()
182 /* 0x1.0000 = 32000/32000 */ in cx25840_set_audclk_freq()
183 cx25840_write4(client, 0x8f8, 0x08010000); in cx25840_set_audclk_freq()
186 /* 0x2.0000 = 2 * (32000/32000) */ in cx25840_set_audclk_freq()
187 cx25840_write4(client, 0x900, 0x08020000); in cx25840_set_audclk_freq()
188 cx25840_write4(client, 0x904, 0x08020000); in cx25840_set_audclk_freq()
189 cx25840_write4(client, 0x90c, 0x08020000); in cx25840_set_audclk_freq()
194 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
195 * AUX_PLL Integer = 0x09, AUX PLL Post Divider = 0x18 in cx25840_set_audclk_freq()
197 cx25840_write4(client, 0x108, 0x1809040f); in cx25840_set_audclk_freq()
200 * VID_PLL Fraction (register 0x10c) = 0x2be2fe in cx25840_set_audclk_freq()
201 * 28636360 * 0xf.15f17f0/4 = 108 MHz in cx25840_set_audclk_freq()
206 * AUX_PLL Fraction = 0x0ec6bd6 in cx25840_set_audclk_freq()
207 * 28636363 * 0x9.7635eb0/0x18 = 44100 * 256 in cx25840_set_audclk_freq()
211 cx25840_write4(client, 0x110, 0x00ec6bd6); in cx25840_set_audclk_freq()
215 * SA_MCLK_DIV = 0x10 = 256/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
217 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq()
223 /* 0x1.60cd = 44100/32000 */ in cx25840_set_audclk_freq()
224 cx25840_write4(client, 0x8f8, 0x080160cd); in cx25840_set_audclk_freq()
227 /* 0x1.7385 = 2 * (32000/44100) */ in cx25840_set_audclk_freq()
228 cx25840_write4(client, 0x900, 0x08017385); in cx25840_set_audclk_freq()
229 cx25840_write4(client, 0x904, 0x08017385); in cx25840_set_audclk_freq()
230 cx25840_write4(client, 0x90c, 0x08017385); in cx25840_set_audclk_freq()
235 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
236 * AUX_PLL Integer = 0x0a, AUX PLL Post Divider = 0x18 in cx25840_set_audclk_freq()
238 cx25840_write4(client, 0x108, 0x180a040f); in cx25840_set_audclk_freq()
241 * VID_PLL Fraction (register 0x10c) = 0x2be2fe in cx25840_set_audclk_freq()
242 * 28636360 * 0xf.15f17f0/4 = 108 MHz in cx25840_set_audclk_freq()
247 * AUX_PLL Fraction = 0x098d6e5 in cx25840_set_audclk_freq()
248 * 28636363 * 0xa.4c6b728/0x18 = 48000 * 256 in cx25840_set_audclk_freq()
252 cx25840_write4(client, 0x110, 0x0098d6e5); in cx25840_set_audclk_freq()
256 * SA_MCLK_DIV = 0x10 = 256/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
258 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq()
264 /* 0x1.8000 = 48000/32000 */ in cx25840_set_audclk_freq()
265 cx25840_write4(client, 0x8f8, 0x08018000); in cx25840_set_audclk_freq()
268 /* 0x1.5555 = 2 * (32000/48000) */ in cx25840_set_audclk_freq()
269 cx25840_write4(client, 0x900, 0x08015555); in cx25840_set_audclk_freq()
270 cx25840_write4(client, 0x904, 0x08015555); in cx25840_set_audclk_freq()
271 cx25840_write4(client, 0x90c, 0x08015555); in cx25840_set_audclk_freq()
278 return 0; in cx25840_set_audclk_freq()
311 /* 0x1.867c = 48000 / (2 * 28636360/8 * 2/455) */ in cx23885_set_audclk_freq()
312 cx25840_write4(client, 0x8f8, 0x0801867c); in cx23885_set_audclk_freq()
315 /* 0x1.4faa = (4 * 28636360/8 * 2/455) / 48000 */ in cx23885_set_audclk_freq()
316 cx25840_write4(client, 0x900, 0x08014faa); in cx23885_set_audclk_freq()
317 cx25840_write4(client, 0x904, 0x08014faa); in cx23885_set_audclk_freq()
318 cx25840_write4(client, 0x90c, 0x08014faa); in cx23885_set_audclk_freq()
325 return 0; in cx23885_set_audclk_freq()
336 /* 0x1.f77f = (4 * 28636360/8 * 2/455) / 32000 */ in cx231xx_set_audclk_freq()
337 cx25840_write4(client, 0x900, 0x0801f77f); in cx231xx_set_audclk_freq()
338 cx25840_write4(client, 0x904, 0x0801f77f); in cx231xx_set_audclk_freq()
339 cx25840_write4(client, 0x90c, 0x0801f77f); in cx231xx_set_audclk_freq()
344 /* 0x1.6d59 = (4 * 28636360/8 * 2/455) / 44100 */ in cx231xx_set_audclk_freq()
345 cx25840_write4(client, 0x900, 0x08016d59); in cx231xx_set_audclk_freq()
346 cx25840_write4(client, 0x904, 0x08016d59); in cx231xx_set_audclk_freq()
347 cx25840_write4(client, 0x90c, 0x08016d59); in cx231xx_set_audclk_freq()
352 /* 0x1.4faa = (4 * 28636360/8 * 2/455) / 48000 */ in cx231xx_set_audclk_freq()
353 cx25840_write4(client, 0x900, 0x08014faa); in cx231xx_set_audclk_freq()
354 cx25840_write4(client, 0x904, 0x08014faa); in cx231xx_set_audclk_freq()
355 cx25840_write4(client, 0x90c, 0x08014faa); in cx231xx_set_audclk_freq()
363 /* 0x1.0000 = 32000/32000 */ in cx231xx_set_audclk_freq()
364 cx25840_write4(client, 0x8f8, 0x08010000); in cx231xx_set_audclk_freq()
367 /* 0x2.0000 = 2 * (32000/32000) */ in cx231xx_set_audclk_freq()
368 cx25840_write4(client, 0x900, 0x08020000); in cx231xx_set_audclk_freq()
369 cx25840_write4(client, 0x904, 0x08020000); in cx231xx_set_audclk_freq()
370 cx25840_write4(client, 0x90c, 0x08020000); in cx231xx_set_audclk_freq()
375 /* 0x1.60cd = 44100/32000 */ in cx231xx_set_audclk_freq()
376 cx25840_write4(client, 0x8f8, 0x080160cd); in cx231xx_set_audclk_freq()
379 /* 0x1.7385 = 2 * (32000/44100) */ in cx231xx_set_audclk_freq()
380 cx25840_write4(client, 0x900, 0x08017385); in cx231xx_set_audclk_freq()
381 cx25840_write4(client, 0x904, 0x08017385); in cx231xx_set_audclk_freq()
382 cx25840_write4(client, 0x90c, 0x08017385); in cx231xx_set_audclk_freq()
387 /* 0x1.867c = 48000 / (2 * 28636360/8 * 2/455) */ in cx231xx_set_audclk_freq()
388 cx25840_write4(client, 0x8f8, 0x0801867c); in cx231xx_set_audclk_freq()
391 /* 0x1.4faa = (4 * 28636360/8 * 2/455) / 48000 */ in cx231xx_set_audclk_freq()
392 cx25840_write4(client, 0x900, 0x08014faa); in cx231xx_set_audclk_freq()
393 cx25840_write4(client, 0x904, 0x08014faa); in cx231xx_set_audclk_freq()
394 cx25840_write4(client, 0x90c, 0x08014faa); in cx231xx_set_audclk_freq()
401 return 0; in cx231xx_set_audclk_freq()
429 cx25840_and_or(client, 0x810, ~0x1, 0x01); in cx25840_audio_set_path()
432 cx25840_and_or(client, 0x803, ~0x10, 0); in cx25840_audio_set_path()
435 cx25840_write(client, 0x8d3, 0x1f); in cx25840_audio_set_path()
439 cx25840_write4(client, 0x8d0, 0x01011012); in cx25840_audio_set_path()
446 cx25840_write4(client, 0x8d0, 0x1f063870); in cx25840_audio_set_path()
456 cx25840_and_or(client, 0x803, ~0x10, 0x10); in cx25840_audio_set_path()
460 cx25840_and_or(client, 0x810, ~0x1, 0x00); in cx25840_audio_set_path()
464 cx25840_and_or(client, 0x803, ~0x10, 0x10); in cx25840_audio_set_path()
472 /* Convert the volume to msp3400 values (0-127) */ in set_volume()
476 * -114dB to -96dB maps to 0 in set_volume()
479 vol = 0; in set_volume()
485 cx25840_write(client, 0x8d4, 228 - (vol * 2)); in set_volume()
491 if (bal > 0x80) { in set_balance()
493 cx25840_and_or(client, 0x8d5, 0x7f, 0x80); in set_balance()
495 cx25840_and_or(client, 0x8d5, ~0x7f, bal & 0x7f); in set_balance()
498 cx25840_and_or(client, 0x8d5, 0x7f, 0x00); in set_balance()
500 cx25840_and_or(client, 0x8d5, ~0x7f, 0x80 - bal); in set_balance()
511 cx25840_and_or(client, 0x810, ~0x1, 1); in cx25840_s_clock_freq()
513 cx25840_and_or(client, 0x803, ~0x10, 0); in cx25840_s_clock_freq()
514 cx25840_write(client, 0x8d3, 0x1f); in cx25840_s_clock_freq()
518 cx25840_and_or(client, 0x803, ~0x10, 0x10); in cx25840_s_clock_freq()
520 cx25840_and_or(client, 0x810, ~0x1, 0); in cx25840_s_clock_freq()
533 set_volume(client, 0); in cx25840_audio_s_ctrl()
539 cx25840_and_or(client, 0x8d9, ~0x3f, in cx25840_audio_s_ctrl()
540 48 - (ctrl->val * 48 / 0xffff)); in cx25840_audio_s_ctrl()
544 cx25840_and_or(client, 0x8db, ~0x3f, in cx25840_audio_s_ctrl()
545 48 - (ctrl->val * 48 / 0xffff)); in cx25840_audio_s_ctrl()
553 return 0; in cx25840_audio_s_ctrl()