Lines Matching +full:0 +full:xc303

34 	{ 0x0000C000, 0x01},
35 { 0x0000F20D, 0x00},
36 { 0x0000F212, 0x3E},
37 { 0x0000C001, 0x02},
38 { 0x0000C003, 0x22},
39 { 0x0000C004, 0x44},
40 { 0x0000C005, 0x44},
41 { 0x0000C007, 0x64},
42 { 0x0000C00E, 0xE7},
43 { 0x0000F223, 0x7F},
44 { 0x0000F224, 0xDB},
45 { 0x0000F225, 0xEE},
46 { 0x0000F226, 0x3F},
47 { 0x0000F227, 0x0F},
48 { 0x0000F21A, 0x78},
49 { 0x0000F242, 0x3C},
50 { 0x0000C120, 0x40},
51 { 0x0000C125, 0x03},
52 { 0x0000C321, 0x0A},
53 { 0x0000C200, 0xD8},
54 { 0x0000C201, 0x27},
55 { 0x0000C202, 0x0F},
56 { 0x0000C400, 0x0E},
57 { 0x0000C401, 0x43},
58 { 0x0000C402, 0xE0},
59 { 0x0000C403, 0x00},
60 { 0x0000C404, 0x4C},
61 { 0x0000C406, 0x40},
62 { 0x0000C407, 0x02},
63 { 0x0000C408, 0x3F},
64 { 0x0000C300, 0x01},
65 { 0x0000C125, 0x03},
66 { 0x0000DF00, 0x10},
67 { 0x0000F20B, 0x2A},
68 { 0x0000DF5F, 0x01},
69 { 0x0000DF60, 0xA7},
70 { 0x0000C203, 0x84},
71 { 0x0000C206, 0x78},
72 { 0x0000F10A, 0x09},
73 { 0x0000F10B, 0x4C},
74 { 0x0000F104, 0xF4},
75 { 0x0000F105, 0x03},
76 { 0x0000F109, 0xE0},
77 { 0x0000F10B, 0x5C},
78 { 0x0000F104, 0xF4},
79 { 0x0000F105, 0x04},
80 { 0x0000F109, 0x65},
81 { 0x0000F10B, 0x5C},
82 { 0x0000F104, 0xF4},
83 { 0x0000F105, 0x02},
84 { 0x0000F109, 0x30},
85 { 0x0000F10B, 0x5C},
86 { 0x0000E706, 0x0F},
87 { 0x0000E707, 0x30},
88 { 0x0000E806, 0x0F},
89 { 0x0000E807, 0x30},
90 { 0x0000CE04, 0x03},
91 { 0x0000CE05, 0x5F},
92 { 0x0000CE06, 0xA2},
93 { 0x0000CE07, 0x6B},
94 { 0x0000CF04, 0x03},
95 { 0x0000CF05, 0x5F},
96 { 0x0000CF06, 0xA2},
97 { 0x0000CF07, 0x6B},
98 { 0x0000CE60, 0xE3},
99 { 0x0000C130, 0x51},
100 { 0x0000E000, 0xA8},
101 { 0x0000F102, 0x00},
102 { 0x0000F103, 0x00},
103 { 0x0000F104, 0xF5},
104 { 0x0000F105, 0x23},
105 { 0x0000F109, 0x04},
106 { 0x0000F10A, 0x0B},
107 { 0x0000F10B, 0x4C},
108 { 0x0000F10B, 0x5C},
109 { 0x41001888, 0x00},
110 { 0x0000C121, 0x0B},
111 { 0x0000F102, 0x00},
112 { 0x0000F103, 0x00},
113 { 0x0000F104, 0xF5},
114 { 0x0000F105, 0x23},
115 { 0x0000F109, 0x00},
116 { 0x0000F10A, 0x0B},
117 { 0x0000F10B, 0x4C},
118 { 0x0000F10B, 0x5C},
119 { 0x0000F800, 0x20},
120 { 0x0000CA00, 0x80},
121 { 0x0000CA10, 0x00},
122 { 0x0000CA02, 0x78},
123 { 0x0000CA12, 0x78},
124 { 0x0000ED00, 0x90},
125 { 0x0000E604, 0x00},
126 { 0x0000DB00, 0x0C},
127 { 0x0000DD00, 0x0C},
128 { 0x0000DC19, 0x00},
129 { 0x0000DC1A, 0x6A},
130 { 0x0000DC1B, 0xAA},
131 { 0x0000DC1C, 0xAB},
132 { 0x0000DC1D, 0x00},
133 { 0x0000DC1E, 0x16},
134 { 0x0000DC1F, 0xDB},
135 { 0x0000DC20, 0x6D},
136 { 0x0000DE19, 0x00},
137 { 0x0000DE1A, 0x6A},
138 { 0x0000DE1B, 0xAA},
139 { 0x0000DE1C, 0xAB},
140 { 0x0000DE1D, 0x00},
141 { 0x0000DE1E, 0x16},
142 { 0x0000DE1F, 0xDB},
143 { 0x0000DE20, 0x6D},
144 { 0x0000DB32, 0x00},
145 { 0x0000DD32, 0x00},
146 { 0x0000DB33, 0x0A},
147 { 0x0000DD33, 0x0A},
148 { 0x0000DB34, 0x1A},
149 { 0x0000DD34, 0x1A},
150 { 0x0000DB15, 0xEF},
151 { 0x0000DD15, 0xEF},
152 { 0x0000DB17, 0xEF},
153 { 0x0000DD17, 0xEF},
154 { 0x0000DB94, 0x70},
155 { 0x0000DD94, 0x70},
156 { 0x0000DB19, 0x40},
157 { 0x0000DD19, 0x40},
158 { 0x0000DB12, 0xC0},
159 { 0x0000DD12, 0xC0},
160 { 0x0000DB00, 0x4C},
161 { 0x0000DB04, 0x05},
162 { 0x0000DB05, 0x03},
163 { 0x0000DD04, 0x05},
164 { 0x0000DD05, 0x03},
165 { 0x0000DBBB, 0x09},
166 { 0x0000DBBC, 0x30},
167 { 0x0000DBBD, 0xF0},
168 { 0x0000DBBE, 0xF1},
169 { 0x0000DDBB, 0x09},
170 { 0x0000DDBC, 0x30},
171 { 0x0000DDBD, 0xF0},
172 { 0x0000DDBE, 0xF1},
173 { 0x0000DB01, 0x79},
174 { 0x0000DD01, 0x79},
175 { 0x0000DB08, 0x40},
176 { 0x0000DD08, 0x40},
177 { 0x0000DC52, 0xEF},
178 { 0x0000DE52, 0xEF},
179 { 0x0000DB00, 0xCC},
180 { 0x0000CC2C, 0x00},
181 { 0x0000CC2D, 0x2A},
182 { 0x0000CC2E, 0x83},
183 { 0x0000CC2F, 0xA8},
184 { 0x0000CD2C, 0x00},
185 { 0x0000CD2D, 0x2A},
186 { 0x0000CD2E, 0x83},
187 { 0x0000CD2F, 0xA8},
188 { 0x0000CC24, 0x00},
189 { 0x0000CC25, 0x51},
190 { 0x0000CC26, 0xEB},
191 { 0x0000CC27, 0x85},
192 { 0x0000CD24, 0x00},
193 { 0x0000CD25, 0x51},
194 { 0x0000CD26, 0xEB},
195 { 0x0000CD27, 0x85},
196 { 0x0000CC20, 0x00},
197 { 0x0000CC21, 0x00},
198 { 0x0000CC22, 0x43},
199 { 0x0000CD20, 0x00},
200 { 0x0000CD21, 0x00},
201 { 0x0000CD22, 0x43},
202 { 0x0000CC16, 0x0F},
203 { 0x0000CC17, 0x00},
204 { 0x0000CD16, 0x0F},
205 { 0x0000CD17, 0x00},
206 { 0x0000CC29, 0x5D},
207 { 0x0000CC2A, 0xC0},
208 { 0x0000CD29, 0x5D},
209 { 0x0000CD2A, 0xC0},
210 { 0x0000CC31, 0x20},
211 { 0x0000CC32, 0x00},
212 { 0x0000CC33, 0x00},
213 { 0x0000CC34, 0x00},
214 { 0x0000CD31, 0x20},
215 { 0x0000CD32, 0x00},
216 { 0x0000CD33, 0x00},
217 { 0x0000CD34, 0x00},
218 { 0x0000CC36, 0x79},
219 { 0x0000CC37, 0x99},
220 { 0x0000CC38, 0x99},
221 { 0x0000CC39, 0x99},
222 { 0x0000CD36, 0x79},
223 { 0x0000CD37, 0x99},
224 { 0x0000CD38, 0x99},
225 { 0x0000CD39, 0x99},
226 { 0x0000CC09, 0x00},
227 { 0x0000CC0A, 0x07},
228 { 0x0000CC0B, 0x5F},
229 { 0x0000CC0C, 0x6F},
230 { 0x0000CD09, 0x00},
231 { 0x0000CD0A, 0x07},
232 { 0x0000CD0B, 0x5F},
233 { 0x0000CD0C, 0x6F},
234 { 0x0000CC0E, 0x00},
235 { 0x0000CC0F, 0x03},
236 { 0x0000CC10, 0xAF},
237 { 0x0000CC11, 0xB7},
238 { 0x0000CD0E, 0x00},
239 { 0x0000CD0F, 0x03},
240 { 0x0000CD10, 0xAF},
241 { 0x0000CD11, 0xB7},
242 { 0x0000CCD6, 0x00},
243 { 0x0000CCD7, 0x03},
244 { 0x0000CDD6, 0x00},
245 { 0x0000CDD7, 0x03},
246 { 0x0000CCD8, 0x00},
247 { 0x0000CCD9, 0x03},
248 { 0x0000CDD8, 0x00},
249 { 0x0000CDD9, 0x03},
250 { 0x0000CCDA, 0x00},
251 { 0x0000CCDB, 0x03},
252 { 0x0000CDDA, 0x00},
253 { 0x0000CDDB, 0x03},
254 { 0x0000C320, 0x20},
255 { 0x0000C203, 0x9C},
259 { 0xc000, 0x00 },
260 { 0xc001, 0x43 },
261 { 0xc003, 0x22 },
262 { 0xc004, 0x44 },
263 { 0xc005, 0x44 },
264 { 0xc006, 0x33 },
265 { 0xc007, 0x64 },
266 { 0xc008, 0x05 },
267 { 0xc00a, 0xfc },
268 { 0xc00b, 0x0f },
269 { 0xc00c, 0x0e },
270 { 0xc00d, 0xef },
271 { 0xc00e, 0xe5 },
272 { 0xc00f, 0xff },
273 { 0xc120, 0xc0 },
274 { 0xc121, 0x00 },
275 { 0xc122, 0x00 },
276 { 0xc123, 0x14 },
277 { 0xc125, 0x00 },
278 { 0xc130, 0x59 },
279 { 0xc200, 0x00 },
280 { 0xc201, 0x00 },
281 { 0xc202, 0x00 },
282 { 0xc203, 0x04 },
283 { 0xc204, 0x00 },
284 { 0xc205, 0x00 },
285 { 0xc206, 0x68 },
286 { 0xc207, 0x70 },
287 { 0xc208, 0x00 },
288 { 0xc20a, 0x00 },
289 { 0xc20b, 0x01 },
290 { 0xc20c, 0x7f },
291 { 0xc20d, 0x01 },
292 { 0xc20e, 0x7f },
293 { 0xc300, 0x00 },
294 { 0xc301, 0x00 },
295 { 0xc303, 0x80 },
296 { 0xc320, 0x00 },
297 { 0xc321, 0x09 },
298 { 0xc322, 0x02 },
299 { 0xc400, 0x00 },
300 { 0xc401, 0x00 },
301 { 0xc402, 0x00 },
302 { 0xc403, 0x00 },
303 { 0xc404, 0x00 },
304 { 0xc405, 0x00 },
305 { 0xc406, 0x00 },
306 { 0xc407, 0x00 },
307 { 0xc408, 0x00 },
308 { 0xc410, 0x04 },
309 { 0xc430, 0x00 },
310 { 0xc431, 0x00 },
311 { 0xca00, 0x10 },
312 { 0xca01, 0x00 },
313 { 0xca02, 0x0b },
314 { 0xca10, 0x10 },
315 { 0xca11, 0x00 },
316 { 0xca12, 0x0b },
317 { 0xce04, 0x08 },
318 { 0xce05, 0x00 },
319 { 0xce06, 0x00 },
320 { 0xce07, 0x00 },
321 { 0xce60, 0x63 },
322 { 0xcf04, 0x08 },
323 { 0xcf05, 0x00 },
324 { 0xcf06, 0x00 },
325 { 0xcf07, 0x00 },
326 { 0xdb00, 0x00 },
327 { 0xdb08, 0x40 },
328 { 0xdb12, 0x00 },
329 { 0xdb35, 0x00 },
330 { 0xdbb5, 0x00 },
331 { 0xdbb6, 0x40 },
332 { 0xdbb7, 0x00 },
333 { 0xdbb8, 0x00 },
334 { 0xdbc5, 0x00 },
335 { 0xdbc6, 0x00 },
336 { 0xdbc7, 0x00 },
337 { 0xdbc8, 0x00 },
338 { 0xdd08, 0x40 },
339 { 0xdd12, 0x00 },
340 { 0xdd35, 0x00 },
341 { 0xddb5, 0x00 },
342 { 0xddb6, 0x40 },
343 { 0xddb7, 0x00 },
344 { 0xddb8, 0x00 },
345 { 0xddc5, 0x00 },
346 { 0xddc6, 0x00 },
347 { 0xddc7, 0x00 },
348 { 0xddc8, 0x00 },
349 { 0xdd93, 0x00 },
350 { 0xdd94, 0x64 },
351 { 0xdf00, 0x00 },
352 { 0xdf5f, 0x00 },
353 { 0xdf60, 0x00 },
354 { 0xe000, 0x08 },
355 { 0xe300, 0xa0 },
356 { 0xe400, 0x22 },
357 { 0xe706, 0x2f },
358 { 0xe707, 0x2f },
359 { 0xe806, 0x2f },
360 { 0xe807, 0x2f },
361 { 0xea00, 0x43 },
362 { 0xed00, 0x80 },
363 { 0xed01, 0x0f },
364 { 0xed02, 0xff },
365 { 0xed03, 0x00 },
366 { 0xed04, 0x00 },
367 { 0xed05, 0x0f },
368 { 0xed06, 0xff },
369 { 0xf010, 0x10 },
370 { 0xf011, 0xec },
371 { 0xf012, 0x68 },
372 { 0xf013, 0x21 },
373 { 0xf102, 0x00 },
374 { 0xf103, 0x00 },
375 { 0xf104, 0x00 },
376 { 0xf105, 0x00 },
377 { 0xf106, 0x00 },
378 { 0xf107, 0x00 },
379 { 0xf108, 0x00 },
380 { 0xf109, 0x00 },
381 { 0xf10a, 0x03 },
382 { 0xf10b, 0x40 },
383 { 0xf20b, 0x28 },
384 { 0xf20d, 0x00 },
385 { 0xf212, 0x00 },
386 { 0xf21a, 0x00 },
387 { 0xf223, 0x40 },
388 { 0xf224, 0x00 },
389 { 0xf225, 0x00 },
390 { 0xf226, 0x00 },
391 { 0xf227, 0x00 },
392 { 0xf242, 0x0c },
393 { 0xf800, 0x00 },
394 { 0xf801, 0x12 },
395 { 0xf802, 0xe0 },
396 { 0xf803, 0x2f },
397 { 0xf804, 0x00 },
398 { 0xf805, 0x00 },
399 { 0xf806, 0x07 },
400 { 0xf807, 0xff },
406 case 0xc000: in rt1318_volatile_register()
407 case 0xc301: in rt1318_volatile_register()
408 case 0xc410: in rt1318_volatile_register()
409 case 0xc430 ... 0xc431: in rt1318_volatile_register()
410 case 0xdb06: in rt1318_volatile_register()
411 case 0xdb12: in rt1318_volatile_register()
412 case 0xdb1d ... 0xdb1f: in rt1318_volatile_register()
413 case 0xdb35: in rt1318_volatile_register()
414 case 0xdb37: in rt1318_volatile_register()
415 case 0xdb8a ... 0xdb92: in rt1318_volatile_register()
416 case 0xdbc5 ... 0xdbc8: in rt1318_volatile_register()
417 case 0xdc2b ... 0xdc49: in rt1318_volatile_register()
418 case 0xdd0b: in rt1318_volatile_register()
419 case 0xdd12: in rt1318_volatile_register()
420 case 0xdd1d ... 0xdd1f: in rt1318_volatile_register()
421 case 0xdd35: in rt1318_volatile_register()
422 case 0xdd8a ... 0xdd92: in rt1318_volatile_register()
423 case 0xddc5 ... 0xddc8: in rt1318_volatile_register()
424 case 0xde2b ... 0xde44: in rt1318_volatile_register()
425 case 0xdf4a ... 0xdf55: in rt1318_volatile_register()
426 case 0xe224 ... 0xe23b: in rt1318_volatile_register()
427 case 0xea01: in rt1318_volatile_register()
428 case 0xebc5: in rt1318_volatile_register()
429 case 0xebc8: in rt1318_volatile_register()
430 case 0xebcb ... 0xebcc: in rt1318_volatile_register()
431 case 0xed03 ... 0xed06: in rt1318_volatile_register()
432 case 0xf010 ... 0xf014: in rt1318_volatile_register()
443 case 0xc000 ... 0xc00f: in rt1318_readable_register()
444 case 0xc120 ... 0xc130: in rt1318_readable_register()
445 case 0xc200 ... 0xc20e: in rt1318_readable_register()
446 case 0xc300 ... 0xc303: in rt1318_readable_register()
447 case 0xc320 ... 0xc322: in rt1318_readable_register()
448 case 0xc400 ... 0xc408: in rt1318_readable_register()
449 case 0xc430 ... 0xc431: in rt1318_readable_register()
450 case 0xca00 ... 0xca02: in rt1318_readable_register()
451 case 0xca10 ... 0xca12: in rt1318_readable_register()
452 case 0xcb00 ... 0xcb0b: in rt1318_readable_register()
453 case 0xcc00 ... 0xcce5: in rt1318_readable_register()
454 case 0xcd00 ... 0xcde5: in rt1318_readable_register()
455 case 0xce00 ... 0xce6a: in rt1318_readable_register()
456 case 0xcf00 ... 0xcf53: in rt1318_readable_register()
457 case 0xd000 ... 0xd0cc: in rt1318_readable_register()
458 case 0xd100 ... 0xd1b9: in rt1318_readable_register()
459 case 0xdb00 ... 0xdc53: in rt1318_readable_register()
460 case 0xdd00 ... 0xde53: in rt1318_readable_register()
461 case 0xdf00 ... 0xdf6b: in rt1318_readable_register()
462 case 0xe000: in rt1318_readable_register()
463 case 0xe300: in rt1318_readable_register()
464 case 0xe400: in rt1318_readable_register()
465 case 0xe706 ... 0xe707: in rt1318_readable_register()
466 case 0xe806 ... 0xe807: in rt1318_readable_register()
467 case 0xea00: in rt1318_readable_register()
468 case 0xeb00 ... 0xebcc: in rt1318_readable_register()
469 case 0xec00 ... 0xecb9: in rt1318_readable_register()
470 case 0xed00 ... 0xed06: in rt1318_readable_register()
471 case 0xf010 ... 0xf014: in rt1318_readable_register()
472 case 0xf102 ... 0xf10b: in rt1318_readable_register()
473 case 0xf20b: in rt1318_readable_register()
474 case 0xf20d ... 0xf242: in rt1318_readable_register()
475 case 0xf800 ... 0xf807: in rt1318_readable_register()
502 return 0; in rt1318_dac_event()
511 rt1318->rt1318_dvol = ucontrol->value.integer.value[0]; in rt1318_dvol_put()
513 if (rt1318->rt1318_dvol <= RT1318_DVOL_STEP && rt1318->rt1318_dvol >= 0) { in rt1318_dvol_put()
517 rt1318->rt1318_dvol & 0xff); in rt1318_dvol_put()
521 rt1318->rt1318_dvol & 0xff); in rt1318_dvol_put()
525 return 0; in rt1318_dvol_put()
534 ucontrol->value.integer.value[0] = rt1318->rt1318_dvol; in rt1318_dvol_get()
536 return 0; in rt1318_dvol_get()
540 SOC_SINGLE_EXT("Amp Playback Volume", SND_SOC_NOPM, 0, 383, 0,
546 SND_SOC_DAPM_AIF_IN("AIF1RX", "AIF1 Playback", 0, SND_SOC_NOPM, 0, 0),
548 SND_SOC_DAPM_DAC_E("DAC", NULL, SND_SOC_NOPM, 0, 0,
564 if (sclk <= 0 || rate <= 0) in rt1318_get_clk_info()
568 for (i = 0; i < ARRAY_SIZE(pd); i++) in rt1318_get_clk_info()
602 return 0; in rt1318_clk_ip_info()
610 int data_len = 0, ch_len = 0; in rt1318_hw_params()
615 if (pre_div < 0) { in rt1318_hw_params()
620 if (ret < 0) { in rt1318_hw_params()
677 return 0; in rt1318_hw_params()
684 unsigned int reg_val = 0, reg_val2 = 0; in rt1318_set_dai_fmt()
721 return 0; in rt1318_set_dai_fmt()
729 int reg_val = 0; in rt1318_set_dai_sysclk()
732 return 0; in rt1318_set_dai_sysclk()
770 return 0; in rt1318_set_dai_sysclk()
774 {512000, 4096000, 22, 190, 0, true, false},
775 {1024000, 4096000, 22, 94, 0, true, false},
776 {1024000, 16384000, 4, 190, 0, true, false},
777 {1411200, 11289600, 6, 62, 0, true, false},
778 {1536000, 12288000, 6, 62, 0, true, false},
779 {2822400, 11289600, 6, 62, 0, true, false},
780 {2822400, 45158400, 0, 62, 0, true, false},
781 {2822400, 49152000, 0, 62, 0, true, false},
782 {3072000, 12288000, 6, 62, 0, true, false},
783 {3072000, 24576000, 2, 62, 0, true, false},
784 {3072000, 49152000, 0, 62, 0, true, false},
786 {6144000, 49152000, 0, 30, 0, true, false},
787 {6144000, 98304000, 0, 94, 4, false, true},
788 {12288000, 49152000, 0, 62, 6, false, false},
796 int n = 0, m = 0, m_t = 0; in rt1318_pll_calc()
803 for (i = 0; i < ARRAY_SIZE(pll_preset_table); i++) { in rt1318_pll_calc()
818 if (k < 0) { in rt1318_pll_calc()
819 k = 0; in rt1318_pll_calc()
822 for (n_t = 0; n_t <= max_n; n_t++) { in rt1318_pll_calc()
825 if (in_t < 0) in rt1318_pll_calc()
837 if (red == 0) in rt1318_pll_calc()
841 for (m_t = 0; m_t <= max_m; m_t++) { in rt1318_pll_calc()
848 if (red == 0) in rt1318_pll_calc()
863 return 0; in rt1318_pll_calc()
876 rt1318->pll_in = 0; in rt1318_set_dai_pll()
877 rt1318->pll_out = 0; in rt1318_set_dai_pll()
878 return 0; in rt1318_set_dai_pll()
883 return 0; in rt1318_set_dai_pll()
924 if (ret < 0) { in rt1318_set_dai_pll()
930 pll_code.m_bp, (pll_code.m_bp ? 0 : pll_code.m_code), in rt1318_set_dai_pll()
936 RT1318_M_PLL1_MASK, (pll_code.m_bp ? 0 : pll_code.m_code)); in rt1318_set_dai_pll()
946 return 0; in rt1318_set_dai_pll()
954 unsigned int cn = 0, cl = 0, rx_slotnum; in rt1318_set_tdm_slot()
955 int ret = 0, first_bit; in rt1318_set_tdm_slot()
1009 case 0: in rt1318_set_tdm_slot()
1054 return 0; in rt1318_probe()
1071 return 0; in rt1318_suspend()
1080 return 0; in rt1318_resume()
1102 .id = 0,
1134 .max_register = 0x41001888,
1156 { "10EC1318", 0},
1169 return 0; in rt1318_parse_dt()
1174 regmap_write(rt1318->regmap, RT1318_CLK1, 0x22); in rt1318_calibration_sequence()
1175 regmap_write(rt1318->regmap, RT1318_PLL1_N_7_0, 0x06); in rt1318_calibration_sequence()
1176 regmap_write(rt1318->regmap, RT1318_STP_TEMP_L, 0xCC); in rt1318_calibration_sequence()
1177 regmap_write(rt1318->regmap, RT1318_STP_SEL_L, 0x40); in rt1318_calibration_sequence()
1178 regmap_write(rt1318->regmap, RT1318_STP_SEL_R, 0x40); in rt1318_calibration_sequence()
1179 regmap_write(rt1318->regmap, RT1318_SINE_GEN0, 0x20); in rt1318_calibration_sequence()
1180 regmap_write(rt1318->regmap, RT1318_SPK_VOL_TH, 0x00); in rt1318_calibration_sequence()
1181 regmap_write(rt1318->regmap, RT1318_FEEDBACK_PATH, 0x0B); in rt1318_calibration_sequence()
1182 regmap_write(rt1318->regmap, RT1318_TCON, 0x1C); in rt1318_calibration_sequence()
1183 regmap_write(rt1318->regmap, RT1318_TCON_RELATE, 0x58); in rt1318_calibration_sequence()
1184 regmap_write(rt1318->regmap, RT1318_TCON_RELATE, 0x78); in rt1318_calibration_sequence()
1185 regmap_write(rt1318->regmap, RT1318_STP_R0_EN_L, 0xC2); in rt1318_calibration_sequence()
1218 (rt1318->pdata.init_r0_l >> 24) & 0xff); in rt1318_r0_restore()
1220 (rt1318->pdata.init_r0_l >> 16) & 0xff); in rt1318_r0_restore()
1222 (rt1318->pdata.init_r0_l >> 8) & 0xff); in rt1318_r0_restore()
1224 (rt1318->pdata.init_r0_l >> 0) & 0xff); in rt1318_r0_restore()
1226 (rt1318->pdata.init_r0_r >> 24) & 0xff); in rt1318_r0_restore()
1228 (rt1318->pdata.init_r0_r >> 16) & 0xff); in rt1318_r0_restore()
1230 (rt1318->pdata.init_r0_r >> 8) & 0xff); in rt1318_r0_restore()
1232 (rt1318->pdata.init_r0_r >> 0) & 0xff); in rt1318_r0_restore()
1233 regmap_write(rt1318->regmap, RT1318_STP_SEL_L, 0x80); in rt1318_r0_restore()
1234 regmap_write(rt1318->regmap, RT1318_STP_SEL_R, 0x80); in rt1318_r0_restore()
1235 regmap_write(rt1318->regmap, RT1318_R0_CMP_L_FLAG, 0xc0); in rt1318_r0_restore()
1236 regmap_write(rt1318->regmap, RT1318_R0_CMP_R_FLAG, 0xc0); in rt1318_r0_restore()
1237 regmap_write(rt1318->regmap, RT1318_STP_R0_EN_L, 0xc0); in rt1318_r0_restore()
1238 regmap_write(rt1318->regmap, RT1318_STP_R0_EN_R, 0xc0); in rt1318_r0_restore()
1239 regmap_write(rt1318->regmap, RT1318_STP_TEMP_L, 0xcc); in rt1318_r0_restore()
1240 regmap_write(rt1318->regmap, RT1318_TCON, 0x9c); in rt1318_r0_restore()
1245 int chk_cnt = 30, count = 0; in rt1318_calibrate()
1248 regmap_write(rt1318->regmap, RT1318_PWR_STA1, 0x1); in rt1318_calibrate()
1249 usleep_range(0, 10000); in rt1318_calibrate()
1256 val = (val >> 1) & 0x1; in rt1318_calibrate()
1257 val2 = (val2 >> 1) & 0x1; in rt1318_calibrate()
1264 regmap_write(rt1318->regmap, RT1318_PWR_STA1, 0x0); in rt1318_calibrate()
1268 regmap_write(rt1318->regmap, RT1318_PWR_STA1, 0x0); in rt1318_calibrate()
1271 if ((val & 0x1) & (val2 & 0x1)) in rt1318_calibrate()
1322 if (dev_id != 0x6821) { in rt1318_i2c_probe()
1331 if (ret != 0) in rt1318_i2c_probe()