Lines Matching +full:0 +full:x17cd
37 { RT1011_POWER_9, 0xa840 },
39 { RT1011_ADC_SET_5, 0x0a20 },
40 { RT1011_DAC_SET_2, 0xa032 },
42 { RT1011_SPK_PRO_DC_DET_1, 0xb00c },
43 { RT1011_SPK_PRO_DC_DET_2, 0xcccc },
45 { RT1011_A_TIMING_1, 0x6054 },
47 { RT1011_POWER_7, 0x3e55 },
48 { RT1011_POWER_8, 0x0520 },
49 { RT1011_BOOST_CON_1, 0xe188 },
50 { RT1011_POWER_4, 0x16f2 },
52 { RT1011_CROSS_BQ_SET_1, 0x0004 },
53 { RT1011_SIL_DET, 0xc313 },
54 { RT1011_SINE_GEN_REG_1, 0x0707 },
56 { RT1011_DC_CALIB_CLASSD_3, 0xcb00 },
58 { RT1011_DAC_SET_1, 0xe702 },
59 { RT1011_DAC_SET_3, 0x2004 },
63 {0x0000, 0x0000},
64 {0x0002, 0x0000},
65 {0x0004, 0xa000},
66 {0x0006, 0x0000},
67 {0x0008, 0x0003},
68 {0x000a, 0x087e},
69 {0x000c, 0x0020},
70 {0x000e, 0x9002},
71 {0x0010, 0x0000},
72 {0x0012, 0x0000},
73 {0x0020, 0x0c40},
74 {0x0022, 0x4313},
75 {0x0076, 0x0000},
76 {0x0078, 0x0000},
77 {0x007a, 0x0000},
78 {0x007c, 0x10ec},
79 {0x007d, 0x1011},
80 {0x00f0, 0x5000},
81 {0x00f2, 0x0374},
82 {0x00f3, 0x0000},
83 {0x00f4, 0x0000},
84 {0x0100, 0x0038},
85 {0x0102, 0xff02},
86 {0x0104, 0x0232},
87 {0x0106, 0x200c},
88 {0x0107, 0x0000},
89 {0x0108, 0x2f2f},
90 {0x010a, 0x2f2f},
91 {0x010c, 0x002f},
92 {0x010e, 0xe000},
93 {0x0110, 0x0820},
94 {0x0111, 0x4010},
95 {0x0112, 0x0000},
96 {0x0114, 0x0000},
97 {0x0116, 0x0000},
98 {0x0118, 0x0000},
99 {0x011a, 0x0101},
100 {0x011c, 0x4567},
101 {0x011e, 0x0000},
102 {0x0120, 0x0000},
103 {0x0122, 0x0000},
104 {0x0124, 0x0123},
105 {0x0126, 0x4567},
106 {0x0200, 0x0000},
107 {0x0300, 0xffdd},
108 {0x0302, 0x001e},
109 {0x0311, 0x0000},
110 {0x0313, 0x5254},
111 {0x0314, 0x0062},
112 {0x0316, 0x7f40},
113 {0x0319, 0x000f},
114 {0x031a, 0xffff},
115 {0x031b, 0x0000},
116 {0x031c, 0x009f},
117 {0x031d, 0xffff},
118 {0x031e, 0x0000},
119 {0x031f, 0x0000},
120 {0x0320, 0xe31c},
121 {0x0321, 0x0000},
122 {0x0322, 0x0000},
123 {0x0324, 0x0000},
124 {0x0326, 0x0002},
125 {0x0328, 0x20b2},
126 {0x0329, 0x0175},
127 {0x032a, 0x32ad},
128 {0x032b, 0x3455},
129 {0x032c, 0x0528},
130 {0x032d, 0xa800},
131 {0x032e, 0x030e},
132 {0x0330, 0x2080},
133 {0x0332, 0x0034},
134 {0x0334, 0x0000},
135 {0x0508, 0x0010},
136 {0x050a, 0x0018},
137 {0x050c, 0x0000},
138 {0x050d, 0xffff},
139 {0x050e, 0x1f1f},
140 {0x050f, 0x04ff},
141 {0x0510, 0x4020},
142 {0x0511, 0x01f0},
143 {0x0512, 0x0702},
144 {0x0516, 0xbb80},
145 {0x0517, 0xffff},
146 {0x0518, 0xffff},
147 {0x0519, 0x307f},
148 {0x051a, 0xffff},
149 {0x051b, 0x0000},
150 {0x051c, 0x0000},
151 {0x051d, 0x2000},
152 {0x051e, 0x0000},
153 {0x051f, 0x0000},
154 {0x0520, 0x0000},
155 {0x0521, 0x1001},
156 {0x0522, 0x7fff},
157 {0x0524, 0x7fff},
158 {0x0526, 0x0000},
159 {0x0528, 0x0000},
160 {0x052a, 0x0000},
161 {0x0530, 0x0401},
162 {0x0532, 0x3000},
163 {0x0534, 0x0000},
164 {0x0535, 0xffff},
165 {0x0536, 0x101c},
166 {0x0538, 0x1814},
167 {0x053a, 0x100c},
168 {0x053c, 0x0804},
169 {0x053d, 0x0000},
170 {0x053e, 0x0000},
171 {0x053f, 0x0000},
172 {0x0540, 0x0000},
173 {0x0541, 0x0000},
174 {0x0542, 0x0000},
175 {0x0543, 0x0000},
176 {0x0544, 0x001c},
177 {0x0545, 0x1814},
178 {0x0546, 0x100c},
179 {0x0547, 0x0804},
180 {0x0548, 0x0000},
181 {0x0549, 0x0000},
182 {0x054a, 0x0000},
183 {0x054b, 0x0000},
184 {0x054c, 0x0000},
185 {0x054d, 0x0000},
186 {0x054e, 0x0000},
187 {0x054f, 0x0000},
188 {0x0566, 0x0000},
189 {0x0568, 0x20f1},
190 {0x056a, 0x0007},
191 {0x0600, 0x9d00},
192 {0x0611, 0x2000},
193 {0x0612, 0x505f},
194 {0x0613, 0x0444},
195 {0x0614, 0x4000},
196 {0x0615, 0x4004},
197 {0x0616, 0x0606},
198 {0x0617, 0x8904},
199 {0x0618, 0xe021},
200 {0x0621, 0x2000},
201 {0x0622, 0x505f},
202 {0x0623, 0x0444},
203 {0x0624, 0x4000},
204 {0x0625, 0x4004},
205 {0x0626, 0x0606},
206 {0x0627, 0x8704},
207 {0x0628, 0xe021},
208 {0x0631, 0x2000},
209 {0x0632, 0x517f},
210 {0x0633, 0x0440},
211 {0x0634, 0x4000},
212 {0x0635, 0x4104},
213 {0x0636, 0x0306},
214 {0x0637, 0x8904},
215 {0x0638, 0xe021},
216 {0x0702, 0x0014},
217 {0x0704, 0x0000},
218 {0x0706, 0x0014},
219 {0x0708, 0x0000},
220 {0x070a, 0x0000},
221 {0x0710, 0x0200},
222 {0x0711, 0x0000},
223 {0x0712, 0x0200},
224 {0x0713, 0x0000},
225 {0x0720, 0x0200},
226 {0x0721, 0x0000},
227 {0x0722, 0x0000},
228 {0x0723, 0x0000},
229 {0x0724, 0x0000},
230 {0x0725, 0x0000},
231 {0x0726, 0x0000},
232 {0x0727, 0x0000},
233 {0x0728, 0x0000},
234 {0x0729, 0x0000},
235 {0x0730, 0x0200},
236 {0x0731, 0x0000},
237 {0x0732, 0x0000},
238 {0x0733, 0x0000},
239 {0x0734, 0x0000},
240 {0x0735, 0x0000},
241 {0x0736, 0x0000},
242 {0x0737, 0x0000},
243 {0x0738, 0x0000},
244 {0x0739, 0x0000},
245 {0x0740, 0x0200},
246 {0x0741, 0x0000},
247 {0x0742, 0x0000},
248 {0x0743, 0x0000},
249 {0x0744, 0x0000},
250 {0x0745, 0x0000},
251 {0x0746, 0x0000},
252 {0x0747, 0x0000},
253 {0x0748, 0x0000},
254 {0x0749, 0x0000},
255 {0x0750, 0x0200},
256 {0x0751, 0x0000},
257 {0x0752, 0x0000},
258 {0x0753, 0x0000},
259 {0x0754, 0x0000},
260 {0x0755, 0x0000},
261 {0x0756, 0x0000},
262 {0x0757, 0x0000},
263 {0x0758, 0x0000},
264 {0x0759, 0x0000},
265 {0x0760, 0x0200},
266 {0x0761, 0x0000},
267 {0x0762, 0x0000},
268 {0x0763, 0x0000},
269 {0x0764, 0x0000},
270 {0x0765, 0x0000},
271 {0x0766, 0x0000},
272 {0x0767, 0x0000},
273 {0x0768, 0x0000},
274 {0x0769, 0x0000},
275 {0x0770, 0x0200},
276 {0x0771, 0x0000},
277 {0x0772, 0x0000},
278 {0x0773, 0x0000},
279 {0x0774, 0x0000},
280 {0x0775, 0x0000},
281 {0x0776, 0x0000},
282 {0x0777, 0x0000},
283 {0x0778, 0x0000},
284 {0x0779, 0x0000},
285 {0x0780, 0x0200},
286 {0x0781, 0x0000},
287 {0x0782, 0x0000},
288 {0x0783, 0x0000},
289 {0x0784, 0x0000},
290 {0x0785, 0x0000},
291 {0x0786, 0x0000},
292 {0x0787, 0x0000},
293 {0x0788, 0x0000},
294 {0x0789, 0x0000},
295 {0x0790, 0x0200},
296 {0x0791, 0x0000},
297 {0x0792, 0x0000},
298 {0x0793, 0x0000},
299 {0x0794, 0x0000},
300 {0x0795, 0x0000},
301 {0x0796, 0x0000},
302 {0x0797, 0x0000},
303 {0x0798, 0x0000},
304 {0x0799, 0x0000},
305 {0x07a0, 0x0200},
306 {0x07a1, 0x0000},
307 {0x07a2, 0x0000},
308 {0x07a3, 0x0000},
309 {0x07a4, 0x0000},
310 {0x07a5, 0x0000},
311 {0x07a6, 0x0000},
312 {0x07a7, 0x0000},
313 {0x07a8, 0x0000},
314 {0x07a9, 0x0000},
315 {0x07b0, 0x0200},
316 {0x07b1, 0x0000},
317 {0x07b2, 0x0000},
318 {0x07b3, 0x0000},
319 {0x07b4, 0x0000},
320 {0x07b5, 0x0000},
321 {0x07b6, 0x0000},
322 {0x07b7, 0x0000},
323 {0x07b8, 0x0000},
324 {0x07b9, 0x0000},
325 {0x07c0, 0x0200},
326 {0x07c1, 0x0000},
327 {0x07c2, 0x0000},
328 {0x07c3, 0x0000},
329 {0x07c4, 0x0000},
330 {0x07c5, 0x0000},
331 {0x07c6, 0x0000},
332 {0x07c7, 0x0000},
333 {0x07c8, 0x0000},
334 {0x07c9, 0x0000},
335 {0x1000, 0x4040},
336 {0x1002, 0x6505},
337 {0x1004, 0x5405},
338 {0x1006, 0x5555},
339 {0x1007, 0x003f},
340 {0x1008, 0x7fd7},
341 {0x1009, 0x770f},
342 {0x100a, 0xfffe},
343 {0x100b, 0xe000},
344 {0x100c, 0x0000},
345 {0x100d, 0x0007},
346 {0x1010, 0xa433},
347 {0x1020, 0x0000},
348 {0x1022, 0x0000},
349 {0x1024, 0x0000},
350 {0x1200, 0x5a01},
351 {0x1202, 0x6324},
352 {0x1204, 0x0b00},
353 {0x1206, 0x0000},
354 {0x1208, 0x0000},
355 {0x120a, 0x0024},
356 {0x120c, 0x0000},
357 {0x120e, 0x000e},
358 {0x1210, 0x0000},
359 {0x1212, 0x0000},
360 {0x1300, 0x0701},
361 {0x1302, 0x12f9},
362 {0x1304, 0x3405},
363 {0x1305, 0x0844},
364 {0x1306, 0x5611},
365 {0x1308, 0x555e},
366 {0x130a, 0xa605},
367 {0x130c, 0x2000},
368 {0x130e, 0x0000},
369 {0x130f, 0x0001},
370 {0x1310, 0xaa48},
371 {0x1312, 0x0285},
372 {0x1314, 0xaaaa},
373 {0x1316, 0xaaa0},
374 {0x1318, 0x2aaa},
375 {0x131a, 0xaa07},
376 {0x1322, 0x0029},
377 {0x1323, 0x4a52},
378 {0x1324, 0x002c},
379 {0x1325, 0x0b02},
380 {0x1326, 0x002d},
381 {0x1327, 0x6b5a},
382 {0x1328, 0x002e},
383 {0x1329, 0xcbb2},
384 {0x132a, 0x0030},
385 {0x132b, 0x2c0b},
386 {0x1330, 0x0031},
387 {0x1331, 0x8c63},
388 {0x1332, 0x0032},
389 {0x1333, 0xecbb},
390 {0x1334, 0x0034},
391 {0x1335, 0x4d13},
392 {0x1336, 0x0037},
393 {0x1337, 0x0dc3},
394 {0x1338, 0x003d},
395 {0x1339, 0xef7b},
396 {0x133a, 0x0044},
397 {0x133b, 0xd134},
398 {0x133c, 0x0047},
399 {0x133d, 0x91e4},
400 {0x133e, 0x004d},
401 {0x133f, 0xc370},
402 {0x1340, 0x0053},
403 {0x1341, 0xf4fd},
404 {0x1342, 0x0060},
405 {0x1343, 0x5816},
406 {0x1344, 0x006c},
407 {0x1345, 0xbb2e},
408 {0x1346, 0x0072},
409 {0x1347, 0xecbb},
410 {0x1348, 0x0076},
411 {0x1349, 0x5d97},
412 {0x1500, 0x0702},
413 {0x1502, 0x002f},
414 {0x1504, 0x0000},
415 {0x1510, 0x0064},
416 {0x1512, 0x0000},
417 {0x1514, 0xdf47},
418 {0x1516, 0x079c},
419 {0x1518, 0xfbf5},
420 {0x151a, 0x00bc},
421 {0x151c, 0x3b85},
422 {0x151e, 0x02b3},
423 {0x1520, 0x3333},
424 {0x1522, 0x0000},
425 {0x1524, 0x4000},
426 {0x1528, 0x0064},
427 {0x152a, 0x0000},
428 {0x152c, 0x0000},
429 {0x152e, 0x0000},
430 {0x1530, 0x0000},
431 {0x1532, 0x0000},
432 {0x1534, 0x0000},
433 {0x1536, 0x0000},
434 {0x1538, 0x0040},
435 {0x1539, 0x0000},
436 {0x153a, 0x0040},
437 {0x153b, 0x0000},
438 {0x153c, 0x0064},
439 {0x153e, 0x0bf9},
440 {0x1540, 0xb2a9},
441 {0x1544, 0x0200},
442 {0x1546, 0x0000},
443 {0x1548, 0x00ca},
444 {0x1552, 0x03ff},
445 {0x1554, 0x017f},
446 {0x1556, 0x017f},
447 {0x155a, 0x0000},
448 {0x155c, 0x0000},
449 {0x1560, 0x0040},
450 {0x1562, 0x0000},
451 {0x1570, 0x03ff},
452 {0x1571, 0xdcff},
453 {0x1572, 0x1e00},
454 {0x1573, 0x224f},
455 {0x1574, 0x0000},
456 {0x1575, 0x0000},
457 {0x1576, 0x1e00},
458 {0x1577, 0x0000},
459 {0x1578, 0x0000},
460 {0x1579, 0x1128},
461 {0x157a, 0x03ff},
462 {0x157b, 0xdcff},
463 {0x157c, 0x1e00},
464 {0x157d, 0x224f},
465 {0x157e, 0x0000},
466 {0x157f, 0x0000},
467 {0x1580, 0x1e00},
468 {0x1581, 0x0000},
469 {0x1582, 0x0000},
470 {0x1583, 0x1128},
471 {0x1590, 0x03ff},
472 {0x1591, 0xdcff},
473 {0x1592, 0x1e00},
474 {0x1593, 0x224f},
475 {0x1594, 0x0000},
476 {0x1595, 0x0000},
477 {0x1596, 0x1e00},
478 {0x1597, 0x0000},
479 {0x1598, 0x0000},
480 {0x1599, 0x1128},
481 {0x159a, 0x03ff},
482 {0x159b, 0xdcff},
483 {0x159c, 0x1e00},
484 {0x159d, 0x224f},
485 {0x159e, 0x0000},
486 {0x159f, 0x0000},
487 {0x15a0, 0x1e00},
488 {0x15a1, 0x0000},
489 {0x15a2, 0x0000},
490 {0x15a3, 0x1128},
491 {0x15b0, 0x007f},
492 {0x15b1, 0xffff},
493 {0x15b2, 0x007f},
494 {0x15b3, 0xffff},
495 {0x15b4, 0x007f},
496 {0x15b5, 0xffff},
497 {0x15b8, 0x007f},
498 {0x15b9, 0xffff},
499 {0x15bc, 0x0000},
500 {0x15bd, 0x0000},
501 {0x15be, 0xff00},
502 {0x15bf, 0x0000},
503 {0x15c0, 0xff00},
504 {0x15c1, 0x0000},
505 {0x15c3, 0xfc00},
506 {0x15c4, 0xbb80},
507 {0x15d0, 0x0000},
508 {0x15d1, 0x0000},
509 {0x15d2, 0x0000},
510 {0x15d3, 0x0000},
511 {0x15d4, 0x0000},
512 {0x15d5, 0x0000},
513 {0x15d6, 0x0000},
514 {0x15d7, 0x0000},
515 {0x15d8, 0x0200},
516 {0x15d9, 0x0000},
517 {0x15da, 0x0000},
518 {0x15db, 0x0000},
519 {0x15dc, 0x0000},
520 {0x15dd, 0x0000},
521 {0x15de, 0x0000},
522 {0x15df, 0x0000},
523 {0x15e0, 0x0000},
524 {0x15e1, 0x0000},
525 {0x15e2, 0x0200},
526 {0x15e3, 0x0000},
527 {0x15e4, 0x0000},
528 {0x15e5, 0x0000},
529 {0x15e6, 0x0000},
530 {0x15e7, 0x0000},
531 {0x15e8, 0x0000},
532 {0x15e9, 0x0000},
533 {0x15ea, 0x0000},
534 {0x15eb, 0x0000},
535 {0x15ec, 0x0200},
536 {0x15ed, 0x0000},
537 {0x15ee, 0x0000},
538 {0x15ef, 0x0000},
539 {0x15f0, 0x0000},
540 {0x15f1, 0x0000},
541 {0x15f2, 0x0000},
542 {0x15f3, 0x0000},
543 {0x15f4, 0x0000},
544 {0x15f5, 0x0000},
545 {0x15f6, 0x0200},
546 {0x15f7, 0x0200},
547 {0x15f8, 0x8200},
548 {0x15f9, 0x0000},
549 {0x1600, 0x007d},
550 {0x1601, 0xa178},
551 {0x1602, 0x00c2},
552 {0x1603, 0x5383},
553 {0x1604, 0x0000},
554 {0x1605, 0x02c1},
555 {0x1606, 0x007d},
556 {0x1607, 0xa178},
557 {0x1608, 0x00c2},
558 {0x1609, 0x5383},
559 {0x160a, 0x003e},
560 {0x160b, 0xd37d},
561 {0x1611, 0x3210},
562 {0x1612, 0x7418},
563 {0x1613, 0xc0ff},
564 {0x1614, 0x0000},
565 {0x1615, 0x00ff},
566 {0x1616, 0x0000},
567 {0x1617, 0x0000},
568 {0x1621, 0x6210},
569 {0x1622, 0x7418},
570 {0x1623, 0xc0ff},
571 {0x1624, 0x0000},
572 {0x1625, 0x00ff},
573 {0x1626, 0x0000},
574 {0x1627, 0x0000},
575 {0x1631, 0x3a14},
576 {0x1632, 0x7418},
577 {0x1633, 0xc3ff},
578 {0x1634, 0x0000},
579 {0x1635, 0x00ff},
580 {0x1636, 0x0000},
581 {0x1637, 0x0000},
582 {0x1638, 0x0000},
583 {0x163a, 0x0000},
584 {0x163c, 0x0000},
585 {0x163e, 0x0000},
586 {0x1640, 0x0000},
587 {0x1642, 0x0000},
588 {0x1644, 0x0000},
589 {0x1646, 0x0000},
590 {0x1648, 0x0000},
591 {0x1650, 0x0000},
592 {0x1652, 0x0000},
593 {0x1654, 0x0000},
594 {0x1656, 0x0000},
595 {0x1658, 0x0000},
596 {0x1660, 0x0000},
597 {0x1662, 0x0000},
598 {0x1664, 0x0000},
599 {0x1666, 0x0000},
600 {0x1668, 0x0000},
601 {0x1670, 0x0000},
602 {0x1672, 0x0000},
603 {0x1674, 0x0000},
604 {0x1676, 0x0000},
605 {0x1678, 0x0000},
606 {0x1680, 0x0000},
607 {0x1682, 0x0000},
608 {0x1684, 0x0000},
609 {0x1686, 0x0000},
610 {0x1688, 0x0000},
611 {0x1690, 0x0000},
612 {0x1692, 0x0000},
613 {0x1694, 0x0000},
614 {0x1696, 0x0000},
615 {0x1698, 0x0000},
616 {0x1700, 0x0000},
617 {0x1702, 0x0000},
618 {0x1704, 0x0000},
619 {0x1706, 0x0000},
620 {0x1708, 0x0000},
621 {0x1710, 0x0000},
622 {0x1712, 0x0000},
623 {0x1714, 0x0000},
624 {0x1716, 0x0000},
625 {0x1718, 0x0000},
626 {0x1720, 0x0000},
627 {0x1722, 0x0000},
628 {0x1724, 0x0000},
629 {0x1726, 0x0000},
630 {0x1728, 0x0000},
631 {0x1730, 0x0000},
632 {0x1732, 0x0000},
633 {0x1734, 0x0000},
634 {0x1736, 0x0000},
635 {0x1738, 0x0000},
636 {0x173a, 0x0000},
637 {0x173c, 0x0000},
638 {0x173e, 0x0000},
639 {0x17bb, 0x0500},
640 {0x17bd, 0x0004},
641 {0x17bf, 0x0004},
642 {0x17c1, 0x0004},
643 {0x17c2, 0x7fff},
644 {0x17c3, 0x0000},
645 {0x17c5, 0x0000},
646 {0x17c7, 0x0000},
647 {0x17c9, 0x0000},
648 {0x17cb, 0x2010},
649 {0x17cd, 0x0000},
650 {0x17cf, 0x0000},
651 {0x17d1, 0x0000},
652 {0x17d3, 0x0000},
653 {0x17d5, 0x0000},
654 {0x17d7, 0x0000},
655 {0x17d9, 0x0000},
656 {0x17db, 0x0000},
657 {0x17dd, 0x0000},
658 {0x17df, 0x0000},
659 {0x17e1, 0x0000},
660 {0x17e3, 0x0000},
661 {0x17e5, 0x0000},
662 {0x17e7, 0x0000},
663 {0x17e9, 0x0000},
664 {0x17eb, 0x0000},
665 {0x17ed, 0x0000},
666 {0x17ef, 0x0000},
667 {0x17f1, 0x0000},
668 {0x17f3, 0x0000},
669 {0x17f5, 0x0000},
670 {0x17f7, 0x0000},
671 {0x17f9, 0x0000},
672 {0x17fb, 0x0000},
673 {0x17fd, 0x0000},
674 {0x17ff, 0x0000},
675 {0x1801, 0x0000},
676 {0x1803, 0x0000},
685 return 0; in rt1011_reg_init()
1002 RT1011_ADCDAT_OUT_SOURCE, 0, rt1011_tdm_data_out_select);
1003 static SOC_ENUM_SINGLE_DECL(rt1011_tdm1_adc1_loc_enum, RT1011_TDM1_SET_2, 0,
1031 regmap_write(regmap, RT1011_RESET, 0); in rt1011_reset()
1042 ucontrol->value.integer.value[0] = rt1011->recv_spk_mode; in rt1011_recv_spk_mode_get()
1044 return 0; in rt1011_recv_spk_mode_get()
1055 if (ucontrol->value.integer.value[0] == rt1011->recv_spk_mode) in rt1011_recv_spk_mode_put()
1056 return 0; in rt1011_recv_spk_mode_put()
1059 rt1011->recv_spk_mode = ucontrol->value.integer.value[0]; in rt1011_recv_spk_mode_put()
1073 /* 0: speaker mode on */ in rt1011_recv_spk_mode_put()
1085 return 0; in rt1011_recv_spk_mode_put()
1120 unsigned int i, mode_idx = 0; in rt1011_bq_drc_coeff_get()
1139 for (i = 0; i < RT1011_BQ_DRC_NUM; i++) { in rt1011_bq_drc_coeff_get()
1144 return 0; in rt1011_bq_drc_coeff_get()
1157 unsigned int i, mode_idx = 0; in rt1011_bq_drc_coeff_put()
1173 memset(bq_drc_info, 0, in rt1011_bq_drc_coeff_put()
1178 for (i = 0; i < RT1011_BQ_DRC_NUM; i++) { in rt1011_bq_drc_coeff_put()
1183 for (i = 0; i < RT1011_BQ_DRC_NUM; i++) { in rt1011_bq_drc_coeff_put()
1184 if (bq_drc_info[i].reg == 0) in rt1011_bq_drc_coeff_put()
1192 return 0; in rt1011_bq_drc_coeff_put()
1200 uinfo->value.integer.max = 0x17ffffff; in rt1011_bq_drc_info()
1202 return 0; in rt1011_bq_drc_info()
1218 ucontrol->value.integer.value[0] = rt1011->cali_done; in rt1011_r0_cali_get()
1220 return 0; in rt1011_r0_cali_get()
1229 rt1011->cali_done = 0; in rt1011_r0_cali_put()
1231 ucontrol->value.integer.value[0]) in rt1011_r0_cali_put()
1234 return 0; in rt1011_r0_cali_put()
1244 ((rt1011->r0_reg>>16) & 0x1ff)); in rt1011_r0_load()
1246 (rt1011->r0_reg & 0xffff)); in rt1011_r0_load()
1247 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_4, 0x4080); in rt1011_r0_load()
1249 return 0; in rt1011_r0_load()
1258 ucontrol->value.integer.value[0] = rt1011->r0_reg; in rt1011_r0_load_mode_get()
1260 return 0; in rt1011_r0_load_mode_get()
1271 if (ucontrol->value.integer.value[0] == rt1011->r0_reg) in rt1011_r0_load_mode_put()
1272 return 0; in rt1011_r0_load_mode_put()
1274 if (ucontrol->value.integer.value[0] == 0) in rt1011_r0_load_mode_put()
1279 rt1011->r0_reg = ucontrol->value.integer.value[0]; in rt1011_r0_load_mode_put()
1285 dev_info(dev, "New r0 resistance about %d.%02d ohm, reg=0x%X\n", in rt1011_r0_load_mode_put()
1292 return 0; in rt1011_r0_load_mode_put()
1300 uinfo->value.integer.max = 0x1ffffff; in rt1011_r0_load_info()
1302 return 0; in rt1011_r0_load_info()
1316 static SOC_ENUM_SINGLE_DECL(rt1011_i2s_ref_enum, 0, 0,
1327 rt1011->i2s_ref = ucontrol->value.enumerated.item[0]; in rt1011_i2s_ref_put()
1330 regmap_write(rt1011->regmap, RT1011_TDM_TOTAL_SET, 0x0240); in rt1011_i2s_ref_put()
1331 regmap_write(rt1011->regmap, RT1011_TDM1_SET_2, 0x8); in rt1011_i2s_ref_put()
1332 regmap_write(rt1011->regmap, RT1011_TDM1_SET_1, 0x1022); in rt1011_i2s_ref_put()
1333 regmap_write(rt1011->regmap, RT1011_ADCDAT_OUT_SOURCE, 0x4); in rt1011_i2s_ref_put()
1336 regmap_write(rt1011->regmap, RT1011_TDM_TOTAL_SET, 0x0240); in rt1011_i2s_ref_put()
1337 regmap_write(rt1011->regmap, RT1011_TDM1_SET_2, 0x8); in rt1011_i2s_ref_put()
1338 regmap_write(rt1011->regmap, RT1011_TDM1_SET_1, 0x10a2); in rt1011_i2s_ref_put()
1339 regmap_write(rt1011->regmap, RT1011_ADCDAT_OUT_SOURCE, 0x4); in rt1011_i2s_ref_put()
1345 return 0; in rt1011_i2s_ref_put()
1356 ucontrol->value.enumerated.item[0] = rt1011->i2s_ref; in rt1011_i2s_ref_get()
1358 return 0; in rt1011_i2s_ref_get()
1381 SOC_SINGLE_EXT("RECV SPK Mode", SND_SOC_NOPM, 0, 1, 0,
1392 SOC_SINGLE_EXT("R0 Calibration", SND_SOC_NOPM, 0, 1, 0,
1398 2, 255, 0),
1414 return 0; in rt1011_is_sys_clk_from_pll()
1438 RT1011_POW_MNL_SDB_MASK, 0); in rt1011_dac_event()
1441 RT1011_STP_EN_MASK | RT1011_STP_RS_CLB_EN_MASK, 0); in rt1011_dac_event()
1445 RT1011_DRIVER_READY_SPK, 0); in rt1011_dac_event()
1449 return 0; in rt1011_dac_event()
1452 return 0; in rt1011_dac_event()
1458 RT1011_POW_LDO2_BIT, 0, NULL, 0),
1460 RT1011_POW_ISENSE_SPK_BIT, 0, NULL, 0),
1462 RT1011_POW_VSENSE_SPK_BIT, 0, NULL, 0),
1465 RT1011_PLLEN_BIT, 0, NULL, 0),
1467 RT1011_POW_BG_BIT, 0, NULL, 0),
1469 RT1011_POW_BG_MBIAS_LV_BIT, 0, NULL, 0),
1472 RT1011_POW_DET_VBAT_BIT, 0, NULL, 0),
1474 RT1011_POW_MBIAS_LV_BIT, 0, NULL, 0),
1476 RT1011_POW_ADC_I_BIT, 0, NULL, 0),
1478 RT1011_POW_ADC_V_BIT, 0, NULL, 0),
1480 RT1011_POW_ADC_T_BIT, 0, NULL, 0),
1482 RT1011_POWD_ADC_T_BIT, 0, NULL, 0),
1484 RT1011_POW_MIX_I_BIT, 0, NULL, 0),
1486 RT1011_POW_MIX_V_BIT, 0, NULL, 0),
1488 RT1011_POW_SUM_I_BIT, 0, NULL, 0),
1490 RT1011_POW_SUM_V_BIT, 0, NULL, 0),
1492 RT1011_POW_MIX_T_BIT, 0, NULL, 0),
1494 RT1011_POW_VREF_LV_BIT, 0, NULL, 0),
1497 RT1011_POW_EN_SWR_BIT, 0, NULL, 0),
1499 RT1011_POW_EN_PASS_BGOK_SWR_BIT, 0, NULL, 0),
1501 RT1011_POW_EN_PASS_VPOK_SWR_BIT, 0, NULL, 0),
1504 RT1011_POW_TEMP_REG_BIT, 0, NULL, 0),
1507 SND_SOC_DAPM_AIF_IN("AIF1RX", "AIF1 Playback", 0, SND_SOC_NOPM, 0, 0),
1510 RT1011_POW_DAC_BIT, 0, NULL, 0),
1512 RT1011_POW_CLK12M_BIT, 0, NULL, 0),
1561 if (sclk <= 0 || rate <= 0) in rt1011_get_clk_info()
1565 for (i = 0; i < ARRAY_SIZE(pd); i++) in rt1011_get_clk_info()
1577 unsigned int val_len = 0, ch_len = 0, val_clk, mask_clk; in rt1011_hw_params()
1582 if (pre_div < 0) { in rt1011_hw_params()
1584 snd_soc_dai_set_pll(dai, 0, RT1011_PLL1_S_BCLK, in rt1011_hw_params()
1588 pre_div = 0; in rt1011_hw_params()
1591 if (frame_size < 0) { in rt1011_hw_params()
1661 return 0; in rt1011_hw_params()
1669 unsigned int reg_val = 0, reg_bclk_inv = 0; in rt1011_set_dai_fmt()
1670 int ret = 0; in rt1011_set_dai_fmt()
1734 unsigned int reg_val = 0; in rt1011_set_component_sysclk()
1737 return 0; in rt1011_set_component_sysclk()
1741 RT1011_EN_MCLK_DET_MASK, 0); in rt1011_set_component_sysclk()
1770 return 0; in rt1011_set_component_sysclk()
1783 return 0; in rt1011_set_component_pll()
1788 rt1011->pll_in = 0; in rt1011_set_component_pll()
1789 rt1011->pll_out = 0; in rt1011_set_component_pll()
1792 return 0; in rt1011_set_component_pll()
1820 if (ret < 0) { in rt1011_set_component_pll()
1827 pll_code.m_bp, (pll_code.m_bp ? 0 : pll_code.m_code), in rt1011_set_component_pll()
1831 ((pll_code.m_bp ? 0 : pll_code.m_code) << RT1011_PLL1_QM_SFT) | in rt1011_set_component_pll()
1841 return 0; in rt1011_set_component_pll()
1850 unsigned int val = 0, tdm_en = 0, rx_slotnum, tx_slotnum; in rt1011_set_tdm_slot()
1851 int ret = 0, first_bit, last_bit; in rt1011_set_tdm_slot()
1907 case 0: in rt1011_set_tdm_slot()
1985 case 0: in rt1011_set_tdm_slot()
1988 RT1011_TDM_I2S_RX_ADC1_1_MASK, 0); in rt1011_set_tdm_slot()
1993 RT1011_TDM_I2S_RX_ADC2_1_MASK, 0); in rt1011_set_tdm_slot()
1998 RT1011_TDM_I2S_RX_ADC3_1_MASK, 0); in rt1011_set_tdm_slot()
2003 RT1011_TDM_I2S_RX_ADC4_1_MASK, 0); in rt1011_set_tdm_slot()
2013 case 0: in rt1011_set_tdm_slot()
2060 rt1011->i2s_ref = 0; in rt1011_probe()
2067 for (i = 0; i < RT1011_ADVMODE_NUM; i++) { in rt1011_probe()
2075 return 0; in rt1011_probe()
2094 return 0; in rt1011_suspend()
2104 return 0; in rt1011_resume()
2117 RT1011_SYSTEM_RESET_1, 0x0000); in rt1011_set_bias_level()
2119 RT1011_SYSTEM_RESET_2, 0x0000); in rt1011_set_bias_level()
2121 RT1011_SYSTEM_RESET_3, 0x0001); in rt1011_set_bias_level()
2123 RT1011_SYSTEM_RESET_1, 0x003f); in rt1011_set_bias_level()
2125 RT1011_SYSTEM_RESET_2, 0x7fd7); in rt1011_set_bias_level()
2127 RT1011_SYSTEM_RESET_3, 0x770f); in rt1011_set_bias_level()
2133 return 0; in rt1011_set_bias_level()
2202 {"10EC1011", 0,},
2216 unsigned int value, count = 0, r0[3]; in rt1011_calibrate()
2223 int ret = 0; in rt1011_calibrate()
2228 regmap_write(rt1011->regmap, RT1011_RESET, 0x0000); in rt1011_calibrate()
2229 regmap_write(rt1011->regmap, RT1011_SYSTEM_RESET_3, 0x740f); in rt1011_calibrate()
2230 regmap_write(rt1011->regmap, RT1011_SYSTEM_RESET_3, 0x770f); in rt1011_calibrate()
2233 regmap_write(rt1011->regmap, RT1011_CLK_2, 0x9400); in rt1011_calibrate()
2234 regmap_write(rt1011->regmap, RT1011_PLL_1, 0x0800); in rt1011_calibrate()
2235 regmap_write(rt1011->regmap, RT1011_PLL_2, 0x0020); in rt1011_calibrate()
2236 regmap_write(rt1011->regmap, RT1011_CLK_DET, 0x0800); in rt1011_calibrate()
2239 regmap_write(rt1011->regmap, RT1011_ADC_SET_5, 0x0a20); in rt1011_calibrate()
2240 regmap_write(rt1011->regmap, RT1011_DAC_SET_2, 0xe232); in rt1011_calibrate()
2241 regmap_write(rt1011->regmap, RT1011_ADC_SET_4, 0xc000); in rt1011_calibrate()
2244 regmap_write(rt1011->regmap, RT1011_SPK_PRO_DC_DET_1, 0xb00c); in rt1011_calibrate()
2245 regmap_write(rt1011->regmap, RT1011_SPK_PRO_DC_DET_2, 0xcccc); in rt1011_calibrate()
2248 regmap_write(rt1011->regmap, RT1011_POWER_1, 0xe0e0); in rt1011_calibrate()
2249 regmap_write(rt1011->regmap, RT1011_POWER_3, 0x5003); in rt1011_calibrate()
2250 regmap_write(rt1011->regmap, RT1011_POWER_9, 0xa860); in rt1011_calibrate()
2251 regmap_write(rt1011->regmap, RT1011_DAC_SET_2, 0xa032); in rt1011_calibrate()
2254 regmap_write(rt1011->regmap, RT1011_POWER_2, 0x0007); in rt1011_calibrate()
2255 regmap_write(rt1011->regmap, RT1011_POWER_3, 0x5ff7); in rt1011_calibrate()
2256 regmap_write(rt1011->regmap, RT1011_A_TEMP_SEN, 0x7f44); in rt1011_calibrate()
2257 regmap_write(rt1011->regmap, RT1011_A_TIMING_1, 0x4054); in rt1011_calibrate()
2258 regmap_write(rt1011->regmap, RT1011_BAT_GAIN_1, 0x309c); in rt1011_calibrate()
2261 regmap_write(rt1011->regmap, RT1011_DC_CALIB_CLASSD_3, 0xcb00); in rt1011_calibrate()
2262 regmap_write(rt1011->regmap, RT1011_BOOST_CON_1, 0xe080); in rt1011_calibrate()
2263 regmap_write(rt1011->regmap, RT1011_POWER_4, 0x16f2); in rt1011_calibrate()
2264 regmap_write(rt1011->regmap, RT1011_POWER_6, 0x36ad); in rt1011_calibrate()
2267 regmap_write(rt1011->regmap, RT1011_MIXER_1, 0x3f1d); in rt1011_calibrate()
2270 regmap_write(rt1011->regmap, RT1011_EFUSE_CONTROL_1, 0x0d0a); in rt1011_calibrate()
2276 dc_offset |= (value & 0xffff); in rt1011_calibrate()
2277 dev_info(dev, "ADC offset=0x%x\n", dc_offset); in rt1011_calibrate()
2281 dc_offset |= (value & 0xffff); in rt1011_calibrate()
2282 dev_info(dev, "Gain0 offset=0x%x\n", dc_offset); in rt1011_calibrate()
2286 dc_offset |= (value & 0xffff); in rt1011_calibrate()
2287 dev_info(dev, "Gain1 offset=0x%x\n", dc_offset); in rt1011_calibrate()
2291 regmap_write(rt1011->regmap, RT1011_ADC_SET_1, 0x2925); in rt1011_calibrate()
2293 regmap_write(rt1011->regmap, RT1011_CLASS_D_POS, 0x010e); in rt1011_calibrate()
2295 RT1011_CLASSD_INTERNAL_SET_1, 0x1701); in rt1011_calibrate()
2298 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_0, 0x8000); in rt1011_calibrate()
2299 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_7, 0xf000); in rt1011_calibrate()
2300 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_4, 0x4040); in rt1011_calibrate()
2301 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_0, 0xc000); in rt1011_calibrate()
2302 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_6, 0x07c2); in rt1011_calibrate()
2304 r0[0] = r0[1] = r0[2] = count = 0; in rt1011_calibrate()
2314 if (r0[count%3] == 0) in rt1011_calibrate()
2319 if (r0[0] == r0[1] && r0[1] == r0[2]) in rt1011_calibrate()
2327 r0_integer = format / r0[0] / 128; in rt1011_calibrate()
2328 r0_factor = ((format / r0[0] * 100) / 128) in rt1011_calibrate()
2330 rt1011->r0_reg = r0[0]; in rt1011_calibrate()
2332 dev_info(dev, "r0 resistance about %d.%02d ohm, reg=0x%X\n", in rt1011_calibrate()
2333 r0_integer, r0_factor, r0[0]); in rt1011_calibrate()
2338 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_0, 0x0000); in rt1011_calibrate()
2340 regmap_write(rt1011->regmap, RT1011_POWER_9, 0xa840); in rt1011_calibrate()
2341 regmap_write(rt1011->regmap, RT1011_SPK_TEMP_PROTECT_6, 0x0702); in rt1011_calibrate()
2342 regmap_write(rt1011->regmap, RT1011_MIXER_1, 0xffdd); in rt1011_calibrate()
2343 regmap_write(rt1011->regmap, RT1011_CLASSD_INTERNAL_SET_1, 0x0701); in rt1011_calibrate()
2344 regmap_write(rt1011->regmap, RT1011_DAC_SET_3, 0xe004); in rt1011_calibrate()
2345 regmap_write(rt1011->regmap, RT1011_A_TEMP_SEN, 0x7f40); in rt1011_calibrate()
2346 regmap_write(rt1011->regmap, RT1011_POWER_1, 0x0000); in rt1011_calibrate()
2347 regmap_write(rt1011->regmap, RT1011_POWER_2, 0x0000); in rt1011_calibrate()
2348 regmap_write(rt1011->regmap, RT1011_POWER_3, 0x0002); in rt1011_calibrate()
2349 regmap_write(rt1011->regmap, RT1011_POWER_4, 0x00f2); in rt1011_calibrate()
2351 regmap_write(rt1011->regmap, RT1011_RESET, 0x0000); in rt1011_calibrate()
2357 ((r0[0]>>16) & 0x1ff)); in rt1011_calibrate()
2360 (r0[0] & 0xffff)); in rt1011_calibrate()
2362 RT1011_SPK_TEMP_PROTECT_4, 0x4080); in rt1011_calibrate()
2382 rt1011_calibrate(rt1011, 0); in rt1011_calibration_work()
2391 rt1011->cali_done = 0; in rt1011_calibration_work()
2397 if (rt1011->temperature_calib <= 0xff && in rt1011_calibration_work()
2398 rt1011->temperature_calib > 0) { in rt1011_calibration_work()
2400 RT1011_STP_INITIAL_RESISTANCE_TEMP, 0x3ff, in rt1011_calibration_work()
2411 dev_info(component->dev, "DP r0 resistance about %d.%02d ohm, reg=0x%X\n", in rt1011_calibration_work()
2417 snd_soc_component_write(component, RT1011_ADC_SET_1, 0x2925); in rt1011_calibration_work()
2427 dev_dbg(dev, "%s: r0_calib: 0x%x, temperature_calib: 0x%x", in rt1011_parse_dp()
2430 return 0; in rt1011_parse_dp()