Lines Matching +full:micbias +full:- +full:input
1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm2200.c -- WM2200 ALSA SoC Audio driver
169 { 0x000B, 0x0000 }, /* R11 - Tone Generator 1 */
170 { 0x0102, 0x0000 }, /* R258 - Clocking 3 */
171 { 0x0103, 0x0011 }, /* R259 - Clocking 4 */
172 { 0x0111, 0x0000 }, /* R273 - FLL Control 1 */
173 { 0x0112, 0x0000 }, /* R274 - FLL Control 2 */
174 { 0x0113, 0x0000 }, /* R275 - FLL Control 3 */
175 { 0x0114, 0x0000 }, /* R276 - FLL Control 4 */
176 { 0x0116, 0x0177 }, /* R278 - FLL Control 6 */
177 { 0x0117, 0x0004 }, /* R279 - FLL Control 7 */
178 { 0x0119, 0x0000 }, /* R281 - FLL EFS 1 */
179 { 0x011A, 0x0002 }, /* R282 - FLL EFS 2 */
180 { 0x0200, 0x0000 }, /* R512 - Mic Charge Pump 1 */
181 { 0x0201, 0x03FF }, /* R513 - Mic Charge Pump 2 */
182 { 0x0202, 0x9BDE }, /* R514 - DM Charge Pump 1 */
183 { 0x020C, 0x0000 }, /* R524 - Mic Bias Ctrl 1 */
184 { 0x020D, 0x0000 }, /* R525 - Mic Bias Ctrl 2 */
185 { 0x020F, 0x0000 }, /* R527 - Ear Piece Ctrl 1 */
186 { 0x0210, 0x0000 }, /* R528 - Ear Piece Ctrl 2 */
187 { 0x0301, 0x0000 }, /* R769 - Input Enables */
188 { 0x0302, 0x2240 }, /* R770 - IN1L Control */
189 { 0x0303, 0x0040 }, /* R771 - IN1R Control */
190 { 0x0304, 0x2240 }, /* R772 - IN2L Control */
191 { 0x0305, 0x0040 }, /* R773 - IN2R Control */
192 { 0x0306, 0x2240 }, /* R774 - IN3L Control */
193 { 0x0307, 0x0040 }, /* R775 - IN3R Control */
194 { 0x030A, 0x0000 }, /* R778 - RXANC_SRC */
195 { 0x030B, 0x0022 }, /* R779 - Input Volume Ramp */
196 { 0x030C, 0x0180 }, /* R780 - ADC Digital Volume 1L */
197 { 0x030D, 0x0180 }, /* R781 - ADC Digital Volume 1R */
198 { 0x030E, 0x0180 }, /* R782 - ADC Digital Volume 2L */
199 { 0x030F, 0x0180 }, /* R783 - ADC Digital Volume 2R */
200 { 0x0310, 0x0180 }, /* R784 - ADC Digital Volume 3L */
201 { 0x0311, 0x0180 }, /* R785 - ADC Digital Volume 3R */
202 { 0x0400, 0x0000 }, /* R1024 - Output Enables */
203 { 0x0401, 0x0000 }, /* R1025 - DAC Volume Limit 1L */
204 { 0x0402, 0x0000 }, /* R1026 - DAC Volume Limit 1R */
205 { 0x0403, 0x0000 }, /* R1027 - DAC Volume Limit 2L */
206 { 0x0404, 0x0000 }, /* R1028 - DAC Volume Limit 2R */
207 { 0x0409, 0x0000 }, /* R1033 - DAC AEC Control 1 */
208 { 0x040A, 0x0022 }, /* R1034 - Output Volume Ramp */
209 { 0x040B, 0x0180 }, /* R1035 - DAC Digital Volume 1L */
210 { 0x040C, 0x0180 }, /* R1036 - DAC Digital Volume 1R */
211 { 0x040D, 0x0180 }, /* R1037 - DAC Digital Volume 2L */
212 { 0x040E, 0x0180 }, /* R1038 - DAC Digital Volume 2R */
213 { 0x0417, 0x0069 }, /* R1047 - PDM 1 */
214 { 0x0418, 0x0000 }, /* R1048 - PDM 2 */
215 { 0x0500, 0x0000 }, /* R1280 - Audio IF 1_1 */
216 { 0x0501, 0x0008 }, /* R1281 - Audio IF 1_2 */
217 { 0x0502, 0x0000 }, /* R1282 - Audio IF 1_3 */
218 { 0x0503, 0x0000 }, /* R1283 - Audio IF 1_4 */
219 { 0x0504, 0x0000 }, /* R1284 - Audio IF 1_5 */
220 { 0x0505, 0x0001 }, /* R1285 - Audio IF 1_6 */
221 { 0x0506, 0x0001 }, /* R1286 - Audio IF 1_7 */
222 { 0x0507, 0x0000 }, /* R1287 - Audio IF 1_8 */
223 { 0x0508, 0x0000 }, /* R1288 - Audio IF 1_9 */
224 { 0x0509, 0x0000 }, /* R1289 - Audio IF 1_10 */
225 { 0x050A, 0x0000 }, /* R1290 - Audio IF 1_11 */
226 { 0x050B, 0x0000 }, /* R1291 - Audio IF 1_12 */
227 { 0x050C, 0x0000 }, /* R1292 - Audio IF 1_13 */
228 { 0x050D, 0x0000 }, /* R1293 - Audio IF 1_14 */
229 { 0x050E, 0x0000 }, /* R1294 - Audio IF 1_15 */
230 { 0x050F, 0x0000 }, /* R1295 - Audio IF 1_16 */
231 { 0x0510, 0x0000 }, /* R1296 - Audio IF 1_17 */
232 { 0x0511, 0x0000 }, /* R1297 - Audio IF 1_18 */
233 { 0x0512, 0x0000 }, /* R1298 - Audio IF 1_19 */
234 { 0x0513, 0x0000 }, /* R1299 - Audio IF 1_20 */
235 { 0x0514, 0x0000 }, /* R1300 - Audio IF 1_21 */
236 { 0x0515, 0x0001 }, /* R1301 - Audio IF 1_22 */
237 { 0x0600, 0x0000 }, /* R1536 - OUT1LMIX Input 1 Source */
238 { 0x0601, 0x0080 }, /* R1537 - OUT1LMIX Input 1 Volume */
239 { 0x0602, 0x0000 }, /* R1538 - OUT1LMIX Input 2 Source */
240 { 0x0603, 0x0080 }, /* R1539 - OUT1LMIX Input 2 Volume */
241 { 0x0604, 0x0000 }, /* R1540 - OUT1LMIX Input 3 Source */
242 { 0x0605, 0x0080 }, /* R1541 - OUT1LMIX Input 3 Volume */
243 { 0x0606, 0x0000 }, /* R1542 - OUT1LMIX Input 4 Source */
244 { 0x0607, 0x0080 }, /* R1543 - OUT1LMIX Input 4 Volume */
245 { 0x0608, 0x0000 }, /* R1544 - OUT1RMIX Input 1 Source */
246 { 0x0609, 0x0080 }, /* R1545 - OUT1RMIX Input 1 Volume */
247 { 0x060A, 0x0000 }, /* R1546 - OUT1RMIX Input 2 Source */
248 { 0x060B, 0x0080 }, /* R1547 - OUT1RMIX Input 2 Volume */
249 { 0x060C, 0x0000 }, /* R1548 - OUT1RMIX Input 3 Source */
250 { 0x060D, 0x0080 }, /* R1549 - OUT1RMIX Input 3 Volume */
251 { 0x060E, 0x0000 }, /* R1550 - OUT1RMIX Input 4 Source */
252 { 0x060F, 0x0080 }, /* R1551 - OUT1RMIX Input 4 Volume */
253 { 0x0610, 0x0000 }, /* R1552 - OUT2LMIX Input 1 Source */
254 { 0x0611, 0x0080 }, /* R1553 - OUT2LMIX Input 1 Volume */
255 { 0x0612, 0x0000 }, /* R1554 - OUT2LMIX Input 2 Source */
256 { 0x0613, 0x0080 }, /* R1555 - OUT2LMIX Input 2 Volume */
257 { 0x0614, 0x0000 }, /* R1556 - OUT2LMIX Input 3 Source */
258 { 0x0615, 0x0080 }, /* R1557 - OUT2LMIX Input 3 Volume */
259 { 0x0616, 0x0000 }, /* R1558 - OUT2LMIX Input 4 Source */
260 { 0x0617, 0x0080 }, /* R1559 - OUT2LMIX Input 4 Volume */
261 { 0x0618, 0x0000 }, /* R1560 - OUT2RMIX Input 1 Source */
262 { 0x0619, 0x0080 }, /* R1561 - OUT2RMIX Input 1 Volume */
263 { 0x061A, 0x0000 }, /* R1562 - OUT2RMIX Input 2 Source */
264 { 0x061B, 0x0080 }, /* R1563 - OUT2RMIX Input 2 Volume */
265 { 0x061C, 0x0000 }, /* R1564 - OUT2RMIX Input 3 Source */
266 { 0x061D, 0x0080 }, /* R1565 - OUT2RMIX Input 3 Volume */
267 { 0x061E, 0x0000 }, /* R1566 - OUT2RMIX Input 4 Source */
268 { 0x061F, 0x0080 }, /* R1567 - OUT2RMIX Input 4 Volume */
269 { 0x0620, 0x0000 }, /* R1568 - AIF1TX1MIX Input 1 Source */
270 { 0x0621, 0x0080 }, /* R1569 - AIF1TX1MIX Input 1 Volume */
271 { 0x0622, 0x0000 }, /* R1570 - AIF1TX1MIX Input 2 Source */
272 { 0x0623, 0x0080 }, /* R1571 - AIF1TX1MIX Input 2 Volume */
273 { 0x0624, 0x0000 }, /* R1572 - AIF1TX1MIX Input 3 Source */
274 { 0x0625, 0x0080 }, /* R1573 - AIF1TX1MIX Input 3 Volume */
275 { 0x0626, 0x0000 }, /* R1574 - AIF1TX1MIX Input 4 Source */
276 { 0x0627, 0x0080 }, /* R1575 - AIF1TX1MIX Input 4 Volume */
277 { 0x0628, 0x0000 }, /* R1576 - AIF1TX2MIX Input 1 Source */
278 { 0x0629, 0x0080 }, /* R1577 - AIF1TX2MIX Input 1 Volume */
279 { 0x062A, 0x0000 }, /* R1578 - AIF1TX2MIX Input 2 Source */
280 { 0x062B, 0x0080 }, /* R1579 - AIF1TX2MIX Input 2 Volume */
281 { 0x062C, 0x0000 }, /* R1580 - AIF1TX2MIX Input 3 Source */
282 { 0x062D, 0x0080 }, /* R1581 - AIF1TX2MIX Input 3 Volume */
283 { 0x062E, 0x0000 }, /* R1582 - AIF1TX2MIX Input 4 Source */
284 { 0x062F, 0x0080 }, /* R1583 - AIF1TX2MIX Input 4 Volume */
285 { 0x0630, 0x0000 }, /* R1584 - AIF1TX3MIX Input 1 Source */
286 { 0x0631, 0x0080 }, /* R1585 - AIF1TX3MIX Input 1 Volume */
287 { 0x0632, 0x0000 }, /* R1586 - AIF1TX3MIX Input 2 Source */
288 { 0x0633, 0x0080 }, /* R1587 - AIF1TX3MIX Input 2 Volume */
289 { 0x0634, 0x0000 }, /* R1588 - AIF1TX3MIX Input 3 Source */
290 { 0x0635, 0x0080 }, /* R1589 - AIF1TX3MIX Input 3 Volume */
291 { 0x0636, 0x0000 }, /* R1590 - AIF1TX3MIX Input 4 Source */
292 { 0x0637, 0x0080 }, /* R1591 - AIF1TX3MIX Input 4 Volume */
293 { 0x0638, 0x0000 }, /* R1592 - AIF1TX4MIX Input 1 Source */
294 { 0x0639, 0x0080 }, /* R1593 - AIF1TX4MIX Input 1 Volume */
295 { 0x063A, 0x0000 }, /* R1594 - AIF1TX4MIX Input 2 Source */
296 { 0x063B, 0x0080 }, /* R1595 - AIF1TX4MIX Input 2 Volume */
297 { 0x063C, 0x0000 }, /* R1596 - AIF1TX4MIX Input 3 Source */
298 { 0x063D, 0x0080 }, /* R1597 - AIF1TX4MIX Input 3 Volume */
299 { 0x063E, 0x0000 }, /* R1598 - AIF1TX4MIX Input 4 Source */
300 { 0x063F, 0x0080 }, /* R1599 - AIF1TX4MIX Input 4 Volume */
301 { 0x0640, 0x0000 }, /* R1600 - AIF1TX5MIX Input 1 Source */
302 { 0x0641, 0x0080 }, /* R1601 - AIF1TX5MIX Input 1 Volume */
303 { 0x0642, 0x0000 }, /* R1602 - AIF1TX5MIX Input 2 Source */
304 { 0x0643, 0x0080 }, /* R1603 - AIF1TX5MIX Input 2 Volume */
305 { 0x0644, 0x0000 }, /* R1604 - AIF1TX5MIX Input 3 Source */
306 { 0x0645, 0x0080 }, /* R1605 - AIF1TX5MIX Input 3 Volume */
307 { 0x0646, 0x0000 }, /* R1606 - AIF1TX5MIX Input 4 Source */
308 { 0x0647, 0x0080 }, /* R1607 - AIF1TX5MIX Input 4 Volume */
309 { 0x0648, 0x0000 }, /* R1608 - AIF1TX6MIX Input 1 Source */
310 { 0x0649, 0x0080 }, /* R1609 - AIF1TX6MIX Input 1 Volume */
311 { 0x064A, 0x0000 }, /* R1610 - AIF1TX6MIX Input 2 Source */
312 { 0x064B, 0x0080 }, /* R1611 - AIF1TX6MIX Input 2 Volume */
313 { 0x064C, 0x0000 }, /* R1612 - AIF1TX6MIX Input 3 Source */
314 { 0x064D, 0x0080 }, /* R1613 - AIF1TX6MIX Input 3 Volume */
315 { 0x064E, 0x0000 }, /* R1614 - AIF1TX6MIX Input 4 Source */
316 { 0x064F, 0x0080 }, /* R1615 - AIF1TX6MIX Input 4 Volume */
317 { 0x0650, 0x0000 }, /* R1616 - EQLMIX Input 1 Source */
318 { 0x0651, 0x0080 }, /* R1617 - EQLMIX Input 1 Volume */
319 { 0x0652, 0x0000 }, /* R1618 - EQLMIX Input 2 Source */
320 { 0x0653, 0x0080 }, /* R1619 - EQLMIX Input 2 Volume */
321 { 0x0654, 0x0000 }, /* R1620 - EQLMIX Input 3 Source */
322 { 0x0655, 0x0080 }, /* R1621 - EQLMIX Input 3 Volume */
323 { 0x0656, 0x0000 }, /* R1622 - EQLMIX Input 4 Source */
324 { 0x0657, 0x0080 }, /* R1623 - EQLMIX Input 4 Volume */
325 { 0x0658, 0x0000 }, /* R1624 - EQRMIX Input 1 Source */
326 { 0x0659, 0x0080 }, /* R1625 - EQRMIX Input 1 Volume */
327 { 0x065A, 0x0000 }, /* R1626 - EQRMIX Input 2 Source */
328 { 0x065B, 0x0080 }, /* R1627 - EQRMIX Input 2 Volume */
329 { 0x065C, 0x0000 }, /* R1628 - EQRMIX Input 3 Source */
330 { 0x065D, 0x0080 }, /* R1629 - EQRMIX Input 3 Volume */
331 { 0x065E, 0x0000 }, /* R1630 - EQRMIX Input 4 Source */
332 { 0x065F, 0x0080 }, /* R1631 - EQRMIX Input 4 Volume */
333 { 0x0660, 0x0000 }, /* R1632 - LHPF1MIX Input 1 Source */
334 { 0x0661, 0x0080 }, /* R1633 - LHPF1MIX Input 1 Volume */
335 { 0x0662, 0x0000 }, /* R1634 - LHPF1MIX Input 2 Source */
336 { 0x0663, 0x0080 }, /* R1635 - LHPF1MIX Input 2 Volume */
337 { 0x0664, 0x0000 }, /* R1636 - LHPF1MIX Input 3 Source */
338 { 0x0665, 0x0080 }, /* R1637 - LHPF1MIX Input 3 Volume */
339 { 0x0666, 0x0000 }, /* R1638 - LHPF1MIX Input 4 Source */
340 { 0x0667, 0x0080 }, /* R1639 - LHPF1MIX Input 4 Volume */
341 { 0x0668, 0x0000 }, /* R1640 - LHPF2MIX Input 1 Source */
342 { 0x0669, 0x0080 }, /* R1641 - LHPF2MIX Input 1 Volume */
343 { 0x066A, 0x0000 }, /* R1642 - LHPF2MIX Input 2 Source */
344 { 0x066B, 0x0080 }, /* R1643 - LHPF2MIX Input 2 Volume */
345 { 0x066C, 0x0000 }, /* R1644 - LHPF2MIX Input 3 Source */
346 { 0x066D, 0x0080 }, /* R1645 - LHPF2MIX Input 3 Volume */
347 { 0x066E, 0x0000 }, /* R1646 - LHPF2MIX Input 4 Source */
348 { 0x066F, 0x0080 }, /* R1647 - LHPF2MIX Input 4 Volume */
349 { 0x0670, 0x0000 }, /* R1648 - DSP1LMIX Input 1 Source */
350 { 0x0671, 0x0080 }, /* R1649 - DSP1LMIX Input 1 Volume */
351 { 0x0672, 0x0000 }, /* R1650 - DSP1LMIX Input 2 Source */
352 { 0x0673, 0x0080 }, /* R1651 - DSP1LMIX Input 2 Volume */
353 { 0x0674, 0x0000 }, /* R1652 - DSP1LMIX Input 3 Source */
354 { 0x0675, 0x0080 }, /* R1653 - DSP1LMIX Input 3 Volume */
355 { 0x0676, 0x0000 }, /* R1654 - DSP1LMIX Input 4 Source */
356 { 0x0677, 0x0080 }, /* R1655 - DSP1LMIX Input 4 Volume */
357 { 0x0678, 0x0000 }, /* R1656 - DSP1RMIX Input 1 Source */
358 { 0x0679, 0x0080 }, /* R1657 - DSP1RMIX Input 1 Volume */
359 { 0x067A, 0x0000 }, /* R1658 - DSP1RMIX Input 2 Source */
360 { 0x067B, 0x0080 }, /* R1659 - DSP1RMIX Input 2 Volume */
361 { 0x067C, 0x0000 }, /* R1660 - DSP1RMIX Input 3 Source */
362 { 0x067D, 0x0080 }, /* R1661 - DSP1RMIX Input 3 Volume */
363 { 0x067E, 0x0000 }, /* R1662 - DSP1RMIX Input 4 Source */
364 { 0x067F, 0x0080 }, /* R1663 - DSP1RMIX Input 4 Volume */
365 { 0x0680, 0x0000 }, /* R1664 - DSP1AUX1MIX Input 1 Source */
366 { 0x0681, 0x0000 }, /* R1665 - DSP1AUX2MIX Input 1 Source */
367 { 0x0682, 0x0000 }, /* R1666 - DSP1AUX3MIX Input 1 Source */
368 { 0x0683, 0x0000 }, /* R1667 - DSP1AUX4MIX Input 1 Source */
369 { 0x0684, 0x0000 }, /* R1668 - DSP1AUX5MIX Input 1 Source */
370 { 0x0685, 0x0000 }, /* R1669 - DSP1AUX6MIX Input 1 Source */
371 { 0x0686, 0x0000 }, /* R1670 - DSP2LMIX Input 1 Source */
372 { 0x0687, 0x0080 }, /* R1671 - DSP2LMIX Input 1 Volume */
373 { 0x0688, 0x0000 }, /* R1672 - DSP2LMIX Input 2 Source */
374 { 0x0689, 0x0080 }, /* R1673 - DSP2LMIX Input 2 Volume */
375 { 0x068A, 0x0000 }, /* R1674 - DSP2LMIX Input 3 Source */
376 { 0x068B, 0x0080 }, /* R1675 - DSP2LMIX Input 3 Volume */
377 { 0x068C, 0x0000 }, /* R1676 - DSP2LMIX Input 4 Source */
378 { 0x068D, 0x0080 }, /* R1677 - DSP2LMIX Input 4 Volume */
379 { 0x068E, 0x0000 }, /* R1678 - DSP2RMIX Input 1 Source */
380 { 0x068F, 0x0080 }, /* R1679 - DSP2RMIX Input 1 Volume */
381 { 0x0690, 0x0000 }, /* R1680 - DSP2RMIX Input 2 Source */
382 { 0x0691, 0x0080 }, /* R1681 - DSP2RMIX Input 2 Volume */
383 { 0x0692, 0x0000 }, /* R1682 - DSP2RMIX Input 3 Source */
384 { 0x0693, 0x0080 }, /* R1683 - DSP2RMIX Input 3 Volume */
385 { 0x0694, 0x0000 }, /* R1684 - DSP2RMIX Input 4 Source */
386 { 0x0695, 0x0080 }, /* R1685 - DSP2RMIX Input 4 Volume */
387 { 0x0696, 0x0000 }, /* R1686 - DSP2AUX1MIX Input 1 Source */
388 { 0x0697, 0x0000 }, /* R1687 - DSP2AUX2MIX Input 1 Source */
389 { 0x0698, 0x0000 }, /* R1688 - DSP2AUX3MIX Input 1 Source */
390 { 0x0699, 0x0000 }, /* R1689 - DSP2AUX4MIX Input 1 Source */
391 { 0x069A, 0x0000 }, /* R1690 - DSP2AUX5MIX Input 1 Source */
392 { 0x069B, 0x0000 }, /* R1691 - DSP2AUX6MIX Input 1 Source */
393 { 0x0700, 0xA101 }, /* R1792 - GPIO CTRL 1 */
394 { 0x0701, 0xA101 }, /* R1793 - GPIO CTRL 2 */
395 { 0x0702, 0xA101 }, /* R1794 - GPIO CTRL 3 */
396 { 0x0703, 0xA101 }, /* R1795 - GPIO CTRL 4 */
397 { 0x0709, 0x0000 }, /* R1801 - Misc Pad Ctrl 1 */
398 { 0x0801, 0x00FF }, /* R2049 - Interrupt Status 1 Mask */
399 { 0x0804, 0xFFFF }, /* R2052 - Interrupt Status 2 Mask */
400 { 0x0808, 0x0000 }, /* R2056 - Interrupt Control */
401 { 0x0900, 0x0000 }, /* R2304 - EQL_1 */
402 { 0x0901, 0x0000 }, /* R2305 - EQL_2 */
403 { 0x0902, 0x0000 }, /* R2306 - EQL_3 */
404 { 0x0903, 0x0000 }, /* R2307 - EQL_4 */
405 { 0x0904, 0x0000 }, /* R2308 - EQL_5 */
406 { 0x0905, 0x0000 }, /* R2309 - EQL_6 */
407 { 0x0906, 0x0000 }, /* R2310 - EQL_7 */
408 { 0x0907, 0x0000 }, /* R2311 - EQL_8 */
409 { 0x0908, 0x0000 }, /* R2312 - EQL_9 */
410 { 0x0909, 0x0000 }, /* R2313 - EQL_10 */
411 { 0x090A, 0x0000 }, /* R2314 - EQL_11 */
412 { 0x090B, 0x0000 }, /* R2315 - EQL_12 */
413 { 0x090C, 0x0000 }, /* R2316 - EQL_13 */
414 { 0x090D, 0x0000 }, /* R2317 - EQL_14 */
415 { 0x090E, 0x0000 }, /* R2318 - EQL_15 */
416 { 0x090F, 0x0000 }, /* R2319 - EQL_16 */
417 { 0x0910, 0x0000 }, /* R2320 - EQL_17 */
418 { 0x0911, 0x0000 }, /* R2321 - EQL_18 */
419 { 0x0912, 0x0000 }, /* R2322 - EQL_19 */
420 { 0x0913, 0x0000 }, /* R2323 - EQL_20 */
421 { 0x0916, 0x0000 }, /* R2326 - EQR_1 */
422 { 0x0917, 0x0000 }, /* R2327 - EQR_2 */
423 { 0x0918, 0x0000 }, /* R2328 - EQR_3 */
424 { 0x0919, 0x0000 }, /* R2329 - EQR_4 */
425 { 0x091A, 0x0000 }, /* R2330 - EQR_5 */
426 { 0x091B, 0x0000 }, /* R2331 - EQR_6 */
427 { 0x091C, 0x0000 }, /* R2332 - EQR_7 */
428 { 0x091D, 0x0000 }, /* R2333 - EQR_8 */
429 { 0x091E, 0x0000 }, /* R2334 - EQR_9 */
430 { 0x091F, 0x0000 }, /* R2335 - EQR_10 */
431 { 0x0920, 0x0000 }, /* R2336 - EQR_11 */
432 { 0x0921, 0x0000 }, /* R2337 - EQR_12 */
433 { 0x0922, 0x0000 }, /* R2338 - EQR_13 */
434 { 0x0923, 0x0000 }, /* R2339 - EQR_14 */
435 { 0x0924, 0x0000 }, /* R2340 - EQR_15 */
436 { 0x0925, 0x0000 }, /* R2341 - EQR_16 */
437 { 0x0926, 0x0000 }, /* R2342 - EQR_17 */
438 { 0x0927, 0x0000 }, /* R2343 - EQR_18 */
439 { 0x0928, 0x0000 }, /* R2344 - EQR_19 */
440 { 0x0929, 0x0000 }, /* R2345 - EQR_20 */
441 { 0x093E, 0x0000 }, /* R2366 - HPLPF1_1 */
442 { 0x093F, 0x0000 }, /* R2367 - HPLPF1_2 */
443 { 0x0942, 0x0000 }, /* R2370 - HPLPF2_1 */
444 { 0x0943, 0x0000 }, /* R2371 - HPLPF2_2 */
445 { 0x0A00, 0x0000 }, /* R2560 - DSP1 Control 1 */
446 { 0x0A02, 0x0000 }, /* R2562 - DSP1 Control 2 */
447 { 0x0A03, 0x0000 }, /* R2563 - DSP1 Control 3 */
448 { 0x0A04, 0x0000 }, /* R2564 - DSP1 Control 4 */
449 { 0x0A06, 0x0000 }, /* R2566 - DSP1 Control 5 */
450 { 0x0A07, 0x0000 }, /* R2567 - DSP1 Control 6 */
451 { 0x0A08, 0x0000 }, /* R2568 - DSP1 Control 7 */
452 { 0x0A09, 0x0000 }, /* R2569 - DSP1 Control 8 */
453 { 0x0A0A, 0x0000 }, /* R2570 - DSP1 Control 9 */
454 { 0x0A0B, 0x0000 }, /* R2571 - DSP1 Control 10 */
455 { 0x0A0C, 0x0000 }, /* R2572 - DSP1 Control 11 */
456 { 0x0A0D, 0x0000 }, /* R2573 - DSP1 Control 12 */
457 { 0x0A0F, 0x0000 }, /* R2575 - DSP1 Control 13 */
458 { 0x0A10, 0x0000 }, /* R2576 - DSP1 Control 14 */
459 { 0x0A11, 0x0000 }, /* R2577 - DSP1 Control 15 */
460 { 0x0A12, 0x0000 }, /* R2578 - DSP1 Control 16 */
461 { 0x0A13, 0x0000 }, /* R2579 - DSP1 Control 17 */
462 { 0x0A14, 0x0000 }, /* R2580 - DSP1 Control 18 */
463 { 0x0A16, 0x0000 }, /* R2582 - DSP1 Control 19 */
464 { 0x0A17, 0x0000 }, /* R2583 - DSP1 Control 20 */
465 { 0x0A18, 0x0000 }, /* R2584 - DSP1 Control 21 */
466 { 0x0A1A, 0x1800 }, /* R2586 - DSP1 Control 22 */
467 { 0x0A1B, 0x1000 }, /* R2587 - DSP1 Control 23 */
468 { 0x0A1C, 0x0400 }, /* R2588 - DSP1 Control 24 */
469 { 0x0A1E, 0x0000 }, /* R2590 - DSP1 Control 25 */
470 { 0x0A20, 0x0000 }, /* R2592 - DSP1 Control 26 */
471 { 0x0A21, 0x0000 }, /* R2593 - DSP1 Control 27 */
472 { 0x0A22, 0x0000 }, /* R2594 - DSP1 Control 28 */
473 { 0x0A23, 0x0000 }, /* R2595 - DSP1 Control 29 */
474 { 0x0A24, 0x0000 }, /* R2596 - DSP1 Control 30 */
475 { 0x0A26, 0x0000 }, /* R2598 - DSP1 Control 31 */
476 { 0x0B00, 0x0000 }, /* R2816 - DSP2 Control 1 */
477 { 0x0B02, 0x0000 }, /* R2818 - DSP2 Control 2 */
478 { 0x0B03, 0x0000 }, /* R2819 - DSP2 Control 3 */
479 { 0x0B04, 0x0000 }, /* R2820 - DSP2 Control 4 */
480 { 0x0B06, 0x0000 }, /* R2822 - DSP2 Control 5 */
481 { 0x0B07, 0x0000 }, /* R2823 - DSP2 Control 6 */
482 { 0x0B08, 0x0000 }, /* R2824 - DSP2 Control 7 */
483 { 0x0B09, 0x0000 }, /* R2825 - DSP2 Control 8 */
484 { 0x0B0A, 0x0000 }, /* R2826 - DSP2 Control 9 */
485 { 0x0B0B, 0x0000 }, /* R2827 - DSP2 Control 10 */
486 { 0x0B0C, 0x0000 }, /* R2828 - DSP2 Control 11 */
487 { 0x0B0D, 0x0000 }, /* R2829 - DSP2 Control 12 */
488 { 0x0B0F, 0x0000 }, /* R2831 - DSP2 Control 13 */
489 { 0x0B10, 0x0000 }, /* R2832 - DSP2 Control 14 */
490 { 0x0B11, 0x0000 }, /* R2833 - DSP2 Control 15 */
491 { 0x0B12, 0x0000 }, /* R2834 - DSP2 Control 16 */
492 { 0x0B13, 0x0000 }, /* R2835 - DSP2 Control 17 */
493 { 0x0B14, 0x0000 }, /* R2836 - DSP2 Control 18 */
494 { 0x0B16, 0x0000 }, /* R2838 - DSP2 Control 19 */
495 { 0x0B17, 0x0000 }, /* R2839 - DSP2 Control 20 */
496 { 0x0B18, 0x0000 }, /* R2840 - DSP2 Control 21 */
497 { 0x0B1A, 0x0800 }, /* R2842 - DSP2 Control 22 */
498 { 0x0B1B, 0x1000 }, /* R2843 - DSP2 Control 23 */
499 { 0x0B1C, 0x0400 }, /* R2844 - DSP2 Control 24 */
500 { 0x0B1E, 0x0000 }, /* R2846 - DSP2 Control 25 */
501 { 0x0B20, 0x0000 }, /* R2848 - DSP2 Control 26 */
502 { 0x0B21, 0x0000 }, /* R2849 - DSP2 Control 27 */
503 { 0x0B22, 0x0000 }, /* R2850 - DSP2 Control 28 */
504 { 0x0B23, 0x0000 }, /* R2851 - DSP2 Control 29 */
505 { 0x0B24, 0x0000 }, /* R2852 - DSP2 Control 30 */
506 { 0x0B26, 0x0000 }, /* R2854 - DSP2 Control 31 */
986 if (wm2200->pdata.reset) { in wm2200_reset()
987 gpio_set_value_cansleep(wm2200->pdata.reset, 0); in wm2200_reset()
988 gpio_set_value_cansleep(wm2200->pdata.reset, 1); in wm2200_reset()
992 return regmap_write(wm2200->regmap, WM2200_SOFTWARE_RESET, in wm2200_reset()
997 static DECLARE_TLV_DB_SCALE(in_tlv, -6300, 100, 0);
998 static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
999 static DECLARE_TLV_DB_SCALE(out_tlv, -6400, 100, 0);
1039 0x10, /* Input */
1070 SOC_SINGLE_TLV(name " Input 1 Volume", base + 1 , \
1072 SOC_SINGLE_TLV(name " Input 2 Volume", base + 3 , \
1074 SOC_SINGLE_TLV(name " Input 3 Volume", base + 5 , \
1076 SOC_SINGLE_TLV(name " Input 4 Volume", base + 7 , \
1215 WM2200_MUX(name_str " Input 1", &name##_in1_mux), \
1216 WM2200_MUX(name_str " Input 2", &name##_in2_mux), \
1217 WM2200_MUX(name_str " Input 3", &name##_in3_mux), \
1218 WM2200_MUX(name_str " Input 4", &name##_in4_mux), \
1265 { name " Mixer", NULL, name " Input 1" }, \
1266 { name " Mixer", NULL, name " Input 2" }, \
1267 { name " Mixer", NULL, name " Input 3" }, \
1268 { name " Mixer", NULL, name " Input 4" }, \
1269 WM2200_MIXER_INPUT_ROUTES(name " Input 1"), \
1270 WM2200_MIXER_INPUT_ROUTES(name " Input 2"), \
1271 WM2200_MIXER_INPUT_ROUTES(name " Input 3"), \
1272 WM2200_MIXER_INPUT_ROUTES(name " Input 4")
1557 wm2200->component = component; in wm2200_probe()
1564 struct snd_soc_component *component = dai->component; in wm2200_set_fmt()
1578 dev_err(component->dev, "Unsupported DAI format %d\n", in wm2200_set_fmt()
1580 return -EINVAL; in wm2200_set_fmt()
1597 dev_err(component->dev, "Unsupported master mode %d\n", in wm2200_set_fmt()
1599 return -EINVAL; in wm2200_set_fmt()
1616 return -EINVAL; in wm2200_set_fmt()
1696 struct snd_soc_component *component = dai->component; in wm2200_hw_params()
1709 dev_dbg(component->dev, "Word length %d bits, frame length %d bits\n", in wm2200_hw_params()
1717 if (!wm2200->sysclk) { in wm2200_hw_params()
1718 dev_err(component->dev, "SYSCLK has no rate set\n"); in wm2200_hw_params()
1719 return -EINVAL; in wm2200_hw_params()
1726 dev_err(component->dev, "Unsupported sample rate: %dHz\n", in wm2200_hw_params()
1728 return -EINVAL; in wm2200_hw_params()
1732 dev_dbg(component->dev, "Target BCLK is %dHz, using %dHz SYSCLK\n", in wm2200_hw_params()
1733 bclk, wm2200->sysclk); in wm2200_hw_params()
1735 if (wm2200->sysclk % 4000) in wm2200_hw_params()
1744 dev_err(component->dev, in wm2200_hw_params()
1746 bclk, wm2200->sysclk); in wm2200_hw_params()
1747 return -EINVAL; in wm2200_hw_params()
1751 dev_dbg(component->dev, "Setting %dHz BCLK\n", bclk_rates[bclk]); in wm2200_hw_params()
1756 dev_dbg(component->dev, "Setting %dHz LRCLK\n", bclk_rates[bclk] / lrclk); in wm2200_hw_params()
1757 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || in wm2200_hw_params()
1758 wm2200->symmetric_rates) in wm2200_hw_params()
1766 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in wm2200_hw_params()
1797 dev_err(component->dev, "Unknown clock %d\n", clk_id); in wm2200_set_sysclk()
1798 return -EINVAL; in wm2200_set_sysclk()
1808 dev_err(component->dev, "Invalid source %d\n", source); in wm2200_set_sysclk()
1809 return -EINVAL; in wm2200_set_sysclk()
1818 dev_err(component->dev, "Invalid clock rate: %d\n", freq); in wm2200_set_sysclk()
1819 return -EINVAL; in wm2200_set_sysclk()
1830 wm2200->sysclk = freq; in wm2200_set_sysclk()
1867 fll_div->fll_refclk_div = 0; in fll_factors()
1870 fll_div->fll_refclk_div++; in fll_factors()
1873 pr_err("Can't scale %dMHz input down to <=13.5MHz\n", in fll_factors()
1875 return -EINVAL; in fll_factors()
1884 /* Fvco should be 90-100MHz; don't check the upper bound */ in fll_factors()
1891 return -EINVAL; in fll_factors()
1895 fll_div->fll_outdiv = div - 1; in fll_factors()
1902 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1909 return -EINVAL; in fll_factors()
1912 fll_div->n = target / (fratio * Fref); in fll_factors()
1915 fll_div->theta = 0; in fll_factors()
1916 fll_div->lambda = 0; in fll_factors()
1920 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1922 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
1926 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
1928 fll_div->fll_fratio, fratio, fll_div->fll_outdiv, in fll_factors()
1929 fll_div->fll_refclk_div); in fll_factors()
1937 struct i2c_client *i2c = to_i2c_client(component->dev); in wm2200_set_fll()
1944 dev_dbg(component->dev, "FLL disabled"); in wm2200_set_fll()
1946 if (wm2200->fll_fout) in wm2200_set_fll()
1947 pm_runtime_put(component->dev); in wm2200_set_fll()
1949 wm2200->fll_fout = 0; in wm2200_set_fll()
1961 dev_err(component->dev, "Invalid FLL source %d\n", source); in wm2200_set_fll()
1962 return -EINVAL; in wm2200_set_fll()
2003 try_wait_for_completion(&wm2200->fll_lock); in wm2200_set_fll()
2005 pm_runtime_get_sync(component->dev); in wm2200_set_fll()
2010 if (i2c->irq) in wm2200_set_fll()
2020 if (i2c->irq) { in wm2200_set_fll()
2022 &wm2200->fll_lock, in wm2200_set_fll()
2033 dev_err(component->dev, in wm2200_set_fll()
2042 dev_err(component->dev, "FLL lock timed out\n"); in wm2200_set_fll()
2043 pm_runtime_put(component->dev); in wm2200_set_fll()
2044 return -ETIMEDOUT; in wm2200_set_fll()
2047 wm2200->fll_src = source; in wm2200_set_fll()
2048 wm2200->fll_fref = Fref; in wm2200_set_fll()
2049 wm2200->fll_fout = Fout; in wm2200_set_fll()
2051 dev_dbg(component->dev, "FLL running %dHz->%dHz\n", Fref, Fout); in wm2200_set_fll()
2058 struct snd_soc_component *component = dai->component; in wm2200_dai_probe()
2066 wm2200->symmetric_rates = true; in wm2200_dai_probe()
2070 dev_err(component->dev, "Failed to read GPIO 1 config: %d\n", ret); in wm2200_dai_probe()
2124 ret = regmap_read(wm2200->regmap, WM2200_INTERRUPT_STATUS_2, &val); in wm2200_irq()
2126 dev_err(wm2200->dev, "Failed to read IRQ status: %d\n", ret); in wm2200_irq()
2130 ret = regmap_read(wm2200->regmap, WM2200_INTERRUPT_STATUS_2_MASK, in wm2200_irq()
2133 dev_warn(wm2200->dev, "Failed to read IRQ mask: %d\n", ret); in wm2200_irq()
2140 dev_dbg(wm2200->dev, "FLL locked\n"); in wm2200_irq()
2141 complete(&wm2200->fll_lock); in wm2200_irq()
2145 regmap_write(wm2200->regmap, WM2200_INTERRUPT_STATUS_2, val); in wm2200_irq()
2190 struct wm2200_pdata *pdata = dev_get_platdata(&i2c->dev); in wm2200_i2c_probe()
2196 wm2200 = devm_kzalloc(&i2c->dev, sizeof(struct wm2200_priv), in wm2200_i2c_probe()
2199 return -ENOMEM; in wm2200_i2c_probe()
2201 wm2200->dev = &i2c->dev; in wm2200_i2c_probe()
2202 init_completion(&wm2200->fll_lock); in wm2200_i2c_probe()
2204 wm2200->regmap = devm_regmap_init_i2c(i2c, &wm2200_regmap); in wm2200_i2c_probe()
2205 if (IS_ERR(wm2200->regmap)) { in wm2200_i2c_probe()
2206 ret = PTR_ERR(wm2200->regmap); in wm2200_i2c_probe()
2207 dev_err(&i2c->dev, "Failed to allocate register map: %d\n", in wm2200_i2c_probe()
2213 wm2200->dsp[i].type = WMFW_ADSP1; in wm2200_i2c_probe()
2214 wm2200->dsp[i].part = "wm2200"; in wm2200_i2c_probe()
2215 wm2200->dsp[i].num = i + 1; in wm2200_i2c_probe()
2216 wm2200->dsp[i].dev = &i2c->dev; in wm2200_i2c_probe()
2217 wm2200->dsp[i].regmap = wm2200->regmap; in wm2200_i2c_probe()
2218 wm2200->dsp[i].sysclk_reg = WM2200_CLOCKING_3; in wm2200_i2c_probe()
2219 wm2200->dsp[i].sysclk_mask = WM2200_SYSCLK_FREQ_MASK; in wm2200_i2c_probe()
2220 wm2200->dsp[i].sysclk_shift = WM2200_SYSCLK_FREQ_SHIFT; in wm2200_i2c_probe()
2223 wm2200->dsp[0].base = WM2200_DSP1_CONTROL_1; in wm2200_i2c_probe()
2224 wm2200->dsp[0].mem = wm2200_dsp1_regions; in wm2200_i2c_probe()
2225 wm2200->dsp[0].num_mems = ARRAY_SIZE(wm2200_dsp1_regions); in wm2200_i2c_probe()
2227 wm2200->dsp[1].base = WM2200_DSP2_CONTROL_1; in wm2200_i2c_probe()
2228 wm2200->dsp[1].mem = wm2200_dsp2_regions; in wm2200_i2c_probe()
2229 wm2200->dsp[1].num_mems = ARRAY_SIZE(wm2200_dsp2_regions); in wm2200_i2c_probe()
2231 for (i = 0; i < ARRAY_SIZE(wm2200->dsp); i++) in wm2200_i2c_probe()
2232 wm_adsp1_init(&wm2200->dsp[i]); in wm2200_i2c_probe()
2235 wm2200->pdata = *pdata; in wm2200_i2c_probe()
2239 for (i = 0; i < ARRAY_SIZE(wm2200->core_supplies); i++) in wm2200_i2c_probe()
2240 wm2200->core_supplies[i].supply = wm2200_core_supply_names[i]; in wm2200_i2c_probe()
2242 ret = devm_regulator_bulk_get(&i2c->dev, in wm2200_i2c_probe()
2243 ARRAY_SIZE(wm2200->core_supplies), in wm2200_i2c_probe()
2244 wm2200->core_supplies); in wm2200_i2c_probe()
2246 dev_err(&i2c->dev, "Failed to request core supplies: %d\n", in wm2200_i2c_probe()
2251 ret = regulator_bulk_enable(ARRAY_SIZE(wm2200->core_supplies), in wm2200_i2c_probe()
2252 wm2200->core_supplies); in wm2200_i2c_probe()
2254 dev_err(&i2c->dev, "Failed to enable core supplies: %d\n", in wm2200_i2c_probe()
2259 if (wm2200->pdata.ldo_ena) { in wm2200_i2c_probe()
2260 ret = devm_gpio_request_one(&i2c->dev, wm2200->pdata.ldo_ena, in wm2200_i2c_probe()
2264 dev_err(&i2c->dev, "Failed to request LDOENA %d: %d\n", in wm2200_i2c_probe()
2265 wm2200->pdata.ldo_ena, ret); in wm2200_i2c_probe()
2271 if (wm2200->pdata.reset) { in wm2200_i2c_probe()
2272 ret = devm_gpio_request_one(&i2c->dev, wm2200->pdata.reset, in wm2200_i2c_probe()
2276 dev_err(&i2c->dev, "Failed to request /RESET %d: %d\n", in wm2200_i2c_probe()
2277 wm2200->pdata.reset, ret); in wm2200_i2c_probe()
2282 ret = regmap_read(wm2200->regmap, WM2200_SOFTWARE_RESET, ®); in wm2200_i2c_probe()
2284 dev_err(&i2c->dev, "Failed to read ID register: %d\n", ret); in wm2200_i2c_probe()
2292 dev_err(&i2c->dev, "Device is not a WM2200, ID is %x\n", reg); in wm2200_i2c_probe()
2293 ret = -EINVAL; in wm2200_i2c_probe()
2297 ret = regmap_read(wm2200->regmap, WM2200_DEVICE_REVISION, ®); in wm2200_i2c_probe()
2299 dev_err(&i2c->dev, "Failed to read revision register\n"); in wm2200_i2c_probe()
2303 wm2200->rev = reg & WM2200_DEVICE_REVISION_MASK; in wm2200_i2c_probe()
2305 dev_info(&i2c->dev, "revision %c\n", wm2200->rev + 'A'); in wm2200_i2c_probe()
2307 switch (wm2200->rev) { in wm2200_i2c_probe()
2310 ret = regmap_register_patch(wm2200->regmap, wm2200_reva_patch, in wm2200_i2c_probe()
2313 dev_err(&i2c->dev, "Failed to register patch: %d\n", in wm2200_i2c_probe()
2323 dev_err(&i2c->dev, "Failed to issue reset\n"); in wm2200_i2c_probe()
2327 for (i = 0; i < ARRAY_SIZE(wm2200->pdata.gpio_defaults); i++) { in wm2200_i2c_probe()
2328 if (!wm2200->pdata.gpio_defaults[i]) in wm2200_i2c_probe()
2331 regmap_write(wm2200->regmap, WM2200_GPIO_CTRL_1 + i, in wm2200_i2c_probe()
2332 wm2200->pdata.gpio_defaults[i]); in wm2200_i2c_probe()
2336 regmap_update_bits(wm2200->regmap, wm2200_dig_vu[i], in wm2200_i2c_probe()
2339 /* Assign slots 1-6 to channels 1-6 for both TX and RX */ in wm2200_i2c_probe()
2341 regmap_write(wm2200->regmap, WM2200_AUDIO_IF_1_10 + i, i); in wm2200_i2c_probe()
2342 regmap_write(wm2200->regmap, WM2200_AUDIO_IF_1_16 + i, i); in wm2200_i2c_probe()
2346 if (!wm2200->pdata.micbias[i].mb_lvl && in wm2200_i2c_probe()
2347 !wm2200->pdata.micbias[i].bypass) in wm2200_i2c_probe()
2351 if (!wm2200->pdata.micbias[i].mb_lvl) in wm2200_i2c_probe()
2352 wm2200->pdata.micbias[i].mb_lvl in wm2200_i2c_probe()
2355 val = (wm2200->pdata.micbias[i].mb_lvl -1) in wm2200_i2c_probe()
2358 if (wm2200->pdata.micbias[i].discharge) in wm2200_i2c_probe()
2361 if (wm2200->pdata.micbias[i].fast_start) in wm2200_i2c_probe()
2364 if (wm2200->pdata.micbias[i].bypass) in wm2200_i2c_probe()
2367 regmap_update_bits(wm2200->regmap, in wm2200_i2c_probe()
2375 for (i = 0; i < ARRAY_SIZE(wm2200->pdata.in_mode); i++) { in wm2200_i2c_probe()
2376 regmap_update_bits(wm2200->regmap, wm2200_mic_ctrl_reg[i], in wm2200_i2c_probe()
2379 (wm2200->pdata.in_mode[i] << in wm2200_i2c_probe()
2381 (wm2200->pdata.dmic_sup[i] << in wm2200_i2c_probe()
2385 if (i2c->irq) { in wm2200_i2c_probe()
2386 ret = request_threaded_irq(i2c->irq, NULL, wm2200_irq, in wm2200_i2c_probe()
2390 regmap_update_bits(wm2200->regmap, in wm2200_i2c_probe()
2394 dev_err(&i2c->dev, "Failed to request IRQ %d: %d\n", in wm2200_i2c_probe()
2395 i2c->irq, ret); in wm2200_i2c_probe()
2398 pm_runtime_set_active(&i2c->dev); in wm2200_i2c_probe()
2399 pm_runtime_enable(&i2c->dev); in wm2200_i2c_probe()
2400 pm_request_idle(&i2c->dev); in wm2200_i2c_probe()
2402 ret = devm_snd_soc_register_component(&i2c->dev, &soc_component_wm2200, in wm2200_i2c_probe()
2405 dev_err(&i2c->dev, "Failed to register CODEC: %d\n", ret); in wm2200_i2c_probe()
2412 pm_runtime_disable(&i2c->dev); in wm2200_i2c_probe()
2413 if (i2c->irq) in wm2200_i2c_probe()
2414 free_irq(i2c->irq, wm2200); in wm2200_i2c_probe()
2416 if (wm2200->pdata.reset) in wm2200_i2c_probe()
2417 gpio_set_value_cansleep(wm2200->pdata.reset, 0); in wm2200_i2c_probe()
2419 if (wm2200->pdata.ldo_ena) in wm2200_i2c_probe()
2420 gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 0); in wm2200_i2c_probe()
2422 regulator_bulk_disable(ARRAY_SIZE(wm2200->core_supplies), in wm2200_i2c_probe()
2423 wm2200->core_supplies); in wm2200_i2c_probe()
2431 pm_runtime_disable(&i2c->dev); in wm2200_i2c_remove()
2432 if (i2c->irq) in wm2200_i2c_remove()
2433 free_irq(i2c->irq, wm2200); in wm2200_i2c_remove()
2434 if (wm2200->pdata.reset) in wm2200_i2c_remove()
2435 gpio_set_value_cansleep(wm2200->pdata.reset, 0); in wm2200_i2c_remove()
2436 if (wm2200->pdata.ldo_ena) in wm2200_i2c_remove()
2437 gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 0); in wm2200_i2c_remove()
2438 regulator_bulk_disable(ARRAY_SIZE(wm2200->core_supplies), in wm2200_i2c_remove()
2439 wm2200->core_supplies); in wm2200_i2c_remove()
2449 regcache_cache_only(wm2200->regmap, true); in wm2200_runtime_suspend()
2450 regcache_mark_dirty(wm2200->regmap); in wm2200_runtime_suspend()
2451 if (wm2200->pdata.ldo_ena) in wm2200_runtime_suspend()
2452 gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 0); in wm2200_runtime_suspend()
2453 regulator_bulk_disable(ARRAY_SIZE(wm2200->core_supplies), in wm2200_runtime_suspend()
2454 wm2200->core_supplies); in wm2200_runtime_suspend()
2464 ret = regulator_bulk_enable(ARRAY_SIZE(wm2200->core_supplies), in wm2200_runtime_resume()
2465 wm2200->core_supplies); in wm2200_runtime_resume()
2472 if (wm2200->pdata.ldo_ena) { in wm2200_runtime_resume()
2473 gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 1); in wm2200_runtime_resume()
2477 regcache_cache_only(wm2200->regmap, false); in wm2200_runtime_resume()
2478 regcache_sync(wm2200->regmap); in wm2200_runtime_resume()