Lines Matching +full:0 +full:x3700

31 #define RT5663_DEVICE_ID_2 0x6451
32 #define RT5663_DEVICE_ID_1 0x6406
81 { 0x002a, 0x8020 },
82 { 0x0086, 0x0028 },
83 { 0x0100, 0xa020 },
84 { 0x0117, 0x0f28 },
85 { 0x02fb, 0x8089 },
89 { 0x0000, 0x0000 },
90 { 0x0001, 0xc8c8 },
91 { 0x0002, 0x8080 },
92 { 0x0003, 0x8000 },
93 { 0x0004, 0xc80a },
94 { 0x0005, 0x0000 },
95 { 0x0006, 0x0000 },
96 { 0x0007, 0x0000 },
97 { 0x000a, 0x0000 },
98 { 0x000b, 0x0000 },
99 { 0x000c, 0x0000 },
100 { 0x000d, 0x0000 },
101 { 0x000f, 0x0808 },
102 { 0x0010, 0x4000 },
103 { 0x0011, 0x0000 },
104 { 0x0012, 0x1404 },
105 { 0x0013, 0x1000 },
106 { 0x0014, 0xa00a },
107 { 0x0015, 0x0404 },
108 { 0x0016, 0x0404 },
109 { 0x0017, 0x0011 },
110 { 0x0018, 0xafaf },
111 { 0x0019, 0xafaf },
112 { 0x001a, 0xafaf },
113 { 0x001b, 0x0011 },
114 { 0x001c, 0x2f2f },
115 { 0x001d, 0x2f2f },
116 { 0x001e, 0x2f2f },
117 { 0x001f, 0x0000 },
118 { 0x0020, 0x0000 },
119 { 0x0021, 0x0000 },
120 { 0x0022, 0x5757 },
121 { 0x0023, 0x0039 },
122 { 0x0024, 0x000b },
123 { 0x0026, 0xc0c0 },
124 { 0x0027, 0xc0c0 },
125 { 0x0028, 0xc0c0 },
126 { 0x0029, 0x8080 },
127 { 0x002a, 0xaaaa },
128 { 0x002b, 0xaaaa },
129 { 0x002c, 0xaba8 },
130 { 0x002d, 0x0000 },
131 { 0x002e, 0x0000 },
132 { 0x002f, 0x0000 },
133 { 0x0030, 0x0000 },
134 { 0x0031, 0x5000 },
135 { 0x0032, 0x0000 },
136 { 0x0033, 0x0000 },
137 { 0x0034, 0x0000 },
138 { 0x0035, 0x0000 },
139 { 0x003a, 0x0000 },
140 { 0x003b, 0x0000 },
141 { 0x003c, 0x00ff },
142 { 0x003d, 0x0000 },
143 { 0x003e, 0x00ff },
144 { 0x003f, 0x0000 },
145 { 0x0040, 0x0000 },
146 { 0x0041, 0x00ff },
147 { 0x0042, 0x0000 },
148 { 0x0043, 0x00ff },
149 { 0x0044, 0x0c0c },
150 { 0x0049, 0xc00b },
151 { 0x004a, 0x0000 },
152 { 0x004b, 0x031f },
153 { 0x004d, 0x0000 },
154 { 0x004e, 0x001f },
155 { 0x004f, 0x0000 },
156 { 0x0050, 0x001f },
157 { 0x0052, 0xf000 },
158 { 0x0061, 0x0000 },
159 { 0x0062, 0x0000 },
160 { 0x0063, 0x003e },
161 { 0x0064, 0x0000 },
162 { 0x0065, 0x0000 },
163 { 0x0066, 0x003f },
164 { 0x0067, 0x0000 },
165 { 0x006b, 0x0000 },
166 { 0x006d, 0xff00 },
167 { 0x006e, 0x2808 },
168 { 0x006f, 0x000a },
169 { 0x0070, 0x8000 },
170 { 0x0071, 0x8000 },
171 { 0x0072, 0x8000 },
172 { 0x0073, 0x7000 },
173 { 0x0074, 0x7770 },
174 { 0x0075, 0x0002 },
175 { 0x0076, 0x0001 },
176 { 0x0078, 0x00f0 },
177 { 0x0079, 0x0000 },
178 { 0x007a, 0x0000 },
179 { 0x007b, 0x0000 },
180 { 0x007c, 0x0000 },
181 { 0x007d, 0x0123 },
182 { 0x007e, 0x4500 },
183 { 0x007f, 0x8003 },
184 { 0x0080, 0x0000 },
185 { 0x0081, 0x0000 },
186 { 0x0082, 0x0000 },
187 { 0x0083, 0x0000 },
188 { 0x0084, 0x0000 },
189 { 0x0085, 0x0000 },
190 { 0x0086, 0x0008 },
191 { 0x0087, 0x0000 },
192 { 0x0088, 0x0000 },
193 { 0x0089, 0x0000 },
194 { 0x008a, 0x0000 },
195 { 0x008b, 0x0000 },
196 { 0x008c, 0x0003 },
197 { 0x008e, 0x0060 },
198 { 0x008f, 0x1000 },
199 { 0x0091, 0x0c26 },
200 { 0x0092, 0x0073 },
201 { 0x0093, 0x0000 },
202 { 0x0094, 0x0080 },
203 { 0x0098, 0x0000 },
204 { 0x0099, 0x0000 },
205 { 0x009a, 0x0007 },
206 { 0x009f, 0x0000 },
207 { 0x00a0, 0x0000 },
208 { 0x00a1, 0x0002 },
209 { 0x00a2, 0x0001 },
210 { 0x00a3, 0x0002 },
211 { 0x00a4, 0x0001 },
212 { 0x00ae, 0x2040 },
213 { 0x00af, 0x0000 },
214 { 0x00b6, 0x0000 },
215 { 0x00b7, 0x0000 },
216 { 0x00b8, 0x0000 },
217 { 0x00b9, 0x0000 },
218 { 0x00ba, 0x0002 },
219 { 0x00bb, 0x0000 },
220 { 0x00be, 0x0000 },
221 { 0x00c0, 0x0000 },
222 { 0x00c1, 0x0aaa },
223 { 0x00c2, 0xaa80 },
224 { 0x00c3, 0x0003 },
225 { 0x00c4, 0x0000 },
226 { 0x00d0, 0x0000 },
227 { 0x00d1, 0x2244 },
228 { 0x00d2, 0x0000 },
229 { 0x00d3, 0x3300 },
230 { 0x00d4, 0x2200 },
231 { 0x00d9, 0x0809 },
232 { 0x00da, 0x0000 },
233 { 0x00db, 0x0008 },
234 { 0x00dc, 0x00c0 },
235 { 0x00dd, 0x6724 },
236 { 0x00de, 0x3131 },
237 { 0x00df, 0x0008 },
238 { 0x00e0, 0x4000 },
239 { 0x00e1, 0x3131 },
240 { 0x00e2, 0x600c },
241 { 0x00ea, 0xb320 },
242 { 0x00eb, 0x0000 },
243 { 0x00ec, 0xb300 },
244 { 0x00ed, 0x0000 },
245 { 0x00ee, 0xb320 },
246 { 0x00ef, 0x0000 },
247 { 0x00f0, 0x0201 },
248 { 0x00f1, 0x0ddd },
249 { 0x00f2, 0x0ddd },
250 { 0x00f6, 0x0000 },
251 { 0x00f7, 0x0000 },
252 { 0x00f8, 0x0000 },
253 { 0x00fa, 0x0000 },
254 { 0x00fb, 0x0000 },
255 { 0x00fc, 0x0000 },
256 { 0x00fd, 0x0000 },
257 { 0x00fe, 0x10ec },
258 { 0x00ff, 0x6451 },
259 { 0x0100, 0xaaaa },
260 { 0x0101, 0x000a },
261 { 0x010a, 0xaaaa },
262 { 0x010b, 0xa0a0 },
263 { 0x010c, 0xaeae },
264 { 0x010d, 0xaaaa },
265 { 0x010e, 0xaaaa },
266 { 0x010f, 0xaaaa },
267 { 0x0110, 0xe002 },
268 { 0x0111, 0xa602 },
269 { 0x0112, 0xaaaa },
270 { 0x0113, 0x2000 },
271 { 0x0117, 0x0f00 },
272 { 0x0125, 0x0420 },
273 { 0x0132, 0x0000 },
274 { 0x0133, 0x0000 },
275 { 0x0136, 0x5555 },
276 { 0x0137, 0x5540 },
277 { 0x0138, 0x3700 },
278 { 0x0139, 0x79a1 },
279 { 0x013a, 0x2020 },
280 { 0x013b, 0x2020 },
281 { 0x013c, 0x2005 },
282 { 0x013f, 0x0000 },
283 { 0x0145, 0x0002 },
284 { 0x0146, 0x0000 },
285 { 0x0147, 0x0000 },
286 { 0x0148, 0x0000 },
287 { 0x0160, 0x4ec0 },
288 { 0x0161, 0x0080 },
289 { 0x0162, 0x0200 },
290 { 0x0163, 0x0800 },
291 { 0x0164, 0x0000 },
292 { 0x0165, 0x0000 },
293 { 0x0166, 0x0000 },
294 { 0x0167, 0x000f },
295 { 0x0168, 0x000f },
296 { 0x0170, 0x4e80 },
297 { 0x0171, 0x0080 },
298 { 0x0172, 0x0200 },
299 { 0x0173, 0x0800 },
300 { 0x0174, 0x00ff },
301 { 0x0175, 0x0000 },
302 { 0x0190, 0x4131 },
303 { 0x0191, 0x4131 },
304 { 0x0192, 0x4131 },
305 { 0x0193, 0x4131 },
306 { 0x0194, 0x0000 },
307 { 0x0195, 0x0000 },
308 { 0x0196, 0x0000 },
309 { 0x0197, 0x0000 },
310 { 0x0198, 0x0000 },
311 { 0x0199, 0x0000 },
312 { 0x01a0, 0x1e64 },
313 { 0x01a1, 0x06a3 },
314 { 0x01a2, 0x0000 },
315 { 0x01a3, 0x0000 },
316 { 0x01a4, 0x0000 },
317 { 0x01a5, 0x0000 },
318 { 0x01a6, 0x0000 },
319 { 0x01a7, 0x0000 },
320 { 0x01a8, 0x0000 },
321 { 0x01a9, 0x0000 },
322 { 0x01aa, 0x0000 },
323 { 0x01ab, 0x0000 },
324 { 0x01b5, 0x0000 },
325 { 0x01b6, 0x01c3 },
326 { 0x01b7, 0x02a0 },
327 { 0x01b8, 0x03e9 },
328 { 0x01b9, 0x1389 },
329 { 0x01ba, 0xc351 },
330 { 0x01bb, 0x0009 },
331 { 0x01bc, 0x0018 },
332 { 0x01bd, 0x002a },
333 { 0x01be, 0x004c },
334 { 0x01bf, 0x0097 },
335 { 0x01c0, 0x433d },
336 { 0x01c1, 0x0000 },
337 { 0x01c2, 0x0000 },
338 { 0x01c3, 0x0000 },
339 { 0x01c4, 0x0000 },
340 { 0x01c5, 0x0000 },
341 { 0x01c6, 0x0000 },
342 { 0x01c7, 0x0000 },
343 { 0x01c8, 0x40af },
344 { 0x01c9, 0x0702 },
345 { 0x01ca, 0x0000 },
346 { 0x01cb, 0x0000 },
347 { 0x01cc, 0x5757 },
348 { 0x01cd, 0x5757 },
349 { 0x01ce, 0x5757 },
350 { 0x01cf, 0x5757 },
351 { 0x01d0, 0x5757 },
352 { 0x01d1, 0x5757 },
353 { 0x01d2, 0x5757 },
354 { 0x01d3, 0x5757 },
355 { 0x01d4, 0x5757 },
356 { 0x01d5, 0x5757 },
357 { 0x01d6, 0x003c },
358 { 0x01da, 0x0000 },
359 { 0x01db, 0x0000 },
360 { 0x01dc, 0x0000 },
361 { 0x01de, 0x7c00 },
362 { 0x01df, 0x0320 },
363 { 0x01e0, 0x06a1 },
364 { 0x01e1, 0x0000 },
365 { 0x01e2, 0x0000 },
366 { 0x01e3, 0x0000 },
367 { 0x01e4, 0x0000 },
368 { 0x01e5, 0x0000 },
369 { 0x01e6, 0x0001 },
370 { 0x01e7, 0x0000 },
371 { 0x01e8, 0x0000 },
372 { 0x01ea, 0x0000 },
373 { 0x01eb, 0x0000 },
374 { 0x01ec, 0x0000 },
375 { 0x01ed, 0x0000 },
376 { 0x01ee, 0x0000 },
377 { 0x01ef, 0x0000 },
378 { 0x01f0, 0x0000 },
379 { 0x01f1, 0x0000 },
380 { 0x01f2, 0x0000 },
381 { 0x01f3, 0x0000 },
382 { 0x01f4, 0x0000 },
383 { 0x0200, 0x0000 },
384 { 0x0201, 0x0000 },
385 { 0x0202, 0x0000 },
386 { 0x0203, 0x0000 },
387 { 0x0204, 0x0000 },
388 { 0x0205, 0x0000 },
389 { 0x0206, 0x0000 },
390 { 0x0207, 0x0000 },
391 { 0x0208, 0x0000 },
392 { 0x0210, 0x60b1 },
393 { 0x0211, 0xa000 },
394 { 0x0212, 0x024c },
395 { 0x0213, 0xf7ff },
396 { 0x0214, 0x024c },
397 { 0x0215, 0x0102 },
398 { 0x0216, 0x00a3 },
399 { 0x0217, 0x0048 },
400 { 0x0218, 0x92c0 },
401 { 0x0219, 0x0000 },
402 { 0x021a, 0x00c8 },
403 { 0x021b, 0x0020 },
404 { 0x02fa, 0x0000 },
405 { 0x02fb, 0x0000 },
406 { 0x02fc, 0x0000 },
407 { 0x02ff, 0x0110 },
408 { 0x0300, 0x001f },
409 { 0x0301, 0x032c },
410 { 0x0302, 0x5f21 },
411 { 0x0303, 0x4000 },
412 { 0x0304, 0x4000 },
413 { 0x0305, 0x06d5 },
414 { 0x0306, 0x8000 },
415 { 0x0307, 0x0700 },
416 { 0x0310, 0x4560 },
417 { 0x0311, 0xa4a8 },
418 { 0x0312, 0x7418 },
419 { 0x0313, 0x0000 },
420 { 0x0314, 0x0006 },
421 { 0x0315, 0xffff },
422 { 0x0316, 0xc400 },
423 { 0x0317, 0x0000 },
424 { 0x0330, 0x00a6 },
425 { 0x0331, 0x04c3 },
426 { 0x0332, 0x27c8 },
427 { 0x0333, 0xbf50 },
428 { 0x0334, 0x0045 },
429 { 0x0335, 0x0007 },
430 { 0x0336, 0x7418 },
431 { 0x0337, 0x0501 },
432 { 0x0338, 0x0000 },
433 { 0x0339, 0x0010 },
434 { 0x033a, 0x1010 },
435 { 0x03c0, 0x7e00 },
436 { 0x03c1, 0x8000 },
437 { 0x03c2, 0x8000 },
438 { 0x03c3, 0x8000 },
439 { 0x03c4, 0x8000 },
440 { 0x03c5, 0x8000 },
441 { 0x03c6, 0x8000 },
442 { 0x03c7, 0x8000 },
443 { 0x03c8, 0x8000 },
444 { 0x03c9, 0x8000 },
445 { 0x03ca, 0x8000 },
446 { 0x03cb, 0x8000 },
447 { 0x03cc, 0x8000 },
448 { 0x03d0, 0x0000 },
449 { 0x03d1, 0x0000 },
450 { 0x03d2, 0x0000 },
451 { 0x03d3, 0x0000 },
452 { 0x03d4, 0x2000 },
453 { 0x03d5, 0x2000 },
454 { 0x03d6, 0x0000 },
455 { 0x03d7, 0x0000 },
456 { 0x03d8, 0x2000 },
457 { 0x03d9, 0x2000 },
458 { 0x03da, 0x2000 },
459 { 0x03db, 0x2000 },
460 { 0x03dc, 0x0000 },
461 { 0x03dd, 0x0000 },
462 { 0x03de, 0x0000 },
463 { 0x03df, 0x2000 },
464 { 0x03e0, 0x0000 },
465 { 0x03e1, 0x0000 },
466 { 0x03e2, 0x0000 },
467 { 0x03e3, 0x0000 },
468 { 0x03e4, 0x0000 },
469 { 0x03e5, 0x0000 },
470 { 0x03e6, 0x0000 },
471 { 0x03e7, 0x0000 },
472 { 0x03e8, 0x0000 },
473 { 0x03e9, 0x0000 },
474 { 0x03ea, 0x0000 },
475 { 0x03eb, 0x0000 },
476 { 0x03ec, 0x0000 },
477 { 0x03ed, 0x0000 },
478 { 0x03ee, 0x0000 },
479 { 0x03ef, 0x0000 },
480 { 0x03f0, 0x0800 },
481 { 0x03f1, 0x0800 },
482 { 0x03f2, 0x0800 },
483 { 0x03f3, 0x0800 },
484 { 0x03fe, 0x0000 },
485 { 0x03ff, 0x0000 },
486 { 0x07f0, 0x0000 },
487 { 0x07fa, 0x0000 },
491 { 0x0000, 0x0000 },
492 { 0x0002, 0x0008 },
493 { 0x0005, 0x1000 },
494 { 0x0006, 0x1000 },
495 { 0x000a, 0x0000 },
496 { 0x0010, 0x000f },
497 { 0x0015, 0x42f1 },
498 { 0x0016, 0x0000 },
499 { 0x0018, 0x000b },
500 { 0x0019, 0xafaf },
501 { 0x001c, 0x2f2f },
502 { 0x001f, 0x0000 },
503 { 0x0022, 0x5757 },
504 { 0x0023, 0x0039 },
505 { 0x0026, 0xc0c0 },
506 { 0x0029, 0x8080 },
507 { 0x002a, 0x8020 },
508 { 0x002c, 0x000c },
509 { 0x002d, 0x0000 },
510 { 0x0040, 0x0808 },
511 { 0x0061, 0x0000 },
512 { 0x0062, 0x0000 },
513 { 0x0063, 0x003e },
514 { 0x0064, 0x0000 },
515 { 0x0065, 0x0000 },
516 { 0x0066, 0x0000 },
517 { 0x006b, 0x0000 },
518 { 0x006e, 0x0000 },
519 { 0x006f, 0x0000 },
520 { 0x0070, 0x8020 },
521 { 0x0073, 0x1000 },
522 { 0x0074, 0xe400 },
523 { 0x0075, 0x0002 },
524 { 0x0076, 0x0001 },
525 { 0x0077, 0x00f0 },
526 { 0x0078, 0x0000 },
527 { 0x0079, 0x0000 },
528 { 0x007a, 0x0123 },
529 { 0x007b, 0x8003 },
530 { 0x0080, 0x0000 },
531 { 0x0081, 0x0000 },
532 { 0x0082, 0x0000 },
533 { 0x0083, 0x0000 },
534 { 0x0084, 0x0000 },
535 { 0x0086, 0x0028 },
536 { 0x0087, 0x0000 },
537 { 0x008a, 0x0000 },
538 { 0x008b, 0x0000 },
539 { 0x008c, 0x0003 },
540 { 0x008e, 0x0008 },
541 { 0x008f, 0x1000 },
542 { 0x0090, 0x0646 },
543 { 0x0091, 0x0e3e },
544 { 0x0092, 0x1071 },
545 { 0x0093, 0x0000 },
546 { 0x0094, 0x0080 },
547 { 0x0097, 0x0000 },
548 { 0x0098, 0x0000 },
549 { 0x009a, 0x0000 },
550 { 0x009f, 0x0000 },
551 { 0x00ae, 0x6000 },
552 { 0x00af, 0x0000 },
553 { 0x00b6, 0x0000 },
554 { 0x00b7, 0x0000 },
555 { 0x00b8, 0x0000 },
556 { 0x00ba, 0x0000 },
557 { 0x00bb, 0x0000 },
558 { 0x00be, 0x0000 },
559 { 0x00bf, 0x0000 },
560 { 0x00c0, 0x0000 },
561 { 0x00c1, 0x0000 },
562 { 0x00c5, 0x0000 },
563 { 0x00cb, 0xa02f },
564 { 0x00cc, 0x0000 },
565 { 0x00cd, 0x0e02 },
566 { 0x00d9, 0x08f9 },
567 { 0x00db, 0x0008 },
568 { 0x00dc, 0x00c0 },
569 { 0x00dd, 0x6729 },
570 { 0x00de, 0x3131 },
571 { 0x00df, 0x0008 },
572 { 0x00e0, 0x4000 },
573 { 0x00e1, 0x3131 },
574 { 0x00e2, 0x0043 },
575 { 0x00e4, 0x400b },
576 { 0x00e5, 0x8031 },
577 { 0x00e6, 0x3080 },
578 { 0x00e7, 0x4100 },
579 { 0x00e8, 0x1400 },
580 { 0x00e9, 0xe00a },
581 { 0x00ea, 0x0404 },
582 { 0x00eb, 0x0404 },
583 { 0x00ec, 0xb320 },
584 { 0x00ed, 0x0000 },
585 { 0x00f4, 0x0000 },
586 { 0x00f6, 0x0000 },
587 { 0x00f8, 0x0000 },
588 { 0x00fa, 0x8000 },
589 { 0x00fd, 0x0001 },
590 { 0x00fe, 0x10ec },
591 { 0x00ff, 0x6406 },
592 { 0x0100, 0xa020 },
593 { 0x0108, 0x4444 },
594 { 0x0109, 0x4444 },
595 { 0x010a, 0xaaaa },
596 { 0x010b, 0x00a0 },
597 { 0x010c, 0x8aaa },
598 { 0x010d, 0xaaaa },
599 { 0x010e, 0x2aaa },
600 { 0x010f, 0x002a },
601 { 0x0110, 0xa0a4 },
602 { 0x0111, 0x4602 },
603 { 0x0112, 0x0101 },
604 { 0x0113, 0x2000 },
605 { 0x0114, 0x0000 },
606 { 0x0116, 0x0000 },
607 { 0x0117, 0x0f28 },
608 { 0x0118, 0x0006 },
609 { 0x0125, 0x2424 },
610 { 0x0126, 0x5550 },
611 { 0x0127, 0x0400 },
612 { 0x0128, 0x7711 },
613 { 0x0132, 0x0004 },
614 { 0x0137, 0x5441 },
615 { 0x0139, 0x79a1 },
616 { 0x013a, 0x30c0 },
617 { 0x013b, 0x2000 },
618 { 0x013c, 0x2005 },
619 { 0x013d, 0x30c0 },
620 { 0x013e, 0x0000 },
621 { 0x0140, 0x3700 },
622 { 0x0141, 0x1f00 },
623 { 0x0144, 0x0000 },
624 { 0x0145, 0x0002 },
625 { 0x0146, 0x0000 },
626 { 0x0160, 0x0e80 },
627 { 0x0161, 0x0080 },
628 { 0x0162, 0x0200 },
629 { 0x0163, 0x0800 },
630 { 0x0164, 0x0000 },
631 { 0x0165, 0x0000 },
632 { 0x0166, 0x0000 },
633 { 0x0167, 0x1417 },
634 { 0x0168, 0x0017 },
635 { 0x0169, 0x0017 },
636 { 0x0180, 0x2000 },
637 { 0x0181, 0x0000 },
638 { 0x0182, 0x0000 },
639 { 0x0183, 0x2000 },
640 { 0x0184, 0x0000 },
641 { 0x0185, 0x0000 },
642 { 0x01b0, 0x4b30 },
643 { 0x01b1, 0x0000 },
644 { 0x01b2, 0xd870 },
645 { 0x01b3, 0x0000 },
646 { 0x01b4, 0x0030 },
647 { 0x01b5, 0x5757 },
648 { 0x01b6, 0x5757 },
649 { 0x01b7, 0x5757 },
650 { 0x01b8, 0x5757 },
651 { 0x01c0, 0x433d },
652 { 0x01c1, 0x0540 },
653 { 0x01c2, 0x0000 },
654 { 0x01c3, 0x0000 },
655 { 0x01c4, 0x0000 },
656 { 0x01c5, 0x0009 },
657 { 0x01c6, 0x0018 },
658 { 0x01c7, 0x002a },
659 { 0x01c8, 0x004c },
660 { 0x01c9, 0x0097 },
661 { 0x01ca, 0x01c3 },
662 { 0x01cb, 0x03e9 },
663 { 0x01cc, 0x1389 },
664 { 0x01cd, 0xc351 },
665 { 0x01ce, 0x0000 },
666 { 0x01cf, 0x0000 },
667 { 0x01d0, 0x0000 },
668 { 0x01d1, 0x0000 },
669 { 0x01d2, 0x0000 },
670 { 0x01d3, 0x003c },
671 { 0x01d4, 0x5757 },
672 { 0x01d5, 0x5757 },
673 { 0x01d6, 0x5757 },
674 { 0x01d7, 0x5757 },
675 { 0x01d8, 0x5757 },
676 { 0x01d9, 0x5757 },
677 { 0x01da, 0x0000 },
678 { 0x01db, 0x0000 },
679 { 0x01dd, 0x0009 },
680 { 0x01de, 0x7f00 },
681 { 0x01df, 0x00c8 },
682 { 0x01e0, 0x0691 },
683 { 0x01e1, 0x0000 },
684 { 0x01e2, 0x0000 },
685 { 0x01e3, 0x0000 },
686 { 0x01e4, 0x0000 },
687 { 0x01e5, 0x0040 },
688 { 0x01e6, 0x0000 },
689 { 0x01e7, 0x0000 },
690 { 0x01e8, 0x0000 },
691 { 0x01ea, 0x0000 },
692 { 0x01eb, 0x0000 },
693 { 0x01ec, 0x0000 },
694 { 0x01ed, 0x0000 },
695 { 0x01ee, 0x0000 },
696 { 0x01ef, 0x0000 },
697 { 0x01f0, 0x0000 },
698 { 0x01f1, 0x0000 },
699 { 0x01f2, 0x0000 },
700 { 0x0200, 0x0000 },
701 { 0x0201, 0x2244 },
702 { 0x0202, 0xaaaa },
703 { 0x0250, 0x8010 },
704 { 0x0251, 0x0000 },
705 { 0x0252, 0x028a },
706 { 0x02fa, 0x0000 },
707 { 0x02fb, 0x8089 },
708 { 0x02fc, 0x0300 },
709 { 0x0300, 0x0000 },
710 { 0x03d0, 0x0000 },
711 { 0x03d1, 0x0000 },
712 { 0x03d2, 0x0000 },
713 { 0x03d3, 0x0000 },
714 { 0x03d4, 0x2000 },
715 { 0x03d5, 0x2000 },
716 { 0x03d6, 0x0000 },
717 { 0x03d7, 0x0000 },
718 { 0x03d8, 0x2000 },
719 { 0x03d9, 0x2000 },
720 { 0x03da, 0x2000 },
721 { 0x03db, 0x2000 },
722 { 0x03dc, 0x0000 },
723 { 0x03dd, 0x0000 },
724 { 0x03de, 0x0000 },
725 { 0x03df, 0x2000 },
726 { 0x03e0, 0x0000 },
727 { 0x03e1, 0x0000 },
728 { 0x03e2, 0x0000 },
729 { 0x03e3, 0x0000 },
730 { 0x03e4, 0x0000 },
731 { 0x03e5, 0x0000 },
732 { 0x03e6, 0x0000 },
733 { 0x03e7, 0x0000 },
734 { 0x03e8, 0x0000 },
735 { 0x03e9, 0x0000 },
736 { 0x03ea, 0x0000 },
737 { 0x03eb, 0x0000 },
738 { 0x03ec, 0x0000 },
739 { 0x03ed, 0x0000 },
740 { 0x03ee, 0x0000 },
741 { 0x03ef, 0x0000 },
742 { 0x03f0, 0x0800 },
743 { 0x03f1, 0x0800 },
744 { 0x03f2, 0x0800 },
745 { 0x03f3, 0x0800 },
1374 static const DECLARE_TLV_DB_SCALE(rt5663_hp_vol_tlv, -2400, 150, 0);
1375 static const DECLARE_TLV_DB_SCALE(rt5663_v2_hp_vol_tlv, -2250, 150, 0);
1376 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0);
1377 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
1379 /* {0, +20, +24, +30, +35, +40, +44, +50, +52} dB */
1381 0, 0, TLV_DB_SCALE_ITEM(0, 0, 0),
1382 1, 1, TLV_DB_SCALE_ITEM(2000, 0, 0),
1383 2, 2, TLV_DB_SCALE_ITEM(2400, 0, 0),
1384 3, 5, TLV_DB_SCALE_ITEM(3000, 500, 0),
1385 6, 6, TLV_DB_SCALE_ITEM(4400, 0, 0),
1386 7, 7, TLV_DB_SCALE_ITEM(5000, 0, 0),
1387 8, 8, TLV_DB_SCALE_ITEM(5200, 0, 0)
1468 int val, i = 0, sleep_time[5] = {300, 150, 100, 50, 30}; in rt5663_v2_jack_detect()
1472 snd_soc_component_write(component, RT5663_CBJ_TYPE_2, 0x8040); in rt5663_v2_jack_detect()
1473 snd_soc_component_write(component, RT5663_CBJ_TYPE_3, 0x1484); in rt5663_v2_jack_detect()
1482 snd_soc_component_update_bits(component, RT5663_RECMIX, 0x8, 0x8); in rt5663_v2_jack_detect()
1486 val = snd_soc_component_read(component, RT5663_CBJ_TYPE_2) & 0x0003; in rt5663_v2_jack_detect()
1487 if (val == 0x1 || val == 0x2 || val == 0x3) in rt5663_v2_jack_detect()
1510 snd_soc_component_update_bits(component, RT5663_RECMIX, 0x8, 0x0); in rt5663_v2_jack_detect()
1520 rt5663->jack_type = 0; in rt5663_v2_jack_detect()
1539 int val, i = 0; in rt5663_jack_detect()
1589 if (!(val & 0x80)) in rt5663_jack_detect()
1599 val = snd_soc_component_read(component, RT5663_EM_JACK_TYPE_2) & 0x0003; in rt5663_jack_detect()
1621 0xffff); in rt5663_jack_detect()
1630 0xffff); in rt5663_jack_detect()
1638 RT5663_PWR_VREF2_MASK, 0); in rt5663_jack_detect()
1647 0xffff); in rt5663_jack_detect()
1655 0xffff); in rt5663_jack_detect()
1662 rt5663->jack_type = 0; in rt5663_jack_detect()
1665 RT5663_PWR_VREF2_MASK, 0); in rt5663_jack_detect()
1677 for (i = 0; i < rt5663->pdata.impedance_sensing_num; i++) { in rt5663_impedance_sensing()
1686 rt5663->imp_table[i].dc_offset_l_manual_mic & 0xffff); in rt5663_impedance_sensing()
1690 rt5663->imp_table[i].dc_offset_r_manual_mic & 0xffff); in rt5663_impedance_sensing()
1695 rt5663->imp_table[i].dc_offset_l_manual & 0xffff); in rt5663_impedance_sensing()
1699 rt5663->imp_table[i].dc_offset_r_manual & 0xffff); in rt5663_impedance_sensing()
1709 snd_soc_component_update_bits(component, RT5663_STO_DRE_1, 0x8000, 0); in rt5663_impedance_sensing()
1710 snd_soc_component_write(component, RT5663_ASRC_2, 0); in rt5663_impedance_sensing()
1711 snd_soc_component_write(component, RT5663_STO1_ADC_MIXER, 0x4040); in rt5663_impedance_sensing()
1724 snd_soc_component_update_bits(component, RT5663_ADDA_CLK_1, RT5663_I2S_PD1_MASK, 0); in rt5663_impedance_sensing()
1725 snd_soc_component_write(component, RT5663_PRE_DIV_GATING_1, 0xff00); in rt5663_impedance_sensing()
1726 snd_soc_component_write(component, RT5663_PRE_DIV_GATING_2, 0xfffc); in rt5663_impedance_sensing()
1727 snd_soc_component_write(component, RT5663_HP_CHARGE_PUMP_1, 0x1232); in rt5663_impedance_sensing()
1728 snd_soc_component_write(component, RT5663_HP_LOGIC_2, 0x0005); in rt5663_impedance_sensing()
1729 snd_soc_component_write(component, RT5663_DEPOP_2, 0x3003); in rt5663_impedance_sensing()
1730 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0030, 0x0030); in rt5663_impedance_sensing()
1731 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0003, 0x0003); in rt5663_impedance_sensing()
1747 snd_soc_component_write(component, RT5663_HP_CHARGE_PUMP_2, 0x1371); in rt5663_impedance_sensing()
1748 snd_soc_component_write(component, RT5663_STO_DAC_MIXER, 0); in rt5663_impedance_sensing()
1749 snd_soc_component_write(component, RT5663_BYPASS_STO_DAC, 0x000c); in rt5663_impedance_sensing()
1750 snd_soc_component_write(component, RT5663_HP_BIAS, 0xafaa); in rt5663_impedance_sensing()
1751 snd_soc_component_write(component, RT5663_CHARGE_PUMP_1, 0x2224); in rt5663_impedance_sensing()
1752 snd_soc_component_write(component, RT5663_HP_OUT_EN, 0x8088); in rt5663_impedance_sensing()
1753 snd_soc_component_write(component, RT5663_CHOP_ADC, 0x3000); in rt5663_impedance_sensing()
1754 snd_soc_component_write(component, RT5663_ADDA_RST, 0xc000); in rt5663_impedance_sensing()
1755 snd_soc_component_write(component, RT5663_STO1_HPF_ADJ1, 0x3320); in rt5663_impedance_sensing()
1756 snd_soc_component_write(component, RT5663_HP_CALIB_2, 0x00c9); in rt5663_impedance_sensing()
1757 snd_soc_component_write(component, RT5663_DUMMY_1, 0x004c); in rt5663_impedance_sensing()
1758 snd_soc_component_write(component, RT5663_ANA_BIAS_CUR_1, 0x7733); in rt5663_impedance_sensing()
1759 snd_soc_component_write(component, RT5663_CHARGE_PUMP_2, 0x7777); in rt5663_impedance_sensing()
1760 snd_soc_component_write(component, RT5663_STO_DRE_9, 0x0007); in rt5663_impedance_sensing()
1761 snd_soc_component_write(component, RT5663_STO_DRE_10, 0x0007); in rt5663_impedance_sensing()
1762 snd_soc_component_write(component, RT5663_DUMMY_2, 0x02a4); in rt5663_impedance_sensing()
1763 snd_soc_component_write(component, RT5663_RECMIX, 0x0005); in rt5663_impedance_sensing()
1764 snd_soc_component_write(component, RT5663_HP_IMP_SEN_1, 0x4334); in rt5663_impedance_sensing()
1765 snd_soc_component_update_bits(component, RT5663_IRQ_3, 0x0004, 0x0004); in rt5663_impedance_sensing()
1766 snd_soc_component_write(component, RT5663_HP_LOGIC_1, 0x2200); in rt5663_impedance_sensing()
1767 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x3000, 0x3000); in rt5663_impedance_sensing()
1768 snd_soc_component_write(component, RT5663_HP_LOGIC_1, 0x6200); in rt5663_impedance_sensing()
1770 for (i = 0; i < 100; i++) { in rt5663_impedance_sensing()
1772 if (snd_soc_component_read(component, RT5663_INT_ST_1) & 0x2) in rt5663_impedance_sensing()
1778 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x3000, 0); in rt5663_impedance_sensing()
1779 snd_soc_component_write(component, RT5663_INT_ST_1, 0); in rt5663_impedance_sensing()
1780 snd_soc_component_write(component, RT5663_HP_LOGIC_1, 0); in rt5663_impedance_sensing()
1785 snd_soc_component_write(component, RT5663_DUMMY_2, 0x00a4); in rt5663_impedance_sensing()
1787 snd_soc_component_write(component, RT5663_HP_CALIB_2, 0x00c8); in rt5663_impedance_sensing()
1788 snd_soc_component_write(component, RT5663_STO1_HPF_ADJ1, 0xb320); in rt5663_impedance_sensing()
1789 snd_soc_component_write(component, RT5663_ADDA_RST, 0xe400); in rt5663_impedance_sensing()
1790 snd_soc_component_write(component, RT5663_CHOP_ADC, 0x2000); in rt5663_impedance_sensing()
1791 snd_soc_component_write(component, RT5663_HP_OUT_EN, 0x0008); in rt5663_impedance_sensing()
1793 RT5663_PWR_RECMIX1 | RT5663_PWR_RECMIX2, 0); in rt5663_impedance_sensing()
1797 RT5663_PWR_ADC_R1, 0); in rt5663_impedance_sensing()
1799 RT5663_PWR_ADC_S1F | RT5663_PWR_DAC_S1F, 0); in rt5663_impedance_sensing()
1800 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0003, 0); in rt5663_impedance_sensing()
1801 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0030, 0); in rt5663_impedance_sensing()
1802 snd_soc_component_write(component, RT5663_HP_LOGIC_2, 0); in rt5663_impedance_sensing()
1805 RT5663_PWR_VREF1_MASK | RT5663_PWR_VREF2_MASK, 0); in rt5663_impedance_sensing()
1809 for (i = 0; i < rt5663->pdata.impedance_sensing_num; i++) { in rt5663_impedance_sensing()
1824 rt5663->imp_table[i].dc_offset_l_manual_mic & 0xffff); in rt5663_impedance_sensing()
1828 rt5663->imp_table[i].dc_offset_r_manual_mic & 0xffff); in rt5663_impedance_sensing()
1833 rt5663->imp_table[i].dc_offset_l_manual & 0xffff); in rt5663_impedance_sensing()
1837 rt5663->imp_table[i].dc_offset_r_manual & 0xffff); in rt5663_impedance_sensing()
1840 return 0; in rt5663_impedance_sensing()
1848 dev_dbg(component->dev, "%s: val=0x%x\n", __func__, val); in rt5663_button_detect()
1849 btn_type = val & 0xfff0; in rt5663_button_detect()
1875 rt5663_irq(0, rt5663); in rt5663_set_jack_detect()
1877 return 0; in rt5663_set_jack_detect()
1890 return !(val & 0x2000); in rt5663_check_jd_status()
1892 return !(val & 0x1000); in rt5663_check_jd_status()
1905 int btn_type, report = 0; in rt5663_jack_detect_work()
1912 if (rt5663->jack_type == 0) { in rt5663_jack_detect_work()
1942 case 0x8000: in rt5663_jack_detect_work()
1943 case 0x4000: in rt5663_jack_detect_work()
1944 case 0x2000: in rt5663_jack_detect_work()
1947 case 0x1000: in rt5663_jack_detect_work()
1948 case 0x0800: in rt5663_jack_detect_work()
1949 case 0x0400: in rt5663_jack_detect_work()
1952 case 0x0200: in rt5663_jack_detect_work()
1953 case 0x0100: in rt5663_jack_detect_work()
1954 case 0x0080: in rt5663_jack_detect_work()
1957 case 0x0040: in rt5663_jack_detect_work()
1958 case 0x0020: in rt5663_jack_detect_work()
1959 case 0x0010: in rt5663_jack_detect_work()
1962 case 0x0000: /* unpressed */ in rt5663_jack_detect_work()
1965 btn_type = 0; in rt5663_jack_detect_work()
1967 "Unexpected button code 0x%04x\n", in rt5663_jack_detect_work()
1972 if (btn_type == 0) { in rt5663_jack_detect_work()
1986 report = rt5663_v2_jack_detect(rt5663->component, 0); in rt5663_jack_detect_work()
1989 report = rt5663_jack_detect(rt5663->component, 0); in rt5663_jack_detect_work()
1995 dev_dbg(component->dev, "%s jack report: 0x%04x\n", __func__, report); in rt5663_jack_detect_work()
2014 rt5663_v2_jack_detect(rt5663->component, 0); in rt5663_jd_unplug_work()
2017 rt5663_jack_detect(rt5663->component, 0); in rt5663_jd_unplug_work()
2023 snd_soc_jack_report(rt5663->hs_jack, 0, SND_JACK_HEADSET | in rt5663_jd_unplug_work()
2036 87, 0, dac_vol_tlv),
2042 63, 0, adc_vol_tlv),
2052 RT5663_GAIN_CBJ_SHIFT, 8, 0, in_bst_tlv),
2058 RT5663_GAIN_BST1_SHIFT, 8, 0, in_bst_tlv),
2081 return 0; in rt5663_is_sys_clk_from_pll()
2102 return 0; in rt5663_is_using_asrc()
2115 return 0; in rt5663_is_using_asrc()
2119 val = (snd_soc_component_read(component, reg) >> shift) & 0x7; in rt5663_is_using_asrc()
2124 return 0; in rt5663_is_using_asrc()
2135 RT5663_DA_STO1_TRACK_MASK) ? 1 : 0; in rt5663_i2s_use_asrc()
2139 RT5663_V2_AD_STO1_TRACK_MASK) ? 1 : 0; in rt5663_i2s_use_asrc()
2143 RT5663_AD_STO1_TRACK_MASK) ? 1 : 0; in rt5663_i2s_use_asrc()
2156 return 0; in rt5663_i2s_use_asrc()
2177 unsigned int asrc2_mask = 0; in rt5663_sel_asrc_clk_src()
2178 unsigned int asrc2_value = 0; in rt5663_sel_asrc_clk_src()
2179 unsigned int asrc3_mask = 0; in rt5663_sel_asrc_clk_src()
2180 unsigned int asrc3_value = 0; in rt5663_sel_asrc_clk_src()
2219 return 0; in rt5663_sel_asrc_clk_src()
2278 RT5663_EN_DAC_HPO_SHIFT, 1, 0);
2335 RT5663_DACREF_LDO, 0x3e0e, 0x3a0a); in rt5663_hp_event()
2336 snd_soc_component_write(component, RT5663_DEPOP_2, 0x3003); in rt5663_hp_event()
2339 snd_soc_component_write(component, RT5663_HP_CHARGE_PUMP_2, 0x1371); in rt5663_hp_event()
2340 snd_soc_component_write(component, RT5663_HP_BIAS, 0xabba); in rt5663_hp_event()
2341 snd_soc_component_write(component, RT5663_CHARGE_PUMP_1, 0x2224); in rt5663_hp_event()
2342 snd_soc_component_write(component, RT5663_ANA_BIAS_CUR_1, 0x7766); in rt5663_hp_event()
2343 snd_soc_component_write(component, RT5663_HP_BIAS, 0xafaa); in rt5663_hp_event()
2344 snd_soc_component_write(component, RT5663_CHARGE_PUMP_2, 0x7777); in rt5663_hp_event()
2345 snd_soc_component_update_bits(component, RT5663_STO_DRE_1, 0x8000, in rt5663_hp_event()
2346 0x8000); in rt5663_hp_event()
2347 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x3000, in rt5663_hp_event()
2348 0x3000); in rt5663_hp_event()
2350 RT5663_DIG_VOL_ZCD, 0x00c0, 0x0080); in rt5663_hp_event()
2360 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x3000, 0x0); in rt5663_hp_event()
2364 RT5663_DACREF_LDO, 0x3e0e, 0); in rt5663_hp_event()
2366 RT5663_DIG_VOL_ZCD, 0x00c0, 0); in rt5663_hp_event()
2371 return 0; in rt5663_hp_event()
2374 return 0; in rt5663_hp_event()
2386 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0030, in rt5663_charge_pump_event()
2387 0x0030); in rt5663_charge_pump_event()
2388 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0003, in rt5663_charge_pump_event()
2389 0x0003); in rt5663_charge_pump_event()
2395 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0003, 0); in rt5663_charge_pump_event()
2396 snd_soc_component_update_bits(component, RT5663_DEPOP_1, 0x0030, 0); in rt5663_charge_pump_event()
2401 return 0; in rt5663_charge_pump_event()
2404 return 0; in rt5663_charge_pump_event()
2421 RT5663_PWR_BST2_MASK | RT5663_PWR_BST2_OP_MASK, 0); in rt5663_bst2_power()
2425 return 0; in rt5663_bst2_power()
2428 return 0; in rt5663_bst2_power()
2438 snd_soc_component_write(component, RT5663_PRE_DIV_GATING_1, 0xff00); in rt5663_pre_div_power()
2439 snd_soc_component_write(component, RT5663_PRE_DIV_GATING_2, 0xfffc); in rt5663_pre_div_power()
2443 snd_soc_component_write(component, RT5663_PRE_DIV_GATING_1, 0x0000); in rt5663_pre_div_power()
2444 snd_soc_component_write(component, RT5663_PRE_DIV_GATING_2, 0x0000); in rt5663_pre_div_power()
2448 return 0; in rt5663_pre_div_power()
2451 return 0; in rt5663_pre_div_power()
2455 SND_SOC_DAPM_SUPPLY("PLL", RT5663_PWR_ANLG_3, RT5663_PWR_PLL_SHIFT, 0,
2456 NULL, 0),
2460 RT5663_PWR_MB1_SHIFT, 0),
2462 RT5663_PWR_MB2_SHIFT, 0),
2470 RT5663_PWR_RECMIX1_SHIFT, 0, NULL, 0),
2473 SND_SOC_DAPM_ADC("ADC L", NULL, SND_SOC_NOPM, 0, 0),
2475 RT5663_PWR_ADC_L1_SHIFT, 0, NULL, 0),
2477 RT5663_CKGEN_ADCC_SHIFT, 0, NULL, 0),
2481 0, 0, rt5663_sto1_adc_l_mix,
2486 RT5663_PWR_ADC_S1F_SHIFT, 0, NULL, 0),
2489 SND_SOC_DAPM_SUPPLY("I2S", RT5663_PWR_DIG_1, RT5663_PWR_I2S1_SHIFT, 0,
2490 NULL, 0),
2491 SND_SOC_DAPM_PGA("IF DAC", SND_SOC_NOPM, 0, 0, NULL, 0),
2492 SND_SOC_DAPM_PGA("IF1 DAC1 L", SND_SOC_NOPM, 0, 0, NULL, 0),
2493 SND_SOC_DAPM_PGA("IF1 DAC1 R", SND_SOC_NOPM, 0, 0, NULL, 0),
2494 SND_SOC_DAPM_PGA("IF1 ADC1", SND_SOC_NOPM, 0, 0, NULL, 0),
2495 SND_SOC_DAPM_PGA("IF ADC", SND_SOC_NOPM, 0, 0, NULL, 0),
2498 SND_SOC_DAPM_AIF_IN("AIFRX", "AIF Playback", 0, SND_SOC_NOPM, 0, 0),
2499 SND_SOC_DAPM_AIF_OUT("AIFTX", "AIF Capture", 0, SND_SOC_NOPM, 0, 0),
2502 SND_SOC_DAPM_MIXER("ADDA MIXL", SND_SOC_NOPM, 0, 0, rt5663_adda_l_mix,
2504 SND_SOC_DAPM_MIXER("ADDA MIXR", SND_SOC_NOPM, 0, 0, rt5663_adda_r_mix,
2506 SND_SOC_DAPM_PGA("DAC L1", SND_SOC_NOPM, 0, 0, NULL, 0),
2507 SND_SOC_DAPM_PGA("DAC R1", SND_SOC_NOPM, 0, 0, NULL, 0),
2511 RT5663_PWR_DAC_S1F_SHIFT, 0, NULL, 0),
2512 SND_SOC_DAPM_MIXER("STO1 DAC MIXL", SND_SOC_NOPM, 0, 0,
2514 SND_SOC_DAPM_MIXER("STO1 DAC MIXR", SND_SOC_NOPM, 0, 0,
2519 RT5663_PWR_DAC_L1_SHIFT, 0, NULL, 0),
2521 RT5663_PWR_DAC_R1_SHIFT, 0, NULL, 0),
2522 SND_SOC_DAPM_DAC("DAC L", NULL, SND_SOC_NOPM, 0, 0),
2523 SND_SOC_DAPM_DAC("DAC R", NULL, SND_SOC_NOPM, 0, 0),
2526 SND_SOC_DAPM_SUPPLY("HP Charge Pump", SND_SOC_NOPM, 0, 0,
2529 SND_SOC_DAPM_PGA_S("HP Amp", 1, SND_SOC_NOPM, 0, 0, rt5663_hp_event,
2539 RT5663_PWR_LDO2_SHIFT, 0, NULL, 0),
2541 RT5663_V2_PWR_MIC_DET_SHIFT, 0, NULL, 0),
2543 RT5663_PWR_LDO_DACREF_SHIFT, 0, NULL, 0),
2547 RT5663_I2S1_ASRC_SHIFT, 0, NULL, 0),
2549 RT5663_DAC_STO1_ASRC_SHIFT, 0, NULL, 0),
2551 RT5663_ADC_STO1_ASRC_SHIFT, 0, NULL, 0),
2558 SND_SOC_DAPM_PGA("BST1 CBJ", SND_SOC_NOPM, 0, 0, NULL, 0),
2560 RT5663_PWR_CBJ_SHIFT, 0, NULL, 0),
2561 SND_SOC_DAPM_PGA("BST2", SND_SOC_NOPM, 0, 0, NULL, 0),
2562 SND_SOC_DAPM_SUPPLY("BST2 Power", SND_SOC_NOPM, 0, 0,
2567 SND_SOC_DAPM_MIXER("RECMIX1L", SND_SOC_NOPM, 0, 0, rt5663_recmix1l,
2569 SND_SOC_DAPM_MIXER("RECMIX1R", SND_SOC_NOPM, 0, 0, rt5663_recmix1r,
2572 RT5663_PWR_RECMIX2_SHIFT, 0, NULL, 0),
2575 SND_SOC_DAPM_ADC("ADC R", NULL, SND_SOC_NOPM, 0, 0),
2577 RT5663_PWR_ADC_R1_SHIFT, 0, NULL, 0),
2581 RT5663_STO1_ADC_L1_SRC_SHIFT, 0, NULL, 0),
2583 RT5663_STO1_ADC_R1_SRC_SHIFT, 0, NULL, 0),
2585 RT5663_STO1_ADC_L2_SRC_SHIFT, 1, NULL, 0),
2587 RT5663_STO1_ADC_R2_SRC_SHIFT, 1, NULL, 0),
2589 SND_SOC_DAPM_MUX("STO1 ADC L Mux", SND_SOC_NOPM, 0, 0,
2591 SND_SOC_DAPM_MUX("STO1 ADC R Mux", SND_SOC_NOPM, 0, 0,
2595 SND_SOC_DAPM_MIXER("STO1 ADC MIXR", SND_SOC_NOPM, 0, 0,
2600 RT5663_CKGEN_DAC1_SHIFT, 0, NULL, 0),
2603 SND_SOC_DAPM_SWITCH("HPO Playback", SND_SOC_NOPM, 0, 0,
2609 SND_SOC_DAPM_SUPPLY("Pre Div Power", SND_SOC_NOPM, 0, 0,
2615 RT5663_PWR_LDO_DACREF_SHIFT, 0, NULL, 0),
2619 RT5663_I2S1_ASRC_SHIFT, 0, NULL, 0),
2621 RT5663_DAC_STO1_ASRC_SHIFT, 0, NULL, 0),
2623 RT5663_ADC_STO1_ASRC_SHIFT, 0, NULL, 0),
2626 SND_SOC_DAPM_PGA("BST1", SND_SOC_NOPM, 0, 0, NULL, 0),
2629 SND_SOC_DAPM_PGA("STO1 ADC L1", SND_SOC_NOPM, 0, 0, NULL, 0),
2630 SND_SOC_DAPM_PGA("STO1 ADC L2", SND_SOC_NOPM, 0, 0, NULL, 0),
2633 SND_SOC_DAPM_MUX("DAC L Mux", SND_SOC_NOPM, 0, 0, &rt5663_alg_dacl_mux),
2634 SND_SOC_DAPM_MUX("DAC R Mux", SND_SOC_NOPM, 0, 0, &rt5663_alg_dacr_mux),
2768 unsigned int val_len = 0; in rt5663_hw_params()
2777 if (pre_div < 0) { in rt5663_hw_params()
2808 return 0; in rt5663_hw_params()
2814 unsigned int reg_val = 0; in rt5663_set_dai_fmt()
2855 return 0; in rt5663_set_dai_fmt()
2863 unsigned int reg_val = 0; in rt5663_set_dai_sysclk()
2866 return 0; in rt5663_set_dai_sysclk()
2890 return 0; in rt5663_set_dai_sysclk()
2904 return 0; in rt5663_set_dai_pll()
2909 rt5663->pll_in = 0; in rt5663_set_dai_pll()
2910 rt5663->pll_out = 0; in rt5663_set_dai_pll()
2913 return 0; in rt5663_set_dai_pll()
2932 val = 0x0; in rt5663_set_dai_pll()
2935 val = 0x1; in rt5663_set_dai_pll()
2944 if (ret < 0) { in rt5663_set_dai_pll()
2950 (pll_code.m_bp ? 0 : pll_code.m_code), pll_code.n_code, in rt5663_set_dai_pll()
2956 ((pll_code.m_bp ? 0 : pll_code.m_code) << RT5663_PLL_M_SHIFT) | in rt5663_set_dai_pll()
2963 return 0; in rt5663_set_dai_pll()
2971 unsigned int val = 0, reg; in rt5663_set_tdm_slot()
3030 return 0; in rt5663_set_tdm_slot()
3072 return 0; in rt5663_set_bclk_ratio()
3126 RT5663_PWR_MB_MASK, 0); in rt5663_set_bias_level()
3138 return 0; in rt5663_set_bias_level()
3175 return 0; in rt5663_probe()
3182 regmap_write(rt5663->regmap, RT5663_RESET, 0); in rt5663_remove()
3199 return 0; in rt5663_suspend()
3209 rt5663_irq(0, rt5663); in rt5663_resume()
3214 return 0; in rt5663_resume()
3278 .max_register = 0x07fa,
3291 .max_register = 0x03f3,
3305 .max_register = 0x03f3,
3325 { "10EC5663", 0},
3333 regmap_write(rt5663->regmap, RT5663_BIAS_CUR_8, 0xa402); in rt5663_v2_calibrate()
3334 regmap_write(rt5663->regmap, RT5663_PWR_DIG_1, 0x0100); in rt5663_v2_calibrate()
3335 regmap_write(rt5663->regmap, RT5663_RECMIX, 0x4040); in rt5663_v2_calibrate()
3336 regmap_write(rt5663->regmap, RT5663_DIG_MISC, 0x0001); in rt5663_v2_calibrate()
3337 regmap_write(rt5663->regmap, RT5663_RC_CLK, 0x0380); in rt5663_v2_calibrate()
3338 regmap_write(rt5663->regmap, RT5663_GLB_CLK, 0x8000); in rt5663_v2_calibrate()
3339 regmap_write(rt5663->regmap, RT5663_ADDA_CLK_1, 0x1000); in rt5663_v2_calibrate()
3340 regmap_write(rt5663->regmap, RT5663_CHOP_DAC_L, 0x3030); in rt5663_v2_calibrate()
3341 regmap_write(rt5663->regmap, RT5663_CALIB_ADC, 0x3c05); in rt5663_v2_calibrate()
3342 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_1, 0xa23e); in rt5663_v2_calibrate()
3344 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_1, 0xf23e); in rt5663_v2_calibrate()
3345 regmap_write(rt5663->regmap, RT5663_HP_CALIB_2, 0x0321); in rt5663_v2_calibrate()
3346 regmap_write(rt5663->regmap, RT5663_HP_CALIB_1, 0xfc00); in rt5663_v2_calibrate()
3354 regmap_write(rt5663->regmap, RT5663_RESET, 0x0000); in rt5663_calibrate()
3356 regmap_write(rt5663->regmap, RT5663_ANA_BIAS_CUR_4, 0x00a1); in rt5663_calibrate()
3357 regmap_write(rt5663->regmap, RT5663_RC_CLK, 0x0380); in rt5663_calibrate()
3358 regmap_write(rt5663->regmap, RT5663_GLB_CLK, 0x8000); in rt5663_calibrate()
3359 regmap_write(rt5663->regmap, RT5663_ADDA_CLK_1, 0x1000); in rt5663_calibrate()
3360 regmap_write(rt5663->regmap, RT5663_VREF_RECMIX, 0x0032); in rt5663_calibrate()
3361 regmap_write(rt5663->regmap, RT5663_HP_IMP_SEN_19, 0x000c); in rt5663_calibrate()
3362 regmap_write(rt5663->regmap, RT5663_DUMMY_1, 0x0324); in rt5663_calibrate()
3363 regmap_write(rt5663->regmap, RT5663_DIG_MISC, 0x8001); in rt5663_calibrate()
3364 regmap_write(rt5663->regmap, RT5663_VREFADJ_OP, 0x0f28); in rt5663_calibrate()
3365 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_1, 0xa23b); in rt5663_calibrate()
3367 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_1, 0xf23b); in rt5663_calibrate()
3368 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_2, 0x8000); in rt5663_calibrate()
3369 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_3, 0x0008); in rt5663_calibrate()
3370 regmap_write(rt5663->regmap, RT5663_PRE_DIV_GATING_1, 0xffff); in rt5663_calibrate()
3371 regmap_write(rt5663->regmap, RT5663_PRE_DIV_GATING_2, 0xffff); in rt5663_calibrate()
3372 regmap_write(rt5663->regmap, RT5663_CBJ_1, 0x8c10); in rt5663_calibrate()
3373 regmap_write(rt5663->regmap, RT5663_IL_CMD_2, 0x00c1); in rt5663_calibrate()
3374 regmap_write(rt5663->regmap, RT5663_EM_JACK_TYPE_1, 0xb880); in rt5663_calibrate()
3375 regmap_write(rt5663->regmap, RT5663_EM_JACK_TYPE_2, 0x4110); in rt5663_calibrate()
3376 regmap_write(rt5663->regmap, RT5663_EM_JACK_TYPE_2, 0x4118); in rt5663_calibrate()
3378 count = 0; in rt5663_calibrate()
3381 if (!(value & 0x80)) in rt5663_calibrate()
3390 regmap_write(rt5663->regmap, RT5663_HP_IMP_SEN_19, 0x0000); in rt5663_calibrate()
3391 regmap_write(rt5663->regmap, RT5663_DEPOP_2, 0x3003); in rt5663_calibrate()
3392 regmap_write(rt5663->regmap, RT5663_DEPOP_1, 0x0038); in rt5663_calibrate()
3393 regmap_write(rt5663->regmap, RT5663_DEPOP_1, 0x003b); in rt5663_calibrate()
3394 regmap_write(rt5663->regmap, RT5663_PWR_DIG_2, 0x8400); in rt5663_calibrate()
3395 regmap_write(rt5663->regmap, RT5663_PWR_DIG_1, 0x8df8); in rt5663_calibrate()
3396 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_2, 0x8003); in rt5663_calibrate()
3397 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_3, 0x018c); in rt5663_calibrate()
3398 regmap_write(rt5663->regmap, RT5663_HP_CHARGE_PUMP_1, 0x1e32); in rt5663_calibrate()
3399 regmap_write(rt5663->regmap, RT5663_DUMMY_2, 0x8089); in rt5663_calibrate()
3400 regmap_write(rt5663->regmap, RT5663_DACREF_LDO, 0x3b0b); in rt5663_calibrate()
3402 regmap_write(rt5663->regmap, RT5663_STO_DAC_MIXER, 0x0000); in rt5663_calibrate()
3403 regmap_write(rt5663->regmap, RT5663_BYPASS_STO_DAC, 0x000c); in rt5663_calibrate()
3404 regmap_write(rt5663->regmap, RT5663_HP_BIAS, 0xafaa); in rt5663_calibrate()
3405 regmap_write(rt5663->regmap, RT5663_CHARGE_PUMP_1, 0x2224); in rt5663_calibrate()
3406 regmap_write(rt5663->regmap, RT5663_HP_OUT_EN, 0x8088); in rt5663_calibrate()
3407 regmap_write(rt5663->regmap, RT5663_STO_DRE_9, 0x0017); in rt5663_calibrate()
3408 regmap_write(rt5663->regmap, RT5663_STO_DRE_10, 0x0017); in rt5663_calibrate()
3409 regmap_write(rt5663->regmap, RT5663_STO1_ADC_MIXER, 0x4040); in rt5663_calibrate()
3410 regmap_write(rt5663->regmap, RT5663_CHOP_ADC, 0x3000); in rt5663_calibrate()
3411 regmap_write(rt5663->regmap, RT5663_RECMIX, 0x0005); in rt5663_calibrate()
3412 regmap_write(rt5663->regmap, RT5663_ADDA_RST, 0xc000); in rt5663_calibrate()
3413 regmap_write(rt5663->regmap, RT5663_STO1_HPF_ADJ1, 0x3320); in rt5663_calibrate()
3414 regmap_write(rt5663->regmap, RT5663_HP_CALIB_2, 0x00c9); in rt5663_calibrate()
3415 regmap_write(rt5663->regmap, RT5663_DUMMY_1, 0x004c); in rt5663_calibrate()
3416 regmap_write(rt5663->regmap, RT5663_ANA_BIAS_CUR_1, 0x1111); in rt5663_calibrate()
3417 regmap_write(rt5663->regmap, RT5663_BIAS_CUR_8, 0x4402); in rt5663_calibrate()
3418 regmap_write(rt5663->regmap, RT5663_CHARGE_PUMP_2, 0x3311); in rt5663_calibrate()
3419 regmap_write(rt5663->regmap, RT5663_HP_CALIB_1, 0x0069); in rt5663_calibrate()
3420 regmap_write(rt5663->regmap, RT5663_HP_CALIB_3, 0x06ce); in rt5663_calibrate()
3421 regmap_write(rt5663->regmap, RT5663_HP_CALIB_1_1, 0x6800); in rt5663_calibrate()
3422 regmap_write(rt5663->regmap, RT5663_CHARGE_PUMP_2, 0x1100); in rt5663_calibrate()
3423 regmap_write(rt5663->regmap, RT5663_HP_CALIB_7, 0x0057); in rt5663_calibrate()
3424 regmap_write(rt5663->regmap, RT5663_HP_CALIB_1_1, 0xe800); in rt5663_calibrate()
3426 count = 0; in rt5663_calibrate()
3429 if (value & 0x8000) in rt5663_calibrate()
3439 regmap_write(rt5663->regmap, RT5663_HP_CALIB_1_1, 0x6200); in rt5663_calibrate()
3440 regmap_write(rt5663->regmap, RT5663_HP_CALIB_7, 0x0059); in rt5663_calibrate()
3441 regmap_write(rt5663->regmap, RT5663_HP_CALIB_1_1, 0xe200); in rt5663_calibrate()
3443 count = 0; in rt5663_calibrate()
3446 if (value & 0x8000) in rt5663_calibrate()
3456 regmap_write(rt5663->regmap, RT5663_EM_JACK_TYPE_1, 0xb8e0); in rt5663_calibrate()
3458 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_1, 0x003b); in rt5663_calibrate()
3460 regmap_write(rt5663->regmap, RT5663_PWR_DIG_1, 0x0000); in rt5663_calibrate()
3462 regmap_write(rt5663->regmap, RT5663_DEPOP_1, 0x000b); in rt5663_calibrate()
3464 regmap_write(rt5663->regmap, RT5663_DEPOP_1, 0x0008); in rt5663_calibrate()
3466 regmap_write(rt5663->regmap, RT5663_PWR_ANLG_2, 0x0000); in rt5663_calibrate()
3499 return 0; in rt5663_parse_dp()
3526 for (i = 0; i < ARRAY_SIZE(rt5663->supplies); i++) in rt5663_i2c_probe()
3538 for (i = 0; i < ARRAY_SIZE(rt5663->supplies); i++) { in rt5663_i2c_probe()
3541 if (ret < 0) { in rt5663_i2c_probe()
3600 regmap_write(rt5663->regmap, RT5663_RESET, 0); in rt5663_i2c_probe()
3613 regmap_write(rt5663->regmap, RT5663_RESET, 0); in rt5663_i2c_probe()
3622 if (ret != 0) in rt5663_i2c_probe()
3639 regmap_write(rt5663->regmap, RT5663_BIAS_CUR_8, 0xa402); in rt5663_i2c_probe()
3673 regmap_write(rt5663->regmap, RT5663_VREF_RECMIX, 0x0032); in rt5663_i2c_probe()
3709 return 0; in rt5663_i2c_probe()
3738 regmap_write(rt5663->regmap, RT5663_RESET, 0); in rt5663_i2c_shutdown()