Lines Matching +full:0 +full:x3150

41 static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
42 static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
43 static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
44 static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
45 static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
48 { .type = WMFW_ADSP2_PM, .base = 0x100000 },
49 { .type = WMFW_ADSP2_ZM, .base = 0x180000 },
50 { .type = WMFW_ADSP2_XM, .base = 0x190000 },
51 { .type = WMFW_ADSP2_YM, .base = 0x1a8000 },
55 { 0x3000, 0x2225 },
56 { 0x3001, 0x3a03 },
57 { 0x3002, 0x0225 },
58 { 0x3003, 0x0801 },
59 { 0x3004, 0x6249 },
60 { 0x3005, 0x0c04 },
61 { 0x3006, 0x0225 },
62 { 0x3007, 0x5901 },
63 { 0x3008, 0xe249 },
64 { 0x3009, 0x030d },
65 { 0x300a, 0x0249 },
66 { 0x300b, 0x2c01 },
67 { 0x300c, 0xe249 },
68 { 0x300d, 0x4342 },
69 { 0x300e, 0xe249 },
70 { 0x300f, 0x73c0 },
71 { 0x3010, 0x4249 },
72 { 0x3011, 0x0c00 },
73 { 0x3012, 0x0225 },
74 { 0x3013, 0x1f01 },
75 { 0x3014, 0x0225 },
76 { 0x3015, 0x1e01 },
77 { 0x3016, 0x0225 },
78 { 0x3017, 0xfa00 },
79 { 0x3018, 0x0000 },
80 { 0x3019, 0xf000 },
81 { 0x301a, 0x0000 },
82 { 0x301b, 0xf000 },
83 { 0x301c, 0x0000 },
84 { 0x301d, 0xf000 },
85 { 0x301e, 0x0000 },
86 { 0x301f, 0xf000 },
87 { 0x3020, 0x0000 },
88 { 0x3021, 0xf000 },
89 { 0x3022, 0x0000 },
90 { 0x3023, 0xf000 },
91 { 0x3024, 0x0000 },
92 { 0x3025, 0xf000 },
93 { 0x3026, 0x0000 },
94 { 0x3027, 0xf000 },
95 { 0x3028, 0x0000 },
96 { 0x3029, 0xf000 },
97 { 0x302a, 0x0000 },
98 { 0x302b, 0xf000 },
99 { 0x302c, 0x0000 },
100 { 0x302d, 0xf000 },
101 { 0x302e, 0x0000 },
102 { 0x302f, 0xf000 },
103 { 0x3030, 0x0225 },
104 { 0x3031, 0x1a01 },
105 { 0x3032, 0x0225 },
106 { 0x3033, 0x1e00 },
107 { 0x3034, 0x0225 },
108 { 0x3035, 0x1f00 },
109 { 0x3036, 0x6225 },
110 { 0x3037, 0xf800 },
111 { 0x3038, 0x0000 },
112 { 0x3039, 0xf000 },
113 { 0x303a, 0x0000 },
114 { 0x303b, 0xf000 },
115 { 0x303c, 0x0000 },
116 { 0x303d, 0xf000 },
117 { 0x303e, 0x0000 },
118 { 0x303f, 0xf000 },
119 { 0x3040, 0x2226 },
120 { 0x3041, 0x3a03 },
121 { 0x3042, 0x0226 },
122 { 0x3043, 0x0801 },
123 { 0x3044, 0x6249 },
124 { 0x3045, 0x0c06 },
125 { 0x3046, 0x0226 },
126 { 0x3047, 0x5901 },
127 { 0x3048, 0xe249 },
128 { 0x3049, 0x030d },
129 { 0x304a, 0x0249 },
130 { 0x304b, 0x2c01 },
131 { 0x304c, 0xe249 },
132 { 0x304d, 0x4342 },
133 { 0x304e, 0xe249 },
134 { 0x304f, 0x73c0 },
135 { 0x3050, 0x4249 },
136 { 0x3051, 0x0c00 },
137 { 0x3052, 0x0226 },
138 { 0x3053, 0x1f01 },
139 { 0x3054, 0x0226 },
140 { 0x3055, 0x1e01 },
141 { 0x3056, 0x0226 },
142 { 0x3057, 0xfa00 },
143 { 0x3058, 0x0000 },
144 { 0x3059, 0xf000 },
145 { 0x305a, 0x0000 },
146 { 0x305b, 0xf000 },
147 { 0x305c, 0x0000 },
148 { 0x305d, 0xf000 },
149 { 0x305e, 0x0000 },
150 { 0x305f, 0xf000 },
151 { 0x3060, 0x0000 },
152 { 0x3061, 0xf000 },
153 { 0x3062, 0x0000 },
154 { 0x3063, 0xf000 },
155 { 0x3064, 0x0000 },
156 { 0x3065, 0xf000 },
157 { 0x3066, 0x0000 },
158 { 0x3067, 0xf000 },
159 { 0x3068, 0x0000 },
160 { 0x3069, 0xf000 },
161 { 0x306a, 0x0000 },
162 { 0x306b, 0xf000 },
163 { 0x306c, 0x0000 },
164 { 0x306d, 0xf000 },
165 { 0x306e, 0x0000 },
166 { 0x306f, 0xf000 },
167 { 0x3070, 0x0226 },
168 { 0x3071, 0x1a01 },
169 { 0x3072, 0x0226 },
170 { 0x3073, 0x1e00 },
171 { 0x3074, 0x0226 },
172 { 0x3075, 0x1f00 },
173 { 0x3076, 0x6226 },
174 { 0x3077, 0xf800 },
175 { 0x3078, 0x0000 },
176 { 0x3079, 0xf000 },
177 { 0x307a, 0x0000 },
178 { 0x307b, 0xf000 },
179 { 0x307c, 0x0000 },
180 { 0x307d, 0xf000 },
181 { 0x307e, 0x0000 },
182 { 0x307f, 0xf000 },
183 { 0x3080, 0x2227 },
184 { 0x3081, 0x3a03 },
185 { 0x3082, 0x0227 },
186 { 0x3083, 0x0801 },
187 { 0x3084, 0x6255 },
188 { 0x3085, 0x0c04 },
189 { 0x3086, 0x0227 },
190 { 0x3087, 0x5901 },
191 { 0x3088, 0xe255 },
192 { 0x3089, 0x030d },
193 { 0x308a, 0x0255 },
194 { 0x308b, 0x2c01 },
195 { 0x308c, 0xe255 },
196 { 0x308d, 0x4342 },
197 { 0x308e, 0xe255 },
198 { 0x308f, 0x73c0 },
199 { 0x3090, 0x4255 },
200 { 0x3091, 0x0c00 },
201 { 0x3092, 0x0227 },
202 { 0x3093, 0x1f01 },
203 { 0x3094, 0x0227 },
204 { 0x3095, 0x1e01 },
205 { 0x3096, 0x0227 },
206 { 0x3097, 0xfa00 },
207 { 0x3098, 0x0000 },
208 { 0x3099, 0xf000 },
209 { 0x309a, 0x0000 },
210 { 0x309b, 0xf000 },
211 { 0x309c, 0x0000 },
212 { 0x309d, 0xf000 },
213 { 0x309e, 0x0000 },
214 { 0x309f, 0xf000 },
215 { 0x30a0, 0x0000 },
216 { 0x30a1, 0xf000 },
217 { 0x30a2, 0x0000 },
218 { 0x30a3, 0xf000 },
219 { 0x30a4, 0x0000 },
220 { 0x30a5, 0xf000 },
221 { 0x30a6, 0x0000 },
222 { 0x30a7, 0xf000 },
223 { 0x30a8, 0x0000 },
224 { 0x30a9, 0xf000 },
225 { 0x30aa, 0x0000 },
226 { 0x30ab, 0xf000 },
227 { 0x30ac, 0x0000 },
228 { 0x30ad, 0xf000 },
229 { 0x30ae, 0x0000 },
230 { 0x30af, 0xf000 },
231 { 0x30b0, 0x0227 },
232 { 0x30b1, 0x1a01 },
233 { 0x30b2, 0x0227 },
234 { 0x30b3, 0x1e00 },
235 { 0x30b4, 0x0227 },
236 { 0x30b5, 0x1f00 },
237 { 0x30b6, 0x6227 },
238 { 0x30b7, 0xf800 },
239 { 0x30b8, 0x0000 },
240 { 0x30b9, 0xf000 },
241 { 0x30ba, 0x0000 },
242 { 0x30bb, 0xf000 },
243 { 0x30bc, 0x0000 },
244 { 0x30bd, 0xf000 },
245 { 0x30be, 0x0000 },
246 { 0x30bf, 0xf000 },
247 { 0x30c0, 0x2228 },
248 { 0x30c1, 0x3a03 },
249 { 0x30c2, 0x0228 },
250 { 0x30c3, 0x0801 },
251 { 0x30c4, 0x6255 },
252 { 0x30c5, 0x0c06 },
253 { 0x30c6, 0x0228 },
254 { 0x30c7, 0x5901 },
255 { 0x30c8, 0xe255 },
256 { 0x30c9, 0x030d },
257 { 0x30ca, 0x0255 },
258 { 0x30cb, 0x2c01 },
259 { 0x30cc, 0xe255 },
260 { 0x30cd, 0x4342 },
261 { 0x30ce, 0xe255 },
262 { 0x30cf, 0x73c0 },
263 { 0x30d0, 0x4255 },
264 { 0x30d1, 0x0c00 },
265 { 0x30d2, 0x0228 },
266 { 0x30d3, 0x1f01 },
267 { 0x30d4, 0x0228 },
268 { 0x30d5, 0x1e01 },
269 { 0x30d6, 0x0228 },
270 { 0x30d7, 0xfa00 },
271 { 0x30d8, 0x0000 },
272 { 0x30d9, 0xf000 },
273 { 0x30da, 0x0000 },
274 { 0x30db, 0xf000 },
275 { 0x30dc, 0x0000 },
276 { 0x30dd, 0xf000 },
277 { 0x30de, 0x0000 },
278 { 0x30df, 0xf000 },
279 { 0x30e0, 0x0000 },
280 { 0x30e1, 0xf000 },
281 { 0x30e2, 0x0000 },
282 { 0x30e3, 0xf000 },
283 { 0x30e4, 0x0000 },
284 { 0x30e5, 0xf000 },
285 { 0x30e6, 0x0000 },
286 { 0x30e7, 0xf000 },
287 { 0x30e8, 0x0000 },
288 { 0x30e9, 0xf000 },
289 { 0x30ea, 0x0000 },
290 { 0x30eb, 0xf000 },
291 { 0x30ec, 0x0000 },
292 { 0x30ed, 0xf000 },
293 { 0x30ee, 0x0000 },
294 { 0x30ef, 0xf000 },
295 { 0x30f0, 0x0228 },
296 { 0x30f1, 0x1a01 },
297 { 0x30f2, 0x0228 },
298 { 0x30f3, 0x1e00 },
299 { 0x30f4, 0x0228 },
300 { 0x30f5, 0x1f00 },
301 { 0x30f6, 0x6228 },
302 { 0x30f7, 0xf800 },
303 { 0x30f8, 0x0000 },
304 { 0x30f9, 0xf000 },
305 { 0x30fa, 0x0000 },
306 { 0x30fb, 0xf000 },
307 { 0x30fc, 0x0000 },
308 { 0x30fd, 0xf000 },
309 { 0x30fe, 0x0000 },
310 { 0x30ff, 0xf000 },
311 { 0x3100, 0x222b },
312 { 0x3101, 0x3a03 },
313 { 0x3102, 0x222b },
314 { 0x3103, 0x5803 },
315 { 0x3104, 0xe26f },
316 { 0x3105, 0x030d },
317 { 0x3106, 0x626f },
318 { 0x3107, 0x2c01 },
319 { 0x3108, 0xe26f },
320 { 0x3109, 0x4342 },
321 { 0x310a, 0xe26f },
322 { 0x310b, 0x73c0 },
323 { 0x310c, 0x026f },
324 { 0x310d, 0x0c00 },
325 { 0x310e, 0x022b },
326 { 0x310f, 0x1f01 },
327 { 0x3110, 0x022b },
328 { 0x3111, 0x1e01 },
329 { 0x3112, 0x022b },
330 { 0x3113, 0xfa00 },
331 { 0x3114, 0x0000 },
332 { 0x3115, 0xf000 },
333 { 0x3116, 0x0000 },
334 { 0x3117, 0xf000 },
335 { 0x3118, 0x0000 },
336 { 0x3119, 0xf000 },
337 { 0x311a, 0x0000 },
338 { 0x311b, 0xf000 },
339 { 0x311c, 0x0000 },
340 { 0x311d, 0xf000 },
341 { 0x311e, 0x0000 },
342 { 0x311f, 0xf000 },
343 { 0x3120, 0x022b },
344 { 0x3121, 0x0a01 },
345 { 0x3122, 0x022b },
346 { 0x3123, 0x1e00 },
347 { 0x3124, 0x022b },
348 { 0x3125, 0x1f00 },
349 { 0x3126, 0x622b },
350 { 0x3127, 0xf800 },
351 { 0x3128, 0x0000 },
352 { 0x3129, 0xf000 },
353 { 0x312a, 0x0000 },
354 { 0x312b, 0xf000 },
355 { 0x312c, 0x0000 },
356 { 0x312d, 0xf000 },
357 { 0x312e, 0x0000 },
358 { 0x312f, 0xf000 },
359 { 0x3130, 0x0000 },
360 { 0x3131, 0xf000 },
361 { 0x3132, 0x0000 },
362 { 0x3133, 0xf000 },
363 { 0x3134, 0x0000 },
364 { 0x3135, 0xf000 },
365 { 0x3136, 0x0000 },
366 { 0x3137, 0xf000 },
367 { 0x3138, 0x0000 },
368 { 0x3139, 0xf000 },
369 { 0x313a, 0x0000 },
370 { 0x313b, 0xf000 },
371 { 0x313c, 0x0000 },
372 { 0x313d, 0xf000 },
373 { 0x313e, 0x0000 },
374 { 0x313f, 0xf000 },
375 { 0x3140, 0x0000 },
376 { 0x3141, 0xf000 },
377 { 0x3142, 0x0000 },
378 { 0x3143, 0xf000 },
379 { 0x3144, 0x0000 },
380 { 0x3145, 0xf000 },
381 { 0x3146, 0x0000 },
382 { 0x3147, 0xf000 },
383 { 0x3148, 0x0000 },
384 { 0x3149, 0xf000 },
385 { 0x314a, 0x0000 },
386 { 0x314b, 0xf000 },
387 { 0x314c, 0x0000 },
388 { 0x314d, 0xf000 },
389 { 0x314e, 0x0000 },
390 { 0x314f, 0xf000 },
391 { 0x3150, 0x0000 },
392 { 0x3151, 0xf000 },
393 { 0x3152, 0x0000 },
394 { 0x3153, 0xf000 },
395 { 0x3154, 0x0000 },
396 { 0x3155, 0xf000 },
397 { 0x3156, 0x0000 },
398 { 0x3157, 0xf000 },
399 { 0x3158, 0x0000 },
400 { 0x3159, 0xf000 },
401 { 0x315a, 0x0000 },
402 { 0x315b, 0xf000 },
403 { 0x315c, 0x0000 },
404 { 0x315d, 0xf000 },
405 { 0x315e, 0x0000 },
406 { 0x315f, 0xf000 },
407 { 0x3160, 0x0000 },
408 { 0x3161, 0xf000 },
409 { 0x3162, 0x0000 },
410 { 0x3163, 0xf000 },
411 { 0x3164, 0x0000 },
412 { 0x3165, 0xf000 },
413 { 0x3166, 0x0000 },
414 { 0x3167, 0xf000 },
415 { 0x3168, 0x0000 },
416 { 0x3169, 0xf000 },
417 { 0x316a, 0x0000 },
418 { 0x316b, 0xf000 },
419 { 0x316c, 0x0000 },
420 { 0x316d, 0xf000 },
421 { 0x316e, 0x0000 },
422 { 0x316f, 0xf000 },
423 { 0x3170, 0x0000 },
424 { 0x3171, 0xf000 },
425 { 0x3172, 0x0000 },
426 { 0x3173, 0xf000 },
427 { 0x3174, 0x0000 },
428 { 0x3175, 0xf000 },
429 { 0x3176, 0x0000 },
430 { 0x3177, 0xf000 },
431 { 0x3178, 0x0000 },
432 { 0x3179, 0xf000 },
433 { 0x317a, 0x0000 },
434 { 0x317b, 0xf000 },
435 { 0x317c, 0x0000 },
436 { 0x317d, 0xf000 },
437 { 0x317e, 0x0000 },
438 { 0x317f, 0xf000 },
439 { 0x3180, 0x2001 },
440 { 0x3181, 0xf101 },
441 { 0x3182, 0x0000 },
442 { 0x3183, 0xf000 },
443 { 0x3184, 0x0000 },
444 { 0x3185, 0xf000 },
445 { 0x3186, 0x0000 },
446 { 0x3187, 0xf000 },
447 { 0x3188, 0x0000 },
448 { 0x3189, 0xf000 },
449 { 0x318a, 0x0000 },
450 { 0x318b, 0xf000 },
451 { 0x318c, 0x0000 },
452 { 0x318d, 0xf000 },
453 { 0x318e, 0x0000 },
454 { 0x318f, 0xf000 },
455 { 0x3190, 0x0000 },
456 { 0x3191, 0xf000 },
457 { 0x3192, 0x0000 },
458 { 0x3193, 0xf000 },
459 { 0x3194, 0x0000 },
460 { 0x3195, 0xf000 },
461 { 0x3196, 0x0000 },
462 { 0x3197, 0xf000 },
463 { 0x3198, 0x0000 },
464 { 0x3199, 0xf000 },
465 { 0x319a, 0x0000 },
466 { 0x319b, 0xf000 },
467 { 0x319c, 0x0000 },
468 { 0x319d, 0xf000 },
469 { 0x319e, 0x0000 },
470 { 0x319f, 0xf000 },
471 { 0x31a0, 0x0000 },
472 { 0x31a1, 0xf000 },
473 { 0x31a2, 0x0000 },
474 { 0x31a3, 0xf000 },
475 { 0x31a4, 0x0000 },
476 { 0x31a5, 0xf000 },
477 { 0x31a6, 0x0000 },
478 { 0x31a7, 0xf000 },
479 { 0x31a8, 0x0000 },
480 { 0x31a9, 0xf000 },
481 { 0x31aa, 0x0000 },
482 { 0x31ab, 0xf000 },
483 { 0x31ac, 0x0000 },
484 { 0x31ad, 0xf000 },
485 { 0x31ae, 0x0000 },
486 { 0x31af, 0xf000 },
487 { 0x31b0, 0x0000 },
488 { 0x31b1, 0xf000 },
489 { 0x31b2, 0x0000 },
490 { 0x31b3, 0xf000 },
491 { 0x31b4, 0x0000 },
492 { 0x31b5, 0xf000 },
493 { 0x31b6, 0x0000 },
494 { 0x31b7, 0xf000 },
495 { 0x31b8, 0x0000 },
496 { 0x31b9, 0xf000 },
497 { 0x31ba, 0x0000 },
498 { 0x31bb, 0xf000 },
499 { 0x31bc, 0x0000 },
500 { 0x31bd, 0xf000 },
501 { 0x31be, 0x0000 },
502 { 0x31bf, 0xf000 },
503 { 0x31c0, 0x0000 },
504 { 0x31c1, 0xf000 },
505 { 0x31c2, 0x0000 },
506 { 0x31c3, 0xf000 },
507 { 0x31c4, 0x0000 },
508 { 0x31c5, 0xf000 },
509 { 0x31c6, 0x0000 },
510 { 0x31c7, 0xf000 },
511 { 0x31c8, 0x0000 },
512 { 0x31c9, 0xf000 },
513 { 0x31ca, 0x0000 },
514 { 0x31cb, 0xf000 },
515 { 0x31cc, 0x0000 },
516 { 0x31cd, 0xf000 },
517 { 0x31ce, 0x0000 },
518 { 0x31cf, 0xf000 },
519 { 0x31d0, 0x0000 },
520 { 0x31d1, 0xf000 },
521 { 0x31d2, 0x0000 },
522 { 0x31d3, 0xf000 },
523 { 0x31d4, 0x0000 },
524 { 0x31d5, 0xf000 },
525 { 0x31d6, 0x0000 },
526 { 0x31d7, 0xf000 },
527 { 0x31d8, 0x0000 },
528 { 0x31d9, 0xf000 },
529 { 0x31da, 0x0000 },
530 { 0x31db, 0xf000 },
531 { 0x31dc, 0x0000 },
532 { 0x31dd, 0xf000 },
533 { 0x31de, 0x0000 },
534 { 0x31df, 0xf000 },
535 { 0x31e0, 0x0000 },
536 { 0x31e1, 0xf000 },
537 { 0x31e2, 0x0000 },
538 { 0x31e3, 0xf000 },
539 { 0x31e4, 0x0000 },
540 { 0x31e5, 0xf000 },
541 { 0x31e6, 0x0000 },
542 { 0x31e7, 0xf000 },
543 { 0x31e8, 0x0000 },
544 { 0x31e9, 0xf000 },
545 { 0x31ea, 0x0000 },
546 { 0x31eb, 0xf000 },
547 { 0x31ec, 0x0000 },
548 { 0x31ed, 0xf000 },
549 { 0x31ee, 0x0000 },
550 { 0x31ef, 0xf000 },
551 { 0x31f0, 0x0000 },
552 { 0x31f1, 0xf000 },
553 { 0x31f2, 0x0000 },
554 { 0x31f3, 0xf000 },
555 { 0x31f4, 0x0000 },
556 { 0x31f5, 0xf000 },
557 { 0x31f6, 0x0000 },
558 { 0x31f7, 0xf000 },
559 { 0x31f8, 0x0000 },
560 { 0x31f9, 0xf000 },
561 { 0x31fa, 0x0000 },
562 { 0x31fb, 0xf000 },
563 { 0x31fc, 0x0000 },
564 { 0x31fd, 0xf000 },
565 { 0x31fe, 0x0000 },
566 { 0x31ff, 0xf000 },
567 { 0x024d, 0xff50 },
568 { 0x0252, 0xff50 },
569 { 0x0259, 0x0112 },
570 { 0x025e, 0x0112 },
574 { 0x3081, 0x08FE },
575 { 0x3083, 0x00ED },
576 { 0x30C1, 0x08FE },
577 { 0x30C3, 0x00ED },
590 case 0: in wm5102_sysclk_ev()
603 for (i = 0; i < patch_size; i++) in wm5102_sysclk_ev()
613 return 0; in wm5102_sysclk_ev()
624 unsigned int v = 0; in wm5102_adsp_power_ev()
630 if (ret != 0) { in wm5102_adsp_power_ev()
675 return 0; in wm5102_out_comp_coeff_get()
684 int ret = 0; in wm5102_out_comp_coeff_put()
703 ucontrol->value.integer.value[0] = arizona->dac_comp_enabled; in wm5102_out_comp_switch_get()
706 return 0; in wm5102_out_comp_switch_get()
715 int ret = 0; in wm5102_out_comp_switch_put()
717 if (ucontrol->value.integer.value[0] > mc->max) in wm5102_out_comp_switch_put()
721 if (arizona->dac_comp_enabled != ucontrol->value.integer.value[0]) { in wm5102_out_comp_switch_put()
722 arizona->dac_comp_enabled = ucontrol->value.integer.value[0]; in wm5102_out_comp_switch_put()
735 0x0, 0x3, 0x5,
740 ARIZONA_OUT1_OSR_SHIFT, 0x7,
744 ARIZONA_OUT2_OSR_SHIFT, 0x7,
748 ARIZONA_OUT3_OSR_SHIFT, 0x7,
754 SOC_SINGLE(name " NG HPOUT1L Switch", base, 0, 1, 0), \
755 SOC_SINGLE(name " NG HPOUT1R Switch", base, 1, 1, 0), \
756 SOC_SINGLE(name " NG HPOUT2L Switch", base, 2, 1, 0), \
757 SOC_SINGLE(name " NG HPOUT2R Switch", base, 3, 1, 0), \
758 SOC_SINGLE(name " NG EPOUT Switch", base, 4, 1, 0), \
759 SOC_SINGLE(name " NG SPKOUTL Switch", base, 6, 1, 0), \
760 SOC_SINGLE(name " NG SPKOUTR Switch", base, 7, 1, 0), \
761 SOC_SINGLE(name " NG SPKDAT1L Switch", base, 8, 1, 0), \
762 SOC_SINGLE(name " NG SPKDAT1R Switch", base, 9, 1, 0)
766 ARIZONA_IN1_OSR_SHIFT, 1, 0),
768 ARIZONA_IN2_OSR_SHIFT, 1, 0),
770 ARIZONA_IN3_OSR_SHIFT, 1, 0),
773 ARIZONA_IN1L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv),
775 ARIZONA_IN1R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv),
777 ARIZONA_IN2L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv),
779 ARIZONA_IN2R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv),
781 ARIZONA_IN3L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv),
783 ARIZONA_IN3R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv),
786 ARIZONA_IN1L_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv),
788 ARIZONA_IN1R_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv),
790 ARIZONA_IN2L_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv),
792 ARIZONA_IN2R_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv),
794 ARIZONA_IN3L_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv),
796 ARIZONA_IN3R_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv),
808 24, 0, eq_tlv),
810 24, 0, eq_tlv),
812 24, 0, eq_tlv),
814 24, 0, eq_tlv),
816 24, 0, eq_tlv),
820 24, 0, eq_tlv),
822 24, 0, eq_tlv),
824 24, 0, eq_tlv),
826 24, 0, eq_tlv),
828 24, 0, eq_tlv),
832 24, 0, eq_tlv),
834 24, 0, eq_tlv),
836 24, 0, eq_tlv),
838 24, 0, eq_tlv),
840 24, 0, eq_tlv),
844 24, 0, eq_tlv),
846 24, 0, eq_tlv),
848 24, 0, eq_tlv),
850 24, 0, eq_tlv),
852 24, 0, eq_tlv),
880 SOC_ENUM("ISRC1 FSL", arizona_isrc_fsl[0]),
887 ARIZONA_NOISE_GEN_GAIN_SHIFT, 0x16, 0, noise_tlv),
900 ARIZONA_OUT4_OSR_SHIFT, 1, 0),
902 ARIZONA_OUT5_OSR_SHIFT, 1, 0),
917 0xbf, 0, digital_tlv),
920 0xbf, 0, digital_tlv),
922 ARIZONA_OUT3L_VOL_SHIFT, 0xbf, 0, digital_tlv),
925 0xbf, 0, digital_tlv),
928 0xbf, 0, digital_tlv),
930 SOC_ENUM("HPOUT1 OSR", wm5102_hpout_osr[0]),
935 ARIZONA_DRE1L_ENA_SHIFT, ARIZONA_DRE1R_ENA_SHIFT, 1, 0),
937 ARIZONA_DRE2L_ENA_SHIFT, ARIZONA_DRE2R_ENA_SHIFT, 1, 0),
939 ARIZONA_DRE3L_ENA_SHIFT, 1, 0),
942 ARIZONA_DRE_T_LOW_SHIFT, 63, 0),
945 ARIZONA_DRE_LOW_LEVEL_ABS_SHIFT, 15, 0),
954 ARIZONA_NGATE_ENA_SHIFT, 1, 0),
962 SOC_SINGLE_EXT("Output Compensation Switch", 0, 0, 1, 0,
999 WM_ADSP_FW_CONTROL("DSP1", 0),
1083 0, 1, 2, 3, 4, 6, 7, 8, 9,
1088 ARIZONA_AEC_LOOPBACK_SRC_SHIFT, 0xf,
1098 0, wm5102_sysclk_ev,
1102 ARIZONA_ASYNC_CLK_ENA_SHIFT, 0, arizona_clk_ev,
1105 ARIZONA_OPCLK_ENA_SHIFT, 0, NULL, 0),
1107 ARIZONA_OPCLK_ASYNC_ENA_SHIFT, 0, NULL, 0),
1109 SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD2", 0, 0),
1110 SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD3", 0, 0),
1111 SND_SOC_DAPM_REGULATOR_SUPPLY("CPVDD", 20, 0),
1112 SND_SOC_DAPM_REGULATOR_SUPPLY("MICVDD", 0, SND_SOC_DAPM_REGULATOR_BYPASS),
1113 SND_SOC_DAPM_REGULATOR_SUPPLY("SPKVDDL", 0, 0),
1114 SND_SOC_DAPM_REGULATOR_SUPPLY("SPKVDDR", 0, 0),
1130 0, NULL, 0, arizona_in_ev,
1134 0, NULL, 0, arizona_in_ev,
1138 0, NULL, 0, arizona_in_ev,
1142 0, NULL, 0, arizona_in_ev,
1146 0, NULL, 0, arizona_in_ev,
1150 0, NULL, 0, arizona_in_ev,
1155 ARIZONA_MICB1_ENA_SHIFT, 0, NULL, 0),
1157 ARIZONA_MICB2_ENA_SHIFT, 0, NULL, 0),
1159 ARIZONA_MICB3_ENA_SHIFT, 0, NULL, 0),
1162 ARIZONA_NOISE_GEN_ENA_SHIFT, 0, NULL, 0),
1165 ARIZONA_TONE1_ENA_SHIFT, 0, NULL, 0),
1167 ARIZONA_TONE2_ENA_SHIFT, 0, NULL, 0),
1170 ARIZONA_MICMUTE_MIX_ENA_SHIFT, 0, NULL, 0),
1172 SND_SOC_DAPM_PGA("EQ1", ARIZONA_EQ1_1, ARIZONA_EQ1_ENA_SHIFT, 0, NULL, 0),
1173 SND_SOC_DAPM_PGA("EQ2", ARIZONA_EQ2_1, ARIZONA_EQ2_ENA_SHIFT, 0, NULL, 0),
1174 SND_SOC_DAPM_PGA("EQ3", ARIZONA_EQ3_1, ARIZONA_EQ3_ENA_SHIFT, 0, NULL, 0),
1175 SND_SOC_DAPM_PGA("EQ4", ARIZONA_EQ4_1, ARIZONA_EQ4_ENA_SHIFT, 0, NULL, 0),
1177 SND_SOC_DAPM_PGA("DRC1L", ARIZONA_DRC1_CTRL1, ARIZONA_DRC1L_ENA_SHIFT, 0,
1178 NULL, 0),
1179 SND_SOC_DAPM_PGA("DRC1R", ARIZONA_DRC1_CTRL1, ARIZONA_DRC1R_ENA_SHIFT, 0,
1180 NULL, 0),
1182 SND_SOC_DAPM_PGA("LHPF1", ARIZONA_HPLPF1_1, ARIZONA_LHPF1_ENA_SHIFT, 0,
1183 NULL, 0),
1184 SND_SOC_DAPM_PGA("LHPF2", ARIZONA_HPLPF2_1, ARIZONA_LHPF2_ENA_SHIFT, 0,
1185 NULL, 0),
1186 SND_SOC_DAPM_PGA("LHPF3", ARIZONA_HPLPF3_1, ARIZONA_LHPF3_ENA_SHIFT, 0,
1187 NULL, 0),
1188 SND_SOC_DAPM_PGA("LHPF4", ARIZONA_HPLPF4_1, ARIZONA_LHPF4_ENA_SHIFT, 0,
1189 NULL, 0),
1192 0, NULL, 0),
1194 0, NULL, 0),
1196 SND_SOC_DAPM_PGA("ASRC1L", ARIZONA_ASRC_ENABLE, ARIZONA_ASRC1L_ENA_SHIFT, 0,
1197 NULL, 0),
1198 SND_SOC_DAPM_PGA("ASRC1R", ARIZONA_ASRC_ENABLE, ARIZONA_ASRC1R_ENA_SHIFT, 0,
1199 NULL, 0),
1200 SND_SOC_DAPM_PGA("ASRC2L", ARIZONA_ASRC_ENABLE, ARIZONA_ASRC2L_ENA_SHIFT, 0,
1201 NULL, 0),
1202 SND_SOC_DAPM_PGA("ASRC2R", ARIZONA_ASRC_ENABLE, ARIZONA_ASRC2R_ENA_SHIFT, 0,
1203 NULL, 0),
1206 ARIZONA_ISRC1_INT0_ENA_SHIFT, 0, NULL, 0),
1208 ARIZONA_ISRC1_INT1_ENA_SHIFT, 0, NULL, 0),
1211 ARIZONA_ISRC1_DEC0_ENA_SHIFT, 0, NULL, 0),
1213 ARIZONA_ISRC1_DEC1_ENA_SHIFT, 0, NULL, 0),
1216 ARIZONA_ISRC2_INT0_ENA_SHIFT, 0, NULL, 0),
1218 ARIZONA_ISRC2_INT1_ENA_SHIFT, 0, NULL, 0),
1221 ARIZONA_ISRC2_DEC0_ENA_SHIFT, 0, NULL, 0),
1223 ARIZONA_ISRC2_DEC1_ENA_SHIFT, 0, NULL, 0),
1225 SND_SOC_DAPM_AIF_OUT("AIF1TX1", NULL, 0,
1226 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX1_ENA_SHIFT, 0),
1228 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX2_ENA_SHIFT, 0),
1230 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX3_ENA_SHIFT, 0),
1232 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX4_ENA_SHIFT, 0),
1234 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX5_ENA_SHIFT, 0),
1236 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX6_ENA_SHIFT, 0),
1238 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX7_ENA_SHIFT, 0),
1240 ARIZONA_AIF1_TX_ENABLES, ARIZONA_AIF1TX8_ENA_SHIFT, 0),
1242 SND_SOC_DAPM_AIF_IN("AIF1RX1", NULL, 0,
1243 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX1_ENA_SHIFT, 0),
1245 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX2_ENA_SHIFT, 0),
1247 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX3_ENA_SHIFT, 0),
1249 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX4_ENA_SHIFT, 0),
1251 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX5_ENA_SHIFT, 0),
1253 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX6_ENA_SHIFT, 0),
1255 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX7_ENA_SHIFT, 0),
1257 ARIZONA_AIF1_RX_ENABLES, ARIZONA_AIF1RX8_ENA_SHIFT, 0),
1259 SND_SOC_DAPM_AIF_OUT("AIF2TX1", NULL, 0,
1260 ARIZONA_AIF2_TX_ENABLES, ARIZONA_AIF2TX1_ENA_SHIFT, 0),
1262 ARIZONA_AIF2_TX_ENABLES, ARIZONA_AIF2TX2_ENA_SHIFT, 0),
1264 SND_SOC_DAPM_AIF_IN("AIF2RX1", NULL, 0,
1265 ARIZONA_AIF2_RX_ENABLES, ARIZONA_AIF2RX1_ENA_SHIFT, 0),
1267 ARIZONA_AIF2_RX_ENABLES, ARIZONA_AIF2RX2_ENA_SHIFT, 0),
1269 SND_SOC_DAPM_AIF_OUT("AIF3TX1", NULL, 0,
1270 ARIZONA_AIF3_TX_ENABLES, ARIZONA_AIF3TX1_ENA_SHIFT, 0),
1272 ARIZONA_AIF3_TX_ENABLES, ARIZONA_AIF3TX2_ENA_SHIFT, 0),
1274 SND_SOC_DAPM_AIF_IN("AIF3RX1", NULL, 0,
1275 ARIZONA_AIF3_RX_ENABLES, ARIZONA_AIF3RX1_ENA_SHIFT, 0),
1277 ARIZONA_AIF3_RX_ENABLES, ARIZONA_AIF3RX2_ENA_SHIFT, 0),
1279 SND_SOC_DAPM_AIF_OUT("SLIMTX1", NULL, 0,
1281 ARIZONA_SLIMTX1_ENA_SHIFT, 0),
1284 ARIZONA_SLIMTX2_ENA_SHIFT, 0),
1287 ARIZONA_SLIMTX3_ENA_SHIFT, 0),
1290 ARIZONA_SLIMTX4_ENA_SHIFT, 0),
1293 ARIZONA_SLIMTX5_ENA_SHIFT, 0),
1296 ARIZONA_SLIMTX6_ENA_SHIFT, 0),
1299 ARIZONA_SLIMTX7_ENA_SHIFT, 0),
1302 ARIZONA_SLIMTX8_ENA_SHIFT, 0),
1304 SND_SOC_DAPM_AIF_IN("SLIMRX1", NULL, 0,
1306 ARIZONA_SLIMRX1_ENA_SHIFT, 0),
1309 ARIZONA_SLIMRX2_ENA_SHIFT, 0),
1312 ARIZONA_SLIMRX3_ENA_SHIFT, 0),
1315 ARIZONA_SLIMRX4_ENA_SHIFT, 0),
1318 ARIZONA_SLIMRX5_ENA_SHIFT, 0),
1321 ARIZONA_SLIMRX6_ENA_SHIFT, 0),
1324 ARIZONA_SLIMRX7_ENA_SHIFT, 0),
1327 ARIZONA_SLIMRX8_ENA_SHIFT, 0),
1332 ARIZONA_AEC_LOOPBACK_ENA_SHIFT, 0, &wm5102_aec_loopback_mux),
1335 ARIZONA_OUT1L_ENA_SHIFT, 0, NULL, 0, arizona_hp_ev,
1339 ARIZONA_OUT1R_ENA_SHIFT, 0, NULL, 0, arizona_hp_ev,
1343 ARIZONA_OUT2L_ENA_SHIFT, 0, NULL, 0, arizona_out_ev,
1347 ARIZONA_OUT2R_ENA_SHIFT, 0, NULL, 0, arizona_out_ev,
1351 ARIZONA_OUT3L_ENA_SHIFT, 0, NULL, 0, arizona_out_ev,
1355 ARIZONA_OUT5L_ENA_SHIFT, 0, NULL, 0, arizona_out_ev,
1358 ARIZONA_OUT5R_ENA_SHIFT, 0, NULL, 0, arizona_out_ev,
1431 WM_ADSP2("DSP1", 0, wm5102_adsp_power_ev),
1757 return arizona_set_fll(&wm5102->fll[0], source, Fref, Fout); in wm5102_set_fll()
1761 return arizona_set_fll_refclk(&wm5102->fll[0], source, Fref, in wm5102_set_fll()
1932 return wm_adsp_compr_open(&priv->core.adsp[0], stream); in wm5102_open()
1941 ret = wm_adsp_compr_handle_irq(&priv->core.adsp[0]); in wm5102_adsp2_irq()
1959 ret = wm_adsp2_component_probe(&priv->core.adsp[0], component); in wm5102_component_probe()
1969 if (ret < 0) in wm5102_component_probe()
1978 return 0; in wm5102_component_probe()
1981 wm_adsp2_component_remove(&priv->core.adsp[0], component); in wm5102_component_probe()
1990 wm_adsp2_component_remove(&priv->core.adsp[0], component); in wm5102_component_remove()
1995 #define WM5102_DIG_VU 0x0200
2052 if (ret < 0) in wm5102_probe()
2064 wm5102->core.adsp[0].part = "wm5102"; in wm5102_probe()
2065 wm5102->core.adsp[0].cs_dsp.num = 1; in wm5102_probe()
2066 wm5102->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in wm5102_probe()
2067 wm5102->core.adsp[0].cs_dsp.base = ARIZONA_DSP1_CONTROL_1; in wm5102_probe()
2068 wm5102->core.adsp[0].cs_dsp.dev = arizona->dev; in wm5102_probe()
2069 wm5102->core.adsp[0].cs_dsp.regmap = arizona->regmap; in wm5102_probe()
2070 wm5102->core.adsp[0].cs_dsp.mem = wm5102_dsp1_regions; in wm5102_probe()
2071 wm5102->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(wm5102_dsp1_regions); in wm5102_probe()
2073 ret = wm_adsp2_init(&wm5102->core.adsp[0]); in wm5102_probe()
2074 if (ret != 0) in wm5102_probe()
2082 for (i = 0; i < ARRAY_SIZE(wm5102->fll); i++) in wm5102_probe()
2087 &wm5102->fll[0]); in wm5102_probe()
2094 ARIZONA_SAMPLE_RATE_2_MASK, 0x11); in wm5102_probe()
2096 ARIZONA_SAMPLE_RATE_3_MASK, 0x12); in wm5102_probe()
2098 for (i = 0; i < ARRAY_SIZE(wm5102_dai); i++) in wm5102_probe()
2102 for (i = 0; i < ARRAY_SIZE(wm5102_digital_vu); i++) in wm5102_probe()
2112 if (ret != 0) { in wm5102_probe()
2118 if (ret != 0) in wm5102_probe()
2126 if (ret < 0) in wm5102_probe()
2129 if (ret < 0) in wm5102_probe()
2136 if (ret < 0) { in wm5102_probe()
2146 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5102_probe()
2162 wm_adsp2_remove(&wm5102->core.adsp[0]); in wm5102_remove()
2166 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5102_remove()