~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/wm8903.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/codecs/wm8903.h (Version linux-6.12-rc7) and /sound/soc/codecs/wm8903.h (Version linux-4.20.17)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 /*                                                  1 /*
  3  * wm8903.h - WM8903 audio codec interface          2  * wm8903.h - WM8903 audio codec interface
  4  *                                                  3  *
  5  * Copyright 2008 Wolfson Microelectronics PLC      4  * Copyright 2008 Wolfson Microelectronics PLC.
  6  * Author: Mark Brown <broonie@opensource.wolf      5  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
                                                   >>   6  *
                                                   >>   7  *  This program is free software; you can redistribute  it and/or modify it
                                                   >>   8  *  under  the terms of  the GNU General  Public License as published by the
                                                   >>   9  *  Free Software Foundation;  either version 2 of the  License, or (at your
                                                   >>  10  *  option) any later version.
  7  */                                                11  */
  8                                                    12 
  9 #ifndef _WM8903_H                                  13 #ifndef _WM8903_H
 10 #define _WM8903_H                                  14 #define _WM8903_H
 11                                                    15 
 12 #include <linux/i2c.h>                             16 #include <linux/i2c.h>
 13                                                    17 
 14 extern int wm8903_mic_detect(struct snd_soc_co     18 extern int wm8903_mic_detect(struct snd_soc_component *component,
 15                              struct snd_soc_ja     19                              struct snd_soc_jack *jack,
 16                              int det, int shrt     20                              int det, int shrt);
 17                                                    21 
 18                                                    22 
 19 /*                                                 23 /*
 20  * Register values.                                24  * Register values.
 21  */                                                25  */
 22 #define WM8903_SW_RESET_AND_ID                     26 #define WM8903_SW_RESET_AND_ID                  0x00
 23 #define WM8903_REVISION_NUMBER                     27 #define WM8903_REVISION_NUMBER                  0x01
 24 #define WM8903_BIAS_CONTROL_0                      28 #define WM8903_BIAS_CONTROL_0                   0x04
 25 #define WM8903_VMID_CONTROL_0                      29 #define WM8903_VMID_CONTROL_0                   0x05
 26 #define WM8903_MIC_BIAS_CONTROL_0                  30 #define WM8903_MIC_BIAS_CONTROL_0               0x06
 27 #define WM8903_ANALOGUE_DAC_0                      31 #define WM8903_ANALOGUE_DAC_0                   0x08
 28 #define WM8903_ANALOGUE_ADC_0                      32 #define WM8903_ANALOGUE_ADC_0                   0x0A
 29 #define WM8903_POWER_MANAGEMENT_0                  33 #define WM8903_POWER_MANAGEMENT_0               0x0C
 30 #define WM8903_POWER_MANAGEMENT_1                  34 #define WM8903_POWER_MANAGEMENT_1               0x0D
 31 #define WM8903_POWER_MANAGEMENT_2                  35 #define WM8903_POWER_MANAGEMENT_2               0x0E
 32 #define WM8903_POWER_MANAGEMENT_3                  36 #define WM8903_POWER_MANAGEMENT_3               0x0F
 33 #define WM8903_POWER_MANAGEMENT_4                  37 #define WM8903_POWER_MANAGEMENT_4               0x10
 34 #define WM8903_POWER_MANAGEMENT_5                  38 #define WM8903_POWER_MANAGEMENT_5               0x11
 35 #define WM8903_POWER_MANAGEMENT_6                  39 #define WM8903_POWER_MANAGEMENT_6               0x12
 36 #define WM8903_CLOCK_RATES_0                       40 #define WM8903_CLOCK_RATES_0                    0x14
 37 #define WM8903_CLOCK_RATES_1                       41 #define WM8903_CLOCK_RATES_1                    0x15
 38 #define WM8903_CLOCK_RATES_2                       42 #define WM8903_CLOCK_RATES_2                    0x16
 39 #define WM8903_AUDIO_INTERFACE_0                   43 #define WM8903_AUDIO_INTERFACE_0                0x18
 40 #define WM8903_AUDIO_INTERFACE_1                   44 #define WM8903_AUDIO_INTERFACE_1                0x19
 41 #define WM8903_AUDIO_INTERFACE_2                   45 #define WM8903_AUDIO_INTERFACE_2                0x1A
 42 #define WM8903_AUDIO_INTERFACE_3                   46 #define WM8903_AUDIO_INTERFACE_3                0x1B
 43 #define WM8903_DAC_DIGITAL_VOLUME_LEFT             47 #define WM8903_DAC_DIGITAL_VOLUME_LEFT          0x1E
 44 #define WM8903_DAC_DIGITAL_VOLUME_RIGHT            48 #define WM8903_DAC_DIGITAL_VOLUME_RIGHT         0x1F
 45 #define WM8903_DAC_DIGITAL_0                       49 #define WM8903_DAC_DIGITAL_0                    0x20
 46 #define WM8903_DAC_DIGITAL_1                       50 #define WM8903_DAC_DIGITAL_1                    0x21
 47 #define WM8903_ADC_DIGITAL_VOLUME_LEFT             51 #define WM8903_ADC_DIGITAL_VOLUME_LEFT          0x24
 48 #define WM8903_ADC_DIGITAL_VOLUME_RIGHT            52 #define WM8903_ADC_DIGITAL_VOLUME_RIGHT         0x25
 49 #define WM8903_ADC_DIGITAL_0                       53 #define WM8903_ADC_DIGITAL_0                    0x26
 50 #define WM8903_DIGITAL_MICROPHONE_0                54 #define WM8903_DIGITAL_MICROPHONE_0             0x27
 51 #define WM8903_DRC_0                               55 #define WM8903_DRC_0                            0x28
 52 #define WM8903_DRC_1                               56 #define WM8903_DRC_1                            0x29
 53 #define WM8903_DRC_2                               57 #define WM8903_DRC_2                            0x2A
 54 #define WM8903_DRC_3                               58 #define WM8903_DRC_3                            0x2B
 55 #define WM8903_ANALOGUE_LEFT_INPUT_0               59 #define WM8903_ANALOGUE_LEFT_INPUT_0            0x2C
 56 #define WM8903_ANALOGUE_RIGHT_INPUT_0              60 #define WM8903_ANALOGUE_RIGHT_INPUT_0           0x2D
 57 #define WM8903_ANALOGUE_LEFT_INPUT_1               61 #define WM8903_ANALOGUE_LEFT_INPUT_1            0x2E
 58 #define WM8903_ANALOGUE_RIGHT_INPUT_1              62 #define WM8903_ANALOGUE_RIGHT_INPUT_1           0x2F
 59 #define WM8903_ANALOGUE_LEFT_MIX_0                 63 #define WM8903_ANALOGUE_LEFT_MIX_0              0x32
 60 #define WM8903_ANALOGUE_RIGHT_MIX_0                64 #define WM8903_ANALOGUE_RIGHT_MIX_0             0x33
 61 #define WM8903_ANALOGUE_SPK_MIX_LEFT_0             65 #define WM8903_ANALOGUE_SPK_MIX_LEFT_0          0x34
 62 #define WM8903_ANALOGUE_SPK_MIX_LEFT_1             66 #define WM8903_ANALOGUE_SPK_MIX_LEFT_1          0x35
 63 #define WM8903_ANALOGUE_SPK_MIX_RIGHT_0            67 #define WM8903_ANALOGUE_SPK_MIX_RIGHT_0         0x36
 64 #define WM8903_ANALOGUE_SPK_MIX_RIGHT_1            68 #define WM8903_ANALOGUE_SPK_MIX_RIGHT_1         0x37
 65 #define WM8903_ANALOGUE_OUT1_LEFT                  69 #define WM8903_ANALOGUE_OUT1_LEFT               0x39
 66 #define WM8903_ANALOGUE_OUT1_RIGHT                 70 #define WM8903_ANALOGUE_OUT1_RIGHT              0x3A
 67 #define WM8903_ANALOGUE_OUT2_LEFT                  71 #define WM8903_ANALOGUE_OUT2_LEFT               0x3B
 68 #define WM8903_ANALOGUE_OUT2_RIGHT                 72 #define WM8903_ANALOGUE_OUT2_RIGHT              0x3C
 69 #define WM8903_ANALOGUE_OUT3_LEFT                  73 #define WM8903_ANALOGUE_OUT3_LEFT               0x3E
 70 #define WM8903_ANALOGUE_OUT3_RIGHT                 74 #define WM8903_ANALOGUE_OUT3_RIGHT              0x3F
 71 #define WM8903_ANALOGUE_SPK_OUTPUT_CONTROL_0       75 #define WM8903_ANALOGUE_SPK_OUTPUT_CONTROL_0    0x41
 72 #define WM8903_DC_SERVO_0                          76 #define WM8903_DC_SERVO_0                       0x43
 73 #define WM8903_DC_SERVO_2                          77 #define WM8903_DC_SERVO_2                       0x45
 74 #define WM8903_DC_SERVO_4                          78 #define WM8903_DC_SERVO_4                       0x47
 75 #define WM8903_DC_SERVO_5                          79 #define WM8903_DC_SERVO_5                       0x48
 76 #define WM8903_DC_SERVO_6                          80 #define WM8903_DC_SERVO_6                       0x49
 77 #define WM8903_DC_SERVO_7                          81 #define WM8903_DC_SERVO_7                       0x4A
 78 #define WM8903_DC_SERVO_READBACK_1                 82 #define WM8903_DC_SERVO_READBACK_1              0x51
 79 #define WM8903_DC_SERVO_READBACK_2                 83 #define WM8903_DC_SERVO_READBACK_2              0x52
 80 #define WM8903_DC_SERVO_READBACK_3                 84 #define WM8903_DC_SERVO_READBACK_3              0x53
 81 #define WM8903_DC_SERVO_READBACK_4                 85 #define WM8903_DC_SERVO_READBACK_4              0x54
 82 #define WM8903_ANALOGUE_HP_0                       86 #define WM8903_ANALOGUE_HP_0                    0x5A
 83 #define WM8903_ANALOGUE_LINEOUT_0                  87 #define WM8903_ANALOGUE_LINEOUT_0               0x5E
 84 #define WM8903_CHARGE_PUMP_0                       88 #define WM8903_CHARGE_PUMP_0                    0x62
 85 #define WM8903_CLASS_W_0                           89 #define WM8903_CLASS_W_0                        0x68
 86 #define WM8903_WRITE_SEQUENCER_0                   90 #define WM8903_WRITE_SEQUENCER_0                0x6C
 87 #define WM8903_WRITE_SEQUENCER_1                   91 #define WM8903_WRITE_SEQUENCER_1                0x6D
 88 #define WM8903_WRITE_SEQUENCER_2                   92 #define WM8903_WRITE_SEQUENCER_2                0x6E
 89 #define WM8903_WRITE_SEQUENCER_3                   93 #define WM8903_WRITE_SEQUENCER_3                0x6F
 90 #define WM8903_WRITE_SEQUENCER_4                   94 #define WM8903_WRITE_SEQUENCER_4                0x70
 91 #define WM8903_CONTROL_INTERFACE                   95 #define WM8903_CONTROL_INTERFACE                0x72
 92 #define WM8903_GPIO_CONTROL_1                      96 #define WM8903_GPIO_CONTROL_1                   0x74
 93 #define WM8903_GPIO_CONTROL_2                      97 #define WM8903_GPIO_CONTROL_2                   0x75
 94 #define WM8903_GPIO_CONTROL_3                      98 #define WM8903_GPIO_CONTROL_3                   0x76
 95 #define WM8903_GPIO_CONTROL_4                      99 #define WM8903_GPIO_CONTROL_4                   0x77
 96 #define WM8903_GPIO_CONTROL_5                     100 #define WM8903_GPIO_CONTROL_5                   0x78
 97 #define WM8903_INTERRUPT_STATUS_1                 101 #define WM8903_INTERRUPT_STATUS_1               0x79
 98 #define WM8903_INTERRUPT_STATUS_1_MASK            102 #define WM8903_INTERRUPT_STATUS_1_MASK          0x7A
 99 #define WM8903_INTERRUPT_POLARITY_1               103 #define WM8903_INTERRUPT_POLARITY_1             0x7B
100 #define WM8903_INTERRUPT_CONTROL                  104 #define WM8903_INTERRUPT_CONTROL                0x7E
101 #define WM8903_CLOCK_RATE_TEST_4                  105 #define WM8903_CLOCK_RATE_TEST_4                0xA4
102 #define WM8903_ANALOGUE_OUTPUT_BIAS_0             106 #define WM8903_ANALOGUE_OUTPUT_BIAS_0           0xAC
103                                                   107 
104 #define WM8903_REGISTER_COUNT                     108 #define WM8903_REGISTER_COUNT                   75
105 #define WM8903_MAX_REGISTER                       109 #define WM8903_MAX_REGISTER                     0xAC
106                                                   110 
107 /*                                                111 /*
108  * Field Definitions.                             112  * Field Definitions.
109  */                                               113  */
110                                                   114 
111 /*                                                115 /*
112  * R0 (0x00) - SW Reset and ID                    116  * R0 (0x00) - SW Reset and ID
113  */                                               117  */
114 #define WM8903_SW_RESET_DEV_ID1_MASK              118 #define WM8903_SW_RESET_DEV_ID1_MASK            0xFFFF  /* SW_RESET_DEV_ID1 - [15:0] */
115 #define WM8903_SW_RESET_DEV_ID1_SHIFT             119 #define WM8903_SW_RESET_DEV_ID1_SHIFT                0  /* SW_RESET_DEV_ID1 - [15:0] */
116 #define WM8903_SW_RESET_DEV_ID1_WIDTH             120 #define WM8903_SW_RESET_DEV_ID1_WIDTH               16  /* SW_RESET_DEV_ID1 - [15:0] */
117                                                   121 
118 /*                                                122 /*
119  * R1 (0x01) - Revision Number                    123  * R1 (0x01) - Revision Number
120  */                                               124  */
121 #define WM8903_CHIP_REV_MASK                      125 #define WM8903_CHIP_REV_MASK                    0x000F  /* CHIP_REV - [3:0] */
122 #define WM8903_CHIP_REV_SHIFT                     126 #define WM8903_CHIP_REV_SHIFT                        0  /* CHIP_REV - [3:0] */
123 #define WM8903_CHIP_REV_WIDTH                     127 #define WM8903_CHIP_REV_WIDTH                        4  /* CHIP_REV - [3:0] */
124                                                   128 
125 /*                                                129 /*
126  * R4 (0x04) - Bias Control 0                     130  * R4 (0x04) - Bias Control 0
127  */                                               131  */
128 #define WM8903_POBCTRL                            132 #define WM8903_POBCTRL                          0x0010  /* POBCTRL */
129 #define WM8903_POBCTRL_MASK                       133 #define WM8903_POBCTRL_MASK                     0x0010  /* POBCTRL */
130 #define WM8903_POBCTRL_SHIFT                      134 #define WM8903_POBCTRL_SHIFT                         4  /* POBCTRL */
131 #define WM8903_POBCTRL_WIDTH                      135 #define WM8903_POBCTRL_WIDTH                         1  /* POBCTRL */
132 #define WM8903_ISEL_MASK                          136 #define WM8903_ISEL_MASK                        0x000C  /* ISEL - [3:2] */
133 #define WM8903_ISEL_SHIFT                         137 #define WM8903_ISEL_SHIFT                            2  /* ISEL - [3:2] */
134 #define WM8903_ISEL_WIDTH                         138 #define WM8903_ISEL_WIDTH                            2  /* ISEL - [3:2] */
135 #define WM8903_STARTUP_BIAS_ENA                   139 #define WM8903_STARTUP_BIAS_ENA                 0x0002  /* STARTUP_BIAS_ENA */
136 #define WM8903_STARTUP_BIAS_ENA_MASK              140 #define WM8903_STARTUP_BIAS_ENA_MASK            0x0002  /* STARTUP_BIAS_ENA */
137 #define WM8903_STARTUP_BIAS_ENA_SHIFT             141 #define WM8903_STARTUP_BIAS_ENA_SHIFT                1  /* STARTUP_BIAS_ENA */
138 #define WM8903_STARTUP_BIAS_ENA_WIDTH             142 #define WM8903_STARTUP_BIAS_ENA_WIDTH                1  /* STARTUP_BIAS_ENA */
139 #define WM8903_BIAS_ENA                           143 #define WM8903_BIAS_ENA                         0x0001  /* BIAS_ENA */
140 #define WM8903_BIAS_ENA_MASK                      144 #define WM8903_BIAS_ENA_MASK                    0x0001  /* BIAS_ENA */
141 #define WM8903_BIAS_ENA_SHIFT                     145 #define WM8903_BIAS_ENA_SHIFT                        0  /* BIAS_ENA */
142 #define WM8903_BIAS_ENA_WIDTH                     146 #define WM8903_BIAS_ENA_WIDTH                        1  /* BIAS_ENA */
143                                                   147 
144 /*                                                148 /*
145  * R5 (0x05) - VMID Control 0                     149  * R5 (0x05) - VMID Control 0
146  */                                               150  */
147 #define WM8903_VMID_TIE_ENA                       151 #define WM8903_VMID_TIE_ENA                     0x0080  /* VMID_TIE_ENA */
148 #define WM8903_VMID_TIE_ENA_MASK                  152 #define WM8903_VMID_TIE_ENA_MASK                0x0080  /* VMID_TIE_ENA */
149 #define WM8903_VMID_TIE_ENA_SHIFT                 153 #define WM8903_VMID_TIE_ENA_SHIFT                    7  /* VMID_TIE_ENA */
150 #define WM8903_VMID_TIE_ENA_WIDTH                 154 #define WM8903_VMID_TIE_ENA_WIDTH                    1  /* VMID_TIE_ENA */
151 #define WM8903_BUFIO_ENA                          155 #define WM8903_BUFIO_ENA                        0x0040  /* BUFIO_ENA */
152 #define WM8903_BUFIO_ENA_MASK                     156 #define WM8903_BUFIO_ENA_MASK                   0x0040  /* BUFIO_ENA */
153 #define WM8903_BUFIO_ENA_SHIFT                    157 #define WM8903_BUFIO_ENA_SHIFT                       6  /* BUFIO_ENA */
154 #define WM8903_BUFIO_ENA_WIDTH                    158 #define WM8903_BUFIO_ENA_WIDTH                       1  /* BUFIO_ENA */
155 #define WM8903_VMID_IO_ENA                        159 #define WM8903_VMID_IO_ENA                      0x0020  /* VMID_IO_ENA */
156 #define WM8903_VMID_IO_ENA_MASK                   160 #define WM8903_VMID_IO_ENA_MASK                 0x0020  /* VMID_IO_ENA */
157 #define WM8903_VMID_IO_ENA_SHIFT                  161 #define WM8903_VMID_IO_ENA_SHIFT                     5  /* VMID_IO_ENA */
158 #define WM8903_VMID_IO_ENA_WIDTH                  162 #define WM8903_VMID_IO_ENA_WIDTH                     1  /* VMID_IO_ENA */
159 #define WM8903_VMID_SOFT_MASK                     163 #define WM8903_VMID_SOFT_MASK                   0x0018  /* VMID_SOFT - [4:3] */
160 #define WM8903_VMID_SOFT_SHIFT                    164 #define WM8903_VMID_SOFT_SHIFT                       3  /* VMID_SOFT - [4:3] */
161 #define WM8903_VMID_SOFT_WIDTH                    165 #define WM8903_VMID_SOFT_WIDTH                       2  /* VMID_SOFT - [4:3] */
162 #define WM8903_VMID_RES_MASK                      166 #define WM8903_VMID_RES_MASK                    0x0006  /* VMID_RES - [2:1] */
163 #define WM8903_VMID_RES_SHIFT                     167 #define WM8903_VMID_RES_SHIFT                        1  /* VMID_RES - [2:1] */
164 #define WM8903_VMID_RES_WIDTH                     168 #define WM8903_VMID_RES_WIDTH                        2  /* VMID_RES - [2:1] */
165 #define WM8903_VMID_BUF_ENA                       169 #define WM8903_VMID_BUF_ENA                     0x0001  /* VMID_BUF_ENA */
166 #define WM8903_VMID_BUF_ENA_MASK                  170 #define WM8903_VMID_BUF_ENA_MASK                0x0001  /* VMID_BUF_ENA */
167 #define WM8903_VMID_BUF_ENA_SHIFT                 171 #define WM8903_VMID_BUF_ENA_SHIFT                    0  /* VMID_BUF_ENA */
168 #define WM8903_VMID_BUF_ENA_WIDTH                 172 #define WM8903_VMID_BUF_ENA_WIDTH                    1  /* VMID_BUF_ENA */
169                                                   173 
170 #define WM8903_VMID_RES_50K                       174 #define WM8903_VMID_RES_50K                          2
171 #define WM8903_VMID_RES_250K                      175 #define WM8903_VMID_RES_250K                         4
172 #define WM8903_VMID_RES_5K                        176 #define WM8903_VMID_RES_5K                           6
173                                                   177 
174 /*                                                178 /*
175  * R8 (0x08) - Analogue DAC 0                     179  * R8 (0x08) - Analogue DAC 0
176  */                                               180  */
177 #define WM8903_DACBIAS_SEL_MASK                   181 #define WM8903_DACBIAS_SEL_MASK                 0x0018  /* DACBIAS_SEL - [4:3] */
178 #define WM8903_DACBIAS_SEL_SHIFT                  182 #define WM8903_DACBIAS_SEL_SHIFT                     3  /* DACBIAS_SEL - [4:3] */
179 #define WM8903_DACBIAS_SEL_WIDTH                  183 #define WM8903_DACBIAS_SEL_WIDTH                     2  /* DACBIAS_SEL - [4:3] */
180 #define WM8903_DACVMID_BIAS_SEL_MASK              184 #define WM8903_DACVMID_BIAS_SEL_MASK            0x0006  /* DACVMID_BIAS_SEL - [2:1] */
181 #define WM8903_DACVMID_BIAS_SEL_SHIFT             185 #define WM8903_DACVMID_BIAS_SEL_SHIFT                1  /* DACVMID_BIAS_SEL - [2:1] */
182 #define WM8903_DACVMID_BIAS_SEL_WIDTH             186 #define WM8903_DACVMID_BIAS_SEL_WIDTH                2  /* DACVMID_BIAS_SEL - [2:1] */
183                                                   187 
184 /*                                                188 /*
185  * R10 (0x0A) - Analogue ADC 0                    189  * R10 (0x0A) - Analogue ADC 0
186  */                                               190  */
187 #define WM8903_ADC_OSR128                         191 #define WM8903_ADC_OSR128                       0x0001  /* ADC_OSR128 */
188 #define WM8903_ADC_OSR128_MASK                    192 #define WM8903_ADC_OSR128_MASK                  0x0001  /* ADC_OSR128 */
189 #define WM8903_ADC_OSR128_SHIFT                   193 #define WM8903_ADC_OSR128_SHIFT                      0  /* ADC_OSR128 */
190 #define WM8903_ADC_OSR128_WIDTH                   194 #define WM8903_ADC_OSR128_WIDTH                      1  /* ADC_OSR128 */
191                                                   195 
192 /*                                                196 /*
193  * R12 (0x0C) - Power Management 0                197  * R12 (0x0C) - Power Management 0
194  */                                               198  */
195 #define WM8903_INL_ENA                            199 #define WM8903_INL_ENA                          0x0002  /* INL_ENA */
196 #define WM8903_INL_ENA_MASK                       200 #define WM8903_INL_ENA_MASK                     0x0002  /* INL_ENA */
197 #define WM8903_INL_ENA_SHIFT                      201 #define WM8903_INL_ENA_SHIFT                         1  /* INL_ENA */
198 #define WM8903_INL_ENA_WIDTH                      202 #define WM8903_INL_ENA_WIDTH                         1  /* INL_ENA */
199 #define WM8903_INR_ENA                            203 #define WM8903_INR_ENA                          0x0001  /* INR_ENA */
200 #define WM8903_INR_ENA_MASK                       204 #define WM8903_INR_ENA_MASK                     0x0001  /* INR_ENA */
201 #define WM8903_INR_ENA_SHIFT                      205 #define WM8903_INR_ENA_SHIFT                         0  /* INR_ENA */
202 #define WM8903_INR_ENA_WIDTH                      206 #define WM8903_INR_ENA_WIDTH                         1  /* INR_ENA */
203                                                   207 
204 /*                                                208 /*
205  * R13 (0x0D) - Power Management 1                209  * R13 (0x0D) - Power Management 1
206  */                                               210  */
207 #define WM8903_MIXOUTL_ENA                        211 #define WM8903_MIXOUTL_ENA                      0x0002  /* MIXOUTL_ENA */
208 #define WM8903_MIXOUTL_ENA_MASK                   212 #define WM8903_MIXOUTL_ENA_MASK                 0x0002  /* MIXOUTL_ENA */
209 #define WM8903_MIXOUTL_ENA_SHIFT                  213 #define WM8903_MIXOUTL_ENA_SHIFT                     1  /* MIXOUTL_ENA */
210 #define WM8903_MIXOUTL_ENA_WIDTH                  214 #define WM8903_MIXOUTL_ENA_WIDTH                     1  /* MIXOUTL_ENA */
211 #define WM8903_MIXOUTR_ENA                        215 #define WM8903_MIXOUTR_ENA                      0x0001  /* MIXOUTR_ENA */
212 #define WM8903_MIXOUTR_ENA_MASK                   216 #define WM8903_MIXOUTR_ENA_MASK                 0x0001  /* MIXOUTR_ENA */
213 #define WM8903_MIXOUTR_ENA_SHIFT                  217 #define WM8903_MIXOUTR_ENA_SHIFT                     0  /* MIXOUTR_ENA */
214 #define WM8903_MIXOUTR_ENA_WIDTH                  218 #define WM8903_MIXOUTR_ENA_WIDTH                     1  /* MIXOUTR_ENA */
215                                                   219 
216 /*                                                220 /*
217  * R14 (0x0E) - Power Management 2                221  * R14 (0x0E) - Power Management 2
218  */                                               222  */
219 #define WM8903_HPL_PGA_ENA                        223 #define WM8903_HPL_PGA_ENA                      0x0002  /* HPL_PGA_ENA */
220 #define WM8903_HPL_PGA_ENA_MASK                   224 #define WM8903_HPL_PGA_ENA_MASK                 0x0002  /* HPL_PGA_ENA */
221 #define WM8903_HPL_PGA_ENA_SHIFT                  225 #define WM8903_HPL_PGA_ENA_SHIFT                     1  /* HPL_PGA_ENA */
222 #define WM8903_HPL_PGA_ENA_WIDTH                  226 #define WM8903_HPL_PGA_ENA_WIDTH                     1  /* HPL_PGA_ENA */
223 #define WM8903_HPR_PGA_ENA                        227 #define WM8903_HPR_PGA_ENA                      0x0001  /* HPR_PGA_ENA */
224 #define WM8903_HPR_PGA_ENA_MASK                   228 #define WM8903_HPR_PGA_ENA_MASK                 0x0001  /* HPR_PGA_ENA */
225 #define WM8903_HPR_PGA_ENA_SHIFT                  229 #define WM8903_HPR_PGA_ENA_SHIFT                     0  /* HPR_PGA_ENA */
226 #define WM8903_HPR_PGA_ENA_WIDTH                  230 #define WM8903_HPR_PGA_ENA_WIDTH                     1  /* HPR_PGA_ENA */
227                                                   231 
228 /*                                                232 /*
229  * R15 (0x0F) - Power Management 3                233  * R15 (0x0F) - Power Management 3
230  */                                               234  */
231 #define WM8903_LINEOUTL_PGA_ENA                   235 #define WM8903_LINEOUTL_PGA_ENA                 0x0002  /* LINEOUTL_PGA_ENA */
232 #define WM8903_LINEOUTL_PGA_ENA_MASK              236 #define WM8903_LINEOUTL_PGA_ENA_MASK            0x0002  /* LINEOUTL_PGA_ENA */
233 #define WM8903_LINEOUTL_PGA_ENA_SHIFT             237 #define WM8903_LINEOUTL_PGA_ENA_SHIFT                1  /* LINEOUTL_PGA_ENA */
234 #define WM8903_LINEOUTL_PGA_ENA_WIDTH             238 #define WM8903_LINEOUTL_PGA_ENA_WIDTH                1  /* LINEOUTL_PGA_ENA */
235 #define WM8903_LINEOUTR_PGA_ENA                   239 #define WM8903_LINEOUTR_PGA_ENA                 0x0001  /* LINEOUTR_PGA_ENA */
236 #define WM8903_LINEOUTR_PGA_ENA_MASK              240 #define WM8903_LINEOUTR_PGA_ENA_MASK            0x0001  /* LINEOUTR_PGA_ENA */
237 #define WM8903_LINEOUTR_PGA_ENA_SHIFT             241 #define WM8903_LINEOUTR_PGA_ENA_SHIFT                0  /* LINEOUTR_PGA_ENA */
238 #define WM8903_LINEOUTR_PGA_ENA_WIDTH             242 #define WM8903_LINEOUTR_PGA_ENA_WIDTH                1  /* LINEOUTR_PGA_ENA */
239                                                   243 
240 /*                                                244 /*
241  * R16 (0x10) - Power Management 4                245  * R16 (0x10) - Power Management 4
242  */                                               246  */
243 #define WM8903_MIXSPKL_ENA                        247 #define WM8903_MIXSPKL_ENA                      0x0002  /* MIXSPKL_ENA */
244 #define WM8903_MIXSPKL_ENA_MASK                   248 #define WM8903_MIXSPKL_ENA_MASK                 0x0002  /* MIXSPKL_ENA */
245 #define WM8903_MIXSPKL_ENA_SHIFT                  249 #define WM8903_MIXSPKL_ENA_SHIFT                     1  /* MIXSPKL_ENA */
246 #define WM8903_MIXSPKL_ENA_WIDTH                  250 #define WM8903_MIXSPKL_ENA_WIDTH                     1  /* MIXSPKL_ENA */
247 #define WM8903_MIXSPKR_ENA                        251 #define WM8903_MIXSPKR_ENA                      0x0001  /* MIXSPKR_ENA */
248 #define WM8903_MIXSPKR_ENA_MASK                   252 #define WM8903_MIXSPKR_ENA_MASK                 0x0001  /* MIXSPKR_ENA */
249 #define WM8903_MIXSPKR_ENA_SHIFT                  253 #define WM8903_MIXSPKR_ENA_SHIFT                     0  /* MIXSPKR_ENA */
250 #define WM8903_MIXSPKR_ENA_WIDTH                  254 #define WM8903_MIXSPKR_ENA_WIDTH                     1  /* MIXSPKR_ENA */
251                                                   255 
252 /*                                                256 /*
253  * R17 (0x11) - Power Management 5                257  * R17 (0x11) - Power Management 5
254  */                                               258  */
255 #define WM8903_SPKL_ENA                           259 #define WM8903_SPKL_ENA                         0x0002  /* SPKL_ENA */
256 #define WM8903_SPKL_ENA_MASK                      260 #define WM8903_SPKL_ENA_MASK                    0x0002  /* SPKL_ENA */
257 #define WM8903_SPKL_ENA_SHIFT                     261 #define WM8903_SPKL_ENA_SHIFT                        1  /* SPKL_ENA */
258 #define WM8903_SPKL_ENA_WIDTH                     262 #define WM8903_SPKL_ENA_WIDTH                        1  /* SPKL_ENA */
259 #define WM8903_SPKR_ENA                           263 #define WM8903_SPKR_ENA                         0x0001  /* SPKR_ENA */
260 #define WM8903_SPKR_ENA_MASK                      264 #define WM8903_SPKR_ENA_MASK                    0x0001  /* SPKR_ENA */
261 #define WM8903_SPKR_ENA_SHIFT                     265 #define WM8903_SPKR_ENA_SHIFT                        0  /* SPKR_ENA */
262 #define WM8903_SPKR_ENA_WIDTH                     266 #define WM8903_SPKR_ENA_WIDTH                        1  /* SPKR_ENA */
263                                                   267 
264 /*                                                268 /*
265  * R18 (0x12) - Power Management 6                269  * R18 (0x12) - Power Management 6
266  */                                               270  */
267 #define WM8903_DACL_ENA                           271 #define WM8903_DACL_ENA                         0x0008  /* DACL_ENA */
268 #define WM8903_DACL_ENA_MASK                      272 #define WM8903_DACL_ENA_MASK                    0x0008  /* DACL_ENA */
269 #define WM8903_DACL_ENA_SHIFT                     273 #define WM8903_DACL_ENA_SHIFT                        3  /* DACL_ENA */
270 #define WM8903_DACL_ENA_WIDTH                     274 #define WM8903_DACL_ENA_WIDTH                        1  /* DACL_ENA */
271 #define WM8903_DACR_ENA                           275 #define WM8903_DACR_ENA                         0x0004  /* DACR_ENA */
272 #define WM8903_DACR_ENA_MASK                      276 #define WM8903_DACR_ENA_MASK                    0x0004  /* DACR_ENA */
273 #define WM8903_DACR_ENA_SHIFT                     277 #define WM8903_DACR_ENA_SHIFT                        2  /* DACR_ENA */
274 #define WM8903_DACR_ENA_WIDTH                     278 #define WM8903_DACR_ENA_WIDTH                        1  /* DACR_ENA */
275 #define WM8903_ADCL_ENA                           279 #define WM8903_ADCL_ENA                         0x0002  /* ADCL_ENA */
276 #define WM8903_ADCL_ENA_MASK                      280 #define WM8903_ADCL_ENA_MASK                    0x0002  /* ADCL_ENA */
277 #define WM8903_ADCL_ENA_SHIFT                     281 #define WM8903_ADCL_ENA_SHIFT                        1  /* ADCL_ENA */
278 #define WM8903_ADCL_ENA_WIDTH                     282 #define WM8903_ADCL_ENA_WIDTH                        1  /* ADCL_ENA */
279 #define WM8903_ADCR_ENA                           283 #define WM8903_ADCR_ENA                         0x0001  /* ADCR_ENA */
280 #define WM8903_ADCR_ENA_MASK                      284 #define WM8903_ADCR_ENA_MASK                    0x0001  /* ADCR_ENA */
281 #define WM8903_ADCR_ENA_SHIFT                     285 #define WM8903_ADCR_ENA_SHIFT                        0  /* ADCR_ENA */
282 #define WM8903_ADCR_ENA_WIDTH                     286 #define WM8903_ADCR_ENA_WIDTH                        1  /* ADCR_ENA */
283                                                   287 
284 /*                                                288 /*
285  * R20 (0x14) - Clock Rates 0                     289  * R20 (0x14) - Clock Rates 0
286  */                                               290  */
287 #define WM8903_MCLKDIV2                           291 #define WM8903_MCLKDIV2                         0x0001  /* MCLKDIV2 */
288 #define WM8903_MCLKDIV2_MASK                      292 #define WM8903_MCLKDIV2_MASK                    0x0001  /* MCLKDIV2 */
289 #define WM8903_MCLKDIV2_SHIFT                     293 #define WM8903_MCLKDIV2_SHIFT                        0  /* MCLKDIV2 */
290 #define WM8903_MCLKDIV2_WIDTH                     294 #define WM8903_MCLKDIV2_WIDTH                        1  /* MCLKDIV2 */
291                                                   295 
292 /*                                                296 /*
293  * R21 (0x15) - Clock Rates 1                     297  * R21 (0x15) - Clock Rates 1
294  */                                               298  */
295 #define WM8903_CLK_SYS_RATE_MASK                  299 #define WM8903_CLK_SYS_RATE_MASK                0x3C00  /* CLK_SYS_RATE - [13:10] */
296 #define WM8903_CLK_SYS_RATE_SHIFT                 300 #define WM8903_CLK_SYS_RATE_SHIFT                   10  /* CLK_SYS_RATE - [13:10] */
297 #define WM8903_CLK_SYS_RATE_WIDTH                 301 #define WM8903_CLK_SYS_RATE_WIDTH                    4  /* CLK_SYS_RATE - [13:10] */
298 #define WM8903_CLK_SYS_MODE_MASK                  302 #define WM8903_CLK_SYS_MODE_MASK                0x0300  /* CLK_SYS_MODE - [9:8] */
299 #define WM8903_CLK_SYS_MODE_SHIFT                 303 #define WM8903_CLK_SYS_MODE_SHIFT                    8  /* CLK_SYS_MODE - [9:8] */
300 #define WM8903_CLK_SYS_MODE_WIDTH                 304 #define WM8903_CLK_SYS_MODE_WIDTH                    2  /* CLK_SYS_MODE - [9:8] */
301 #define WM8903_SAMPLE_RATE_MASK                   305 #define WM8903_SAMPLE_RATE_MASK                 0x000F  /* SAMPLE_RATE - [3:0] */
302 #define WM8903_SAMPLE_RATE_SHIFT                  306 #define WM8903_SAMPLE_RATE_SHIFT                     0  /* SAMPLE_RATE - [3:0] */
303 #define WM8903_SAMPLE_RATE_WIDTH                  307 #define WM8903_SAMPLE_RATE_WIDTH                     4  /* SAMPLE_RATE - [3:0] */
304                                                   308 
305 /*                                                309 /*
306  * R22 (0x16) - Clock Rates 2                     310  * R22 (0x16) - Clock Rates 2
307  */                                               311  */
308 #define WM8903_CLK_SYS_ENA                        312 #define WM8903_CLK_SYS_ENA                      0x0004  /* CLK_SYS_ENA */
309 #define WM8903_CLK_SYS_ENA_MASK                   313 #define WM8903_CLK_SYS_ENA_MASK                 0x0004  /* CLK_SYS_ENA */
310 #define WM8903_CLK_SYS_ENA_SHIFT                  314 #define WM8903_CLK_SYS_ENA_SHIFT                     2  /* CLK_SYS_ENA */
311 #define WM8903_CLK_SYS_ENA_WIDTH                  315 #define WM8903_CLK_SYS_ENA_WIDTH                     1  /* CLK_SYS_ENA */
312 #define WM8903_CLK_DSP_ENA                        316 #define WM8903_CLK_DSP_ENA                      0x0002  /* CLK_DSP_ENA */
313 #define WM8903_CLK_DSP_ENA_MASK                   317 #define WM8903_CLK_DSP_ENA_MASK                 0x0002  /* CLK_DSP_ENA */
314 #define WM8903_CLK_DSP_ENA_SHIFT                  318 #define WM8903_CLK_DSP_ENA_SHIFT                     1  /* CLK_DSP_ENA */
315 #define WM8903_CLK_DSP_ENA_WIDTH                  319 #define WM8903_CLK_DSP_ENA_WIDTH                     1  /* CLK_DSP_ENA */
316 #define WM8903_TO_ENA                             320 #define WM8903_TO_ENA                           0x0001  /* TO_ENA */
317 #define WM8903_TO_ENA_MASK                        321 #define WM8903_TO_ENA_MASK                      0x0001  /* TO_ENA */
318 #define WM8903_TO_ENA_SHIFT                       322 #define WM8903_TO_ENA_SHIFT                          0  /* TO_ENA */
319 #define WM8903_TO_ENA_WIDTH                       323 #define WM8903_TO_ENA_WIDTH                          1  /* TO_ENA */
320                                                   324 
321 /*                                                325 /*
322  * R24 (0x18) - Audio Interface 0                 326  * R24 (0x18) - Audio Interface 0
323  */                                               327  */
324 #define WM8903_DACL_DATINV                        328 #define WM8903_DACL_DATINV                      0x1000  /* DACL_DATINV */
325 #define WM8903_DACL_DATINV_MASK                   329 #define WM8903_DACL_DATINV_MASK                 0x1000  /* DACL_DATINV */
326 #define WM8903_DACL_DATINV_SHIFT                  330 #define WM8903_DACL_DATINV_SHIFT                    12  /* DACL_DATINV */
327 #define WM8903_DACL_DATINV_WIDTH                  331 #define WM8903_DACL_DATINV_WIDTH                     1  /* DACL_DATINV */
328 #define WM8903_DACR_DATINV                        332 #define WM8903_DACR_DATINV                      0x0800  /* DACR_DATINV */
329 #define WM8903_DACR_DATINV_MASK                   333 #define WM8903_DACR_DATINV_MASK                 0x0800  /* DACR_DATINV */
330 #define WM8903_DACR_DATINV_SHIFT                  334 #define WM8903_DACR_DATINV_SHIFT                    11  /* DACR_DATINV */
331 #define WM8903_DACR_DATINV_WIDTH                  335 #define WM8903_DACR_DATINV_WIDTH                     1  /* DACR_DATINV */
332 #define WM8903_DAC_BOOST_MASK                     336 #define WM8903_DAC_BOOST_MASK                   0x0600  /* DAC_BOOST - [10:9] */
333 #define WM8903_DAC_BOOST_SHIFT                    337 #define WM8903_DAC_BOOST_SHIFT                       9  /* DAC_BOOST - [10:9] */
334 #define WM8903_DAC_BOOST_WIDTH                    338 #define WM8903_DAC_BOOST_WIDTH                       2  /* DAC_BOOST - [10:9] */
335 #define WM8903_LOOPBACK                           339 #define WM8903_LOOPBACK                         0x0100  /* LOOPBACK */
336 #define WM8903_LOOPBACK_MASK                      340 #define WM8903_LOOPBACK_MASK                    0x0100  /* LOOPBACK */
337 #define WM8903_LOOPBACK_SHIFT                     341 #define WM8903_LOOPBACK_SHIFT                        8  /* LOOPBACK */
338 #define WM8903_LOOPBACK_WIDTH                     342 #define WM8903_LOOPBACK_WIDTH                        1  /* LOOPBACK */
339 #define WM8903_AIFADCL_SRC                        343 #define WM8903_AIFADCL_SRC                      0x0080  /* AIFADCL_SRC */
340 #define WM8903_AIFADCL_SRC_MASK                   344 #define WM8903_AIFADCL_SRC_MASK                 0x0080  /* AIFADCL_SRC */
341 #define WM8903_AIFADCL_SRC_SHIFT                  345 #define WM8903_AIFADCL_SRC_SHIFT                     7  /* AIFADCL_SRC */
342 #define WM8903_AIFADCL_SRC_WIDTH                  346 #define WM8903_AIFADCL_SRC_WIDTH                     1  /* AIFADCL_SRC */
343 #define WM8903_AIFADCR_SRC                        347 #define WM8903_AIFADCR_SRC                      0x0040  /* AIFADCR_SRC */
344 #define WM8903_AIFADCR_SRC_MASK                   348 #define WM8903_AIFADCR_SRC_MASK                 0x0040  /* AIFADCR_SRC */
345 #define WM8903_AIFADCR_SRC_SHIFT                  349 #define WM8903_AIFADCR_SRC_SHIFT                     6  /* AIFADCR_SRC */
346 #define WM8903_AIFADCR_SRC_WIDTH                  350 #define WM8903_AIFADCR_SRC_WIDTH                     1  /* AIFADCR_SRC */
347 #define WM8903_AIFDACL_SRC                        351 #define WM8903_AIFDACL_SRC                      0x0020  /* AIFDACL_SRC */
348 #define WM8903_AIFDACL_SRC_MASK                   352 #define WM8903_AIFDACL_SRC_MASK                 0x0020  /* AIFDACL_SRC */
349 #define WM8903_AIFDACL_SRC_SHIFT                  353 #define WM8903_AIFDACL_SRC_SHIFT                     5  /* AIFDACL_SRC */
350 #define WM8903_AIFDACL_SRC_WIDTH                  354 #define WM8903_AIFDACL_SRC_WIDTH                     1  /* AIFDACL_SRC */
351 #define WM8903_AIFDACR_SRC                        355 #define WM8903_AIFDACR_SRC                      0x0010  /* AIFDACR_SRC */
352 #define WM8903_AIFDACR_SRC_MASK                   356 #define WM8903_AIFDACR_SRC_MASK                 0x0010  /* AIFDACR_SRC */
353 #define WM8903_AIFDACR_SRC_SHIFT                  357 #define WM8903_AIFDACR_SRC_SHIFT                     4  /* AIFDACR_SRC */
354 #define WM8903_AIFDACR_SRC_WIDTH                  358 #define WM8903_AIFDACR_SRC_WIDTH                     1  /* AIFDACR_SRC */
355 #define WM8903_ADC_COMP                           359 #define WM8903_ADC_COMP                         0x0008  /* ADC_COMP */
356 #define WM8903_ADC_COMP_MASK                      360 #define WM8903_ADC_COMP_MASK                    0x0008  /* ADC_COMP */
357 #define WM8903_ADC_COMP_SHIFT                     361 #define WM8903_ADC_COMP_SHIFT                        3  /* ADC_COMP */
358 #define WM8903_ADC_COMP_WIDTH                     362 #define WM8903_ADC_COMP_WIDTH                        1  /* ADC_COMP */
359 #define WM8903_ADC_COMPMODE                       363 #define WM8903_ADC_COMPMODE                     0x0004  /* ADC_COMPMODE */
360 #define WM8903_ADC_COMPMODE_MASK                  364 #define WM8903_ADC_COMPMODE_MASK                0x0004  /* ADC_COMPMODE */
361 #define WM8903_ADC_COMPMODE_SHIFT                 365 #define WM8903_ADC_COMPMODE_SHIFT                    2  /* ADC_COMPMODE */
362 #define WM8903_ADC_COMPMODE_WIDTH                 366 #define WM8903_ADC_COMPMODE_WIDTH                    1  /* ADC_COMPMODE */
363 #define WM8903_DAC_COMP                           367 #define WM8903_DAC_COMP                         0x0002  /* DAC_COMP */
364 #define WM8903_DAC_COMP_MASK                      368 #define WM8903_DAC_COMP_MASK                    0x0002  /* DAC_COMP */
365 #define WM8903_DAC_COMP_SHIFT                     369 #define WM8903_DAC_COMP_SHIFT                        1  /* DAC_COMP */
366 #define WM8903_DAC_COMP_WIDTH                     370 #define WM8903_DAC_COMP_WIDTH                        1  /* DAC_COMP */
367 #define WM8903_DAC_COMPMODE                       371 #define WM8903_DAC_COMPMODE                     0x0001  /* DAC_COMPMODE */
368 #define WM8903_DAC_COMPMODE_MASK                  372 #define WM8903_DAC_COMPMODE_MASK                0x0001  /* DAC_COMPMODE */
369 #define WM8903_DAC_COMPMODE_SHIFT                 373 #define WM8903_DAC_COMPMODE_SHIFT                    0  /* DAC_COMPMODE */
370 #define WM8903_DAC_COMPMODE_WIDTH                 374 #define WM8903_DAC_COMPMODE_WIDTH                    1  /* DAC_COMPMODE */
371                                                   375 
372 /*                                                376 /*
373  * R25 (0x19) - Audio Interface 1                 377  * R25 (0x19) - Audio Interface 1
374  */                                               378  */
375 #define WM8903_AIFDAC_TDM                         379 #define WM8903_AIFDAC_TDM                       0x2000  /* AIFDAC_TDM */
376 #define WM8903_AIFDAC_TDM_MASK                    380 #define WM8903_AIFDAC_TDM_MASK                  0x2000  /* AIFDAC_TDM */
377 #define WM8903_AIFDAC_TDM_SHIFT                   381 #define WM8903_AIFDAC_TDM_SHIFT                     13  /* AIFDAC_TDM */
378 #define WM8903_AIFDAC_TDM_WIDTH                   382 #define WM8903_AIFDAC_TDM_WIDTH                      1  /* AIFDAC_TDM */
379 #define WM8903_AIFDAC_TDM_CHAN                    383 #define WM8903_AIFDAC_TDM_CHAN                  0x1000  /* AIFDAC_TDM_CHAN */
380 #define WM8903_AIFDAC_TDM_CHAN_MASK               384 #define WM8903_AIFDAC_TDM_CHAN_MASK             0x1000  /* AIFDAC_TDM_CHAN */
381 #define WM8903_AIFDAC_TDM_CHAN_SHIFT              385 #define WM8903_AIFDAC_TDM_CHAN_SHIFT                12  /* AIFDAC_TDM_CHAN */
382 #define WM8903_AIFDAC_TDM_CHAN_WIDTH              386 #define WM8903_AIFDAC_TDM_CHAN_WIDTH                 1  /* AIFDAC_TDM_CHAN */
383 #define WM8903_AIFADC_TDM                         387 #define WM8903_AIFADC_TDM                       0x0800  /* AIFADC_TDM */
384 #define WM8903_AIFADC_TDM_MASK                    388 #define WM8903_AIFADC_TDM_MASK                  0x0800  /* AIFADC_TDM */
385 #define WM8903_AIFADC_TDM_SHIFT                   389 #define WM8903_AIFADC_TDM_SHIFT                     11  /* AIFADC_TDM */
386 #define WM8903_AIFADC_TDM_WIDTH                   390 #define WM8903_AIFADC_TDM_WIDTH                      1  /* AIFADC_TDM */
387 #define WM8903_AIFADC_TDM_CHAN                    391 #define WM8903_AIFADC_TDM_CHAN                  0x0400  /* AIFADC_TDM_CHAN */
388 #define WM8903_AIFADC_TDM_CHAN_MASK               392 #define WM8903_AIFADC_TDM_CHAN_MASK             0x0400  /* AIFADC_TDM_CHAN */
389 #define WM8903_AIFADC_TDM_CHAN_SHIFT              393 #define WM8903_AIFADC_TDM_CHAN_SHIFT                10  /* AIFADC_TDM_CHAN */
390 #define WM8903_AIFADC_TDM_CHAN_WIDTH              394 #define WM8903_AIFADC_TDM_CHAN_WIDTH                 1  /* AIFADC_TDM_CHAN */
391 #define WM8903_LRCLK_DIR                          395 #define WM8903_LRCLK_DIR                        0x0200  /* LRCLK_DIR */
392 #define WM8903_LRCLK_DIR_MASK                     396 #define WM8903_LRCLK_DIR_MASK                   0x0200  /* LRCLK_DIR */
393 #define WM8903_LRCLK_DIR_SHIFT                    397 #define WM8903_LRCLK_DIR_SHIFT                       9  /* LRCLK_DIR */
394 #define WM8903_LRCLK_DIR_WIDTH                    398 #define WM8903_LRCLK_DIR_WIDTH                       1  /* LRCLK_DIR */
395 #define WM8903_AIF_BCLK_INV                       399 #define WM8903_AIF_BCLK_INV                     0x0080  /* AIF_BCLK_INV */
396 #define WM8903_AIF_BCLK_INV_MASK                  400 #define WM8903_AIF_BCLK_INV_MASK                0x0080  /* AIF_BCLK_INV */
397 #define WM8903_AIF_BCLK_INV_SHIFT                 401 #define WM8903_AIF_BCLK_INV_SHIFT                    7  /* AIF_BCLK_INV */
398 #define WM8903_AIF_BCLK_INV_WIDTH                 402 #define WM8903_AIF_BCLK_INV_WIDTH                    1  /* AIF_BCLK_INV */
399 #define WM8903_BCLK_DIR                           403 #define WM8903_BCLK_DIR                         0x0040  /* BCLK_DIR */
400 #define WM8903_BCLK_DIR_MASK                      404 #define WM8903_BCLK_DIR_MASK                    0x0040  /* BCLK_DIR */
401 #define WM8903_BCLK_DIR_SHIFT                     405 #define WM8903_BCLK_DIR_SHIFT                        6  /* BCLK_DIR */
402 #define WM8903_BCLK_DIR_WIDTH                     406 #define WM8903_BCLK_DIR_WIDTH                        1  /* BCLK_DIR */
403 #define WM8903_AIF_LRCLK_INV                      407 #define WM8903_AIF_LRCLK_INV                    0x0010  /* AIF_LRCLK_INV */
404 #define WM8903_AIF_LRCLK_INV_MASK                 408 #define WM8903_AIF_LRCLK_INV_MASK               0x0010  /* AIF_LRCLK_INV */
405 #define WM8903_AIF_LRCLK_INV_SHIFT                409 #define WM8903_AIF_LRCLK_INV_SHIFT                   4  /* AIF_LRCLK_INV */
406 #define WM8903_AIF_LRCLK_INV_WIDTH                410 #define WM8903_AIF_LRCLK_INV_WIDTH                   1  /* AIF_LRCLK_INV */
407 #define WM8903_AIF_WL_MASK                        411 #define WM8903_AIF_WL_MASK                      0x000C  /* AIF_WL - [3:2] */
408 #define WM8903_AIF_WL_SHIFT                       412 #define WM8903_AIF_WL_SHIFT                          2  /* AIF_WL - [3:2] */
409 #define WM8903_AIF_WL_WIDTH                       413 #define WM8903_AIF_WL_WIDTH                          2  /* AIF_WL - [3:2] */
410 #define WM8903_AIF_FMT_MASK                       414 #define WM8903_AIF_FMT_MASK                     0x0003  /* AIF_FMT - [1:0] */
411 #define WM8903_AIF_FMT_SHIFT                      415 #define WM8903_AIF_FMT_SHIFT                         0  /* AIF_FMT - [1:0] */
412 #define WM8903_AIF_FMT_WIDTH                      416 #define WM8903_AIF_FMT_WIDTH                         2  /* AIF_FMT - [1:0] */
413                                                   417 
414 /*                                                418 /*
415  * R26 (0x1A) - Audio Interface 2                 419  * R26 (0x1A) - Audio Interface 2
416  */                                               420  */
417 #define WM8903_BCLK_DIV_MASK                      421 #define WM8903_BCLK_DIV_MASK                    0x001F  /* BCLK_DIV - [4:0] */
418 #define WM8903_BCLK_DIV_SHIFT                     422 #define WM8903_BCLK_DIV_SHIFT                        0  /* BCLK_DIV - [4:0] */
419 #define WM8903_BCLK_DIV_WIDTH                     423 #define WM8903_BCLK_DIV_WIDTH                        5  /* BCLK_DIV - [4:0] */
420                                                   424 
421 /*                                                425 /*
422  * R27 (0x1B) - Audio Interface 3                 426  * R27 (0x1B) - Audio Interface 3
423  */                                               427  */
424 #define WM8903_LRCLK_RATE_MASK                    428 #define WM8903_LRCLK_RATE_MASK                  0x07FF  /* LRCLK_RATE - [10:0] */
425 #define WM8903_LRCLK_RATE_SHIFT                   429 #define WM8903_LRCLK_RATE_SHIFT                      0  /* LRCLK_RATE - [10:0] */
426 #define WM8903_LRCLK_RATE_WIDTH                   430 #define WM8903_LRCLK_RATE_WIDTH                     11  /* LRCLK_RATE - [10:0] */
427                                                   431 
428 /*                                                432 /*
429  * R30 (0x1E) - DAC Digital Volume Left           433  * R30 (0x1E) - DAC Digital Volume Left
430  */                                               434  */
431 #define WM8903_DACVU                              435 #define WM8903_DACVU                            0x0100  /* DACVU */
432 #define WM8903_DACVU_MASK                         436 #define WM8903_DACVU_MASK                       0x0100  /* DACVU */
433 #define WM8903_DACVU_SHIFT                        437 #define WM8903_DACVU_SHIFT                           8  /* DACVU */
434 #define WM8903_DACVU_WIDTH                        438 #define WM8903_DACVU_WIDTH                           1  /* DACVU */
435 #define WM8903_DACL_VOL_MASK                      439 #define WM8903_DACL_VOL_MASK                    0x00FF  /* DACL_VOL - [7:0] */
436 #define WM8903_DACL_VOL_SHIFT                     440 #define WM8903_DACL_VOL_SHIFT                        0  /* DACL_VOL - [7:0] */
437 #define WM8903_DACL_VOL_WIDTH                     441 #define WM8903_DACL_VOL_WIDTH                        8  /* DACL_VOL - [7:0] */
438                                                   442 
439 /*                                                443 /*
440  * R31 (0x1F) - DAC Digital Volume Right          444  * R31 (0x1F) - DAC Digital Volume Right
441  */                                               445  */
442 #define WM8903_DACVU                              446 #define WM8903_DACVU                            0x0100  /* DACVU */
443 #define WM8903_DACVU_MASK                         447 #define WM8903_DACVU_MASK                       0x0100  /* DACVU */
444 #define WM8903_DACVU_SHIFT                        448 #define WM8903_DACVU_SHIFT                           8  /* DACVU */
445 #define WM8903_DACVU_WIDTH                        449 #define WM8903_DACVU_WIDTH                           1  /* DACVU */
446 #define WM8903_DACR_VOL_MASK                      450 #define WM8903_DACR_VOL_MASK                    0x00FF  /* DACR_VOL - [7:0] */
447 #define WM8903_DACR_VOL_SHIFT                     451 #define WM8903_DACR_VOL_SHIFT                        0  /* DACR_VOL - [7:0] */
448 #define WM8903_DACR_VOL_WIDTH                     452 #define WM8903_DACR_VOL_WIDTH                        8  /* DACR_VOL - [7:0] */
449                                                   453 
450 /*                                                454 /*
451  * R32 (0x20) - DAC Digital 0                     455  * R32 (0x20) - DAC Digital 0
452  */                                               456  */
453 #define WM8903_ADCL_DAC_SVOL_MASK                 457 #define WM8903_ADCL_DAC_SVOL_MASK               0x0F00  /* ADCL_DAC_SVOL - [11:8] */
454 #define WM8903_ADCL_DAC_SVOL_SHIFT                458 #define WM8903_ADCL_DAC_SVOL_SHIFT                   8  /* ADCL_DAC_SVOL - [11:8] */
455 #define WM8903_ADCL_DAC_SVOL_WIDTH                459 #define WM8903_ADCL_DAC_SVOL_WIDTH                   4  /* ADCL_DAC_SVOL - [11:8] */
456 #define WM8903_ADCR_DAC_SVOL_MASK                 460 #define WM8903_ADCR_DAC_SVOL_MASK               0x00F0  /* ADCR_DAC_SVOL - [7:4] */
457 #define WM8903_ADCR_DAC_SVOL_SHIFT                461 #define WM8903_ADCR_DAC_SVOL_SHIFT                   4  /* ADCR_DAC_SVOL - [7:4] */
458 #define WM8903_ADCR_DAC_SVOL_WIDTH                462 #define WM8903_ADCR_DAC_SVOL_WIDTH                   4  /* ADCR_DAC_SVOL - [7:4] */
459 #define WM8903_ADC_TO_DACL_MASK                   463 #define WM8903_ADC_TO_DACL_MASK                 0x000C  /* ADC_TO_DACL - [3:2] */
460 #define WM8903_ADC_TO_DACL_SHIFT                  464 #define WM8903_ADC_TO_DACL_SHIFT                     2  /* ADC_TO_DACL - [3:2] */
461 #define WM8903_ADC_TO_DACL_WIDTH                  465 #define WM8903_ADC_TO_DACL_WIDTH                     2  /* ADC_TO_DACL - [3:2] */
462 #define WM8903_ADC_TO_DACR_MASK                   466 #define WM8903_ADC_TO_DACR_MASK                 0x0003  /* ADC_TO_DACR - [1:0] */
463 #define WM8903_ADC_TO_DACR_SHIFT                  467 #define WM8903_ADC_TO_DACR_SHIFT                     0  /* ADC_TO_DACR - [1:0] */
464 #define WM8903_ADC_TO_DACR_WIDTH                  468 #define WM8903_ADC_TO_DACR_WIDTH                     2  /* ADC_TO_DACR - [1:0] */
465                                                   469 
466 /*                                                470 /*
467  * R33 (0x21) - DAC Digital 1                     471  * R33 (0x21) - DAC Digital 1
468  */                                               472  */
469 #define WM8903_DAC_MONO                           473 #define WM8903_DAC_MONO                         0x1000  /* DAC_MONO */
470 #define WM8903_DAC_MONO_MASK                      474 #define WM8903_DAC_MONO_MASK                    0x1000  /* DAC_MONO */
471 #define WM8903_DAC_MONO_SHIFT                     475 #define WM8903_DAC_MONO_SHIFT                       12  /* DAC_MONO */
472 #define WM8903_DAC_MONO_WIDTH                     476 #define WM8903_DAC_MONO_WIDTH                        1  /* DAC_MONO */
473 #define WM8903_DAC_SB_FILT                        477 #define WM8903_DAC_SB_FILT                      0x0800  /* DAC_SB_FILT */
474 #define WM8903_DAC_SB_FILT_MASK                   478 #define WM8903_DAC_SB_FILT_MASK                 0x0800  /* DAC_SB_FILT */
475 #define WM8903_DAC_SB_FILT_SHIFT                  479 #define WM8903_DAC_SB_FILT_SHIFT                    11  /* DAC_SB_FILT */
476 #define WM8903_DAC_SB_FILT_WIDTH                  480 #define WM8903_DAC_SB_FILT_WIDTH                     1  /* DAC_SB_FILT */
477 #define WM8903_DAC_MUTERATE                       481 #define WM8903_DAC_MUTERATE                     0x0400  /* DAC_MUTERATE */
478 #define WM8903_DAC_MUTERATE_MASK                  482 #define WM8903_DAC_MUTERATE_MASK                0x0400  /* DAC_MUTERATE */
479 #define WM8903_DAC_MUTERATE_SHIFT                 483 #define WM8903_DAC_MUTERATE_SHIFT                   10  /* DAC_MUTERATE */
480 #define WM8903_DAC_MUTERATE_WIDTH                 484 #define WM8903_DAC_MUTERATE_WIDTH                    1  /* DAC_MUTERATE */
481 #define WM8903_DAC_MUTEMODE                       485 #define WM8903_DAC_MUTEMODE                     0x0200  /* DAC_MUTEMODE */
482 #define WM8903_DAC_MUTEMODE_MASK                  486 #define WM8903_DAC_MUTEMODE_MASK                0x0200  /* DAC_MUTEMODE */
483 #define WM8903_DAC_MUTEMODE_SHIFT                 487 #define WM8903_DAC_MUTEMODE_SHIFT                    9  /* DAC_MUTEMODE */
484 #define WM8903_DAC_MUTEMODE_WIDTH                 488 #define WM8903_DAC_MUTEMODE_WIDTH                    1  /* DAC_MUTEMODE */
485 #define WM8903_DAC_MUTE                           489 #define WM8903_DAC_MUTE                         0x0008  /* DAC_MUTE */
486 #define WM8903_DAC_MUTE_MASK                      490 #define WM8903_DAC_MUTE_MASK                    0x0008  /* DAC_MUTE */
487 #define WM8903_DAC_MUTE_SHIFT                     491 #define WM8903_DAC_MUTE_SHIFT                        3  /* DAC_MUTE */
488 #define WM8903_DAC_MUTE_WIDTH                     492 #define WM8903_DAC_MUTE_WIDTH                        1  /* DAC_MUTE */
489 #define WM8903_DEEMPH_MASK                        493 #define WM8903_DEEMPH_MASK                      0x0006  /* DEEMPH - [2:1] */
490 #define WM8903_DEEMPH_SHIFT                       494 #define WM8903_DEEMPH_SHIFT                          1  /* DEEMPH - [2:1] */
491 #define WM8903_DEEMPH_WIDTH                       495 #define WM8903_DEEMPH_WIDTH                          2  /* DEEMPH - [2:1] */
492                                                   496 
493 /*                                                497 /*
494  * R36 (0x24) - ADC Digital Volume Left           498  * R36 (0x24) - ADC Digital Volume Left
495  */                                               499  */
496 #define WM8903_ADCVU                              500 #define WM8903_ADCVU                            0x0100  /* ADCVU */
497 #define WM8903_ADCVU_MASK                         501 #define WM8903_ADCVU_MASK                       0x0100  /* ADCVU */
498 #define WM8903_ADCVU_SHIFT                        502 #define WM8903_ADCVU_SHIFT                           8  /* ADCVU */
499 #define WM8903_ADCVU_WIDTH                        503 #define WM8903_ADCVU_WIDTH                           1  /* ADCVU */
500 #define WM8903_ADCL_VOL_MASK                      504 #define WM8903_ADCL_VOL_MASK                    0x00FF  /* ADCL_VOL - [7:0] */
501 #define WM8903_ADCL_VOL_SHIFT                     505 #define WM8903_ADCL_VOL_SHIFT                        0  /* ADCL_VOL - [7:0] */
502 #define WM8903_ADCL_VOL_WIDTH                     506 #define WM8903_ADCL_VOL_WIDTH                        8  /* ADCL_VOL - [7:0] */
503                                                   507 
504 /*                                                508 /*
505  * R37 (0x25) - ADC Digital Volume Right          509  * R37 (0x25) - ADC Digital Volume Right
506  */                                               510  */
507 #define WM8903_ADCVU                              511 #define WM8903_ADCVU                            0x0100  /* ADCVU */
508 #define WM8903_ADCVU_MASK                         512 #define WM8903_ADCVU_MASK                       0x0100  /* ADCVU */
509 #define WM8903_ADCVU_SHIFT                        513 #define WM8903_ADCVU_SHIFT                           8  /* ADCVU */
510 #define WM8903_ADCVU_WIDTH                        514 #define WM8903_ADCVU_WIDTH                           1  /* ADCVU */
511 #define WM8903_ADCR_VOL_MASK                      515 #define WM8903_ADCR_VOL_MASK                    0x00FF  /* ADCR_VOL - [7:0] */
512 #define WM8903_ADCR_VOL_SHIFT                     516 #define WM8903_ADCR_VOL_SHIFT                        0  /* ADCR_VOL - [7:0] */
513 #define WM8903_ADCR_VOL_WIDTH                     517 #define WM8903_ADCR_VOL_WIDTH                        8  /* ADCR_VOL - [7:0] */
514                                                   518 
515 /*                                                519 /*
516  * R38 (0x26) - ADC Digital 0                     520  * R38 (0x26) - ADC Digital 0
517  */                                               521  */
518 #define WM8903_ADC_HPF_CUT_MASK                   522 #define WM8903_ADC_HPF_CUT_MASK                 0x0060  /* ADC_HPF_CUT - [6:5] */
519 #define WM8903_ADC_HPF_CUT_SHIFT                  523 #define WM8903_ADC_HPF_CUT_SHIFT                     5  /* ADC_HPF_CUT - [6:5] */
520 #define WM8903_ADC_HPF_CUT_WIDTH                  524 #define WM8903_ADC_HPF_CUT_WIDTH                     2  /* ADC_HPF_CUT - [6:5] */
521 #define WM8903_ADC_HPF_ENA                        525 #define WM8903_ADC_HPF_ENA                      0x0010  /* ADC_HPF_ENA */
522 #define WM8903_ADC_HPF_ENA_MASK                   526 #define WM8903_ADC_HPF_ENA_MASK                 0x0010  /* ADC_HPF_ENA */
523 #define WM8903_ADC_HPF_ENA_SHIFT                  527 #define WM8903_ADC_HPF_ENA_SHIFT                     4  /* ADC_HPF_ENA */
524 #define WM8903_ADC_HPF_ENA_WIDTH                  528 #define WM8903_ADC_HPF_ENA_WIDTH                     1  /* ADC_HPF_ENA */
525 #define WM8903_ADCL_DATINV                        529 #define WM8903_ADCL_DATINV                      0x0002  /* ADCL_DATINV */
526 #define WM8903_ADCL_DATINV_MASK                   530 #define WM8903_ADCL_DATINV_MASK                 0x0002  /* ADCL_DATINV */
527 #define WM8903_ADCL_DATINV_SHIFT                  531 #define WM8903_ADCL_DATINV_SHIFT                     1  /* ADCL_DATINV */
528 #define WM8903_ADCL_DATINV_WIDTH                  532 #define WM8903_ADCL_DATINV_WIDTH                     1  /* ADCL_DATINV */
529 #define WM8903_ADCR_DATINV                        533 #define WM8903_ADCR_DATINV                      0x0001  /* ADCR_DATINV */
530 #define WM8903_ADCR_DATINV_MASK                   534 #define WM8903_ADCR_DATINV_MASK                 0x0001  /* ADCR_DATINV */
531 #define WM8903_ADCR_DATINV_SHIFT                  535 #define WM8903_ADCR_DATINV_SHIFT                     0  /* ADCR_DATINV */
532 #define WM8903_ADCR_DATINV_WIDTH                  536 #define WM8903_ADCR_DATINV_WIDTH                     1  /* ADCR_DATINV */
533                                                   537 
534 /*                                                538 /*
535  * R39 (0x27) - Digital Microphone 0              539  * R39 (0x27) - Digital Microphone 0
536  */                                               540  */
537 #define WM8903_DIGMIC_MODE_SEL                    541 #define WM8903_DIGMIC_MODE_SEL                  0x0100  /* DIGMIC_MODE_SEL */
538 #define WM8903_DIGMIC_MODE_SEL_MASK               542 #define WM8903_DIGMIC_MODE_SEL_MASK             0x0100  /* DIGMIC_MODE_SEL */
539 #define WM8903_DIGMIC_MODE_SEL_SHIFT              543 #define WM8903_DIGMIC_MODE_SEL_SHIFT                 8  /* DIGMIC_MODE_SEL */
540 #define WM8903_DIGMIC_MODE_SEL_WIDTH              544 #define WM8903_DIGMIC_MODE_SEL_WIDTH                 1  /* DIGMIC_MODE_SEL */
541 #define WM8903_DIGMIC_CLK_SEL_L_MASK              545 #define WM8903_DIGMIC_CLK_SEL_L_MASK            0x00C0  /* DIGMIC_CLK_SEL_L - [7:6] */
542 #define WM8903_DIGMIC_CLK_SEL_L_SHIFT             546 #define WM8903_DIGMIC_CLK_SEL_L_SHIFT                6  /* DIGMIC_CLK_SEL_L - [7:6] */
543 #define WM8903_DIGMIC_CLK_SEL_L_WIDTH             547 #define WM8903_DIGMIC_CLK_SEL_L_WIDTH                2  /* DIGMIC_CLK_SEL_L - [7:6] */
544 #define WM8903_DIGMIC_CLK_SEL_R_MASK              548 #define WM8903_DIGMIC_CLK_SEL_R_MASK            0x0030  /* DIGMIC_CLK_SEL_R - [5:4] */
545 #define WM8903_DIGMIC_CLK_SEL_R_SHIFT             549 #define WM8903_DIGMIC_CLK_SEL_R_SHIFT                4  /* DIGMIC_CLK_SEL_R - [5:4] */
546 #define WM8903_DIGMIC_CLK_SEL_R_WIDTH             550 #define WM8903_DIGMIC_CLK_SEL_R_WIDTH                2  /* DIGMIC_CLK_SEL_R - [5:4] */
547 #define WM8903_DIGMIC_CLK_SEL_RT_MASK             551 #define WM8903_DIGMIC_CLK_SEL_RT_MASK           0x000C  /* DIGMIC_CLK_SEL_RT - [3:2] */
548 #define WM8903_DIGMIC_CLK_SEL_RT_SHIFT            552 #define WM8903_DIGMIC_CLK_SEL_RT_SHIFT               2  /* DIGMIC_CLK_SEL_RT - [3:2] */
549 #define WM8903_DIGMIC_CLK_SEL_RT_WIDTH            553 #define WM8903_DIGMIC_CLK_SEL_RT_WIDTH               2  /* DIGMIC_CLK_SEL_RT - [3:2] */
550 #define WM8903_DIGMIC_CLK_SEL_MASK                554 #define WM8903_DIGMIC_CLK_SEL_MASK              0x0003  /* DIGMIC_CLK_SEL - [1:0] */
551 #define WM8903_DIGMIC_CLK_SEL_SHIFT               555 #define WM8903_DIGMIC_CLK_SEL_SHIFT                  0  /* DIGMIC_CLK_SEL - [1:0] */
552 #define WM8903_DIGMIC_CLK_SEL_WIDTH               556 #define WM8903_DIGMIC_CLK_SEL_WIDTH                  2  /* DIGMIC_CLK_SEL - [1:0] */
553                                                   557 
554 /*                                                558 /*
555  * R40 (0x28) - DRC 0                             559  * R40 (0x28) - DRC 0
556  */                                               560  */
557 #define WM8903_DRC_ENA                            561 #define WM8903_DRC_ENA                          0x8000  /* DRC_ENA */
558 #define WM8903_DRC_ENA_MASK                       562 #define WM8903_DRC_ENA_MASK                     0x8000  /* DRC_ENA */
559 #define WM8903_DRC_ENA_SHIFT                      563 #define WM8903_DRC_ENA_SHIFT                        15  /* DRC_ENA */
560 #define WM8903_DRC_ENA_WIDTH                      564 #define WM8903_DRC_ENA_WIDTH                         1  /* DRC_ENA */
561 #define WM8903_DRC_THRESH_HYST_MASK               565 #define WM8903_DRC_THRESH_HYST_MASK             0x1800  /* DRC_THRESH_HYST - [12:11] */
562 #define WM8903_DRC_THRESH_HYST_SHIFT              566 #define WM8903_DRC_THRESH_HYST_SHIFT                11  /* DRC_THRESH_HYST - [12:11] */
563 #define WM8903_DRC_THRESH_HYST_WIDTH              567 #define WM8903_DRC_THRESH_HYST_WIDTH                 2  /* DRC_THRESH_HYST - [12:11] */
564 #define WM8903_DRC_STARTUP_GAIN_MASK              568 #define WM8903_DRC_STARTUP_GAIN_MASK            0x07C0  /* DRC_STARTUP_GAIN - [10:6] */
565 #define WM8903_DRC_STARTUP_GAIN_SHIFT             569 #define WM8903_DRC_STARTUP_GAIN_SHIFT                6  /* DRC_STARTUP_GAIN - [10:6] */
566 #define WM8903_DRC_STARTUP_GAIN_WIDTH             570 #define WM8903_DRC_STARTUP_GAIN_WIDTH                5  /* DRC_STARTUP_GAIN - [10:6] */
567 #define WM8903_DRC_FF_DELAY                       571 #define WM8903_DRC_FF_DELAY                     0x0020  /* DRC_FF_DELAY */
568 #define WM8903_DRC_FF_DELAY_MASK                  572 #define WM8903_DRC_FF_DELAY_MASK                0x0020  /* DRC_FF_DELAY */
569 #define WM8903_DRC_FF_DELAY_SHIFT                 573 #define WM8903_DRC_FF_DELAY_SHIFT                    5  /* DRC_FF_DELAY */
570 #define WM8903_DRC_FF_DELAY_WIDTH                 574 #define WM8903_DRC_FF_DELAY_WIDTH                    1  /* DRC_FF_DELAY */
571 #define WM8903_DRC_SMOOTH_ENA                     575 #define WM8903_DRC_SMOOTH_ENA                   0x0008  /* DRC_SMOOTH_ENA */
572 #define WM8903_DRC_SMOOTH_ENA_MASK                576 #define WM8903_DRC_SMOOTH_ENA_MASK              0x0008  /* DRC_SMOOTH_ENA */
573 #define WM8903_DRC_SMOOTH_ENA_SHIFT               577 #define WM8903_DRC_SMOOTH_ENA_SHIFT                  3  /* DRC_SMOOTH_ENA */
574 #define WM8903_DRC_SMOOTH_ENA_WIDTH               578 #define WM8903_DRC_SMOOTH_ENA_WIDTH                  1  /* DRC_SMOOTH_ENA */
575 #define WM8903_DRC_QR_ENA                         579 #define WM8903_DRC_QR_ENA                       0x0004  /* DRC_QR_ENA */
576 #define WM8903_DRC_QR_ENA_MASK                    580 #define WM8903_DRC_QR_ENA_MASK                  0x0004  /* DRC_QR_ENA */
577 #define WM8903_DRC_QR_ENA_SHIFT                   581 #define WM8903_DRC_QR_ENA_SHIFT                      2  /* DRC_QR_ENA */
578 #define WM8903_DRC_QR_ENA_WIDTH                   582 #define WM8903_DRC_QR_ENA_WIDTH                      1  /* DRC_QR_ENA */
579 #define WM8903_DRC_ANTICLIP_ENA                   583 #define WM8903_DRC_ANTICLIP_ENA                 0x0002  /* DRC_ANTICLIP_ENA */
580 #define WM8903_DRC_ANTICLIP_ENA_MASK              584 #define WM8903_DRC_ANTICLIP_ENA_MASK            0x0002  /* DRC_ANTICLIP_ENA */
581 #define WM8903_DRC_ANTICLIP_ENA_SHIFT             585 #define WM8903_DRC_ANTICLIP_ENA_SHIFT                1  /* DRC_ANTICLIP_ENA */
582 #define WM8903_DRC_ANTICLIP_ENA_WIDTH             586 #define WM8903_DRC_ANTICLIP_ENA_WIDTH                1  /* DRC_ANTICLIP_ENA */
583 #define WM8903_DRC_HYST_ENA                       587 #define WM8903_DRC_HYST_ENA                     0x0001  /* DRC_HYST_ENA */
584 #define WM8903_DRC_HYST_ENA_MASK                  588 #define WM8903_DRC_HYST_ENA_MASK                0x0001  /* DRC_HYST_ENA */
585 #define WM8903_DRC_HYST_ENA_SHIFT                 589 #define WM8903_DRC_HYST_ENA_SHIFT                    0  /* DRC_HYST_ENA */
586 #define WM8903_DRC_HYST_ENA_WIDTH                 590 #define WM8903_DRC_HYST_ENA_WIDTH                    1  /* DRC_HYST_ENA */
587                                                   591 
588 /*                                                592 /*
589  * R41 (0x29) - DRC 1                             593  * R41 (0x29) - DRC 1
590  */                                               594  */
591 #define WM8903_DRC_ATTACK_RATE_MASK               595 #define WM8903_DRC_ATTACK_RATE_MASK             0xF000  /* DRC_ATTACK_RATE - [15:12] */
592 #define WM8903_DRC_ATTACK_RATE_SHIFT              596 #define WM8903_DRC_ATTACK_RATE_SHIFT                12  /* DRC_ATTACK_RATE - [15:12] */
593 #define WM8903_DRC_ATTACK_RATE_WIDTH              597 #define WM8903_DRC_ATTACK_RATE_WIDTH                 4  /* DRC_ATTACK_RATE - [15:12] */
594 #define WM8903_DRC_DECAY_RATE_MASK                598 #define WM8903_DRC_DECAY_RATE_MASK              0x0F00  /* DRC_DECAY_RATE - [11:8] */
595 #define WM8903_DRC_DECAY_RATE_SHIFT               599 #define WM8903_DRC_DECAY_RATE_SHIFT                  8  /* DRC_DECAY_RATE - [11:8] */
596 #define WM8903_DRC_DECAY_RATE_WIDTH               600 #define WM8903_DRC_DECAY_RATE_WIDTH                  4  /* DRC_DECAY_RATE - [11:8] */
597 #define WM8903_DRC_THRESH_QR_MASK                 601 #define WM8903_DRC_THRESH_QR_MASK               0x00C0  /* DRC_THRESH_QR - [7:6] */
598 #define WM8903_DRC_THRESH_QR_SHIFT                602 #define WM8903_DRC_THRESH_QR_SHIFT                   6  /* DRC_THRESH_QR - [7:6] */
599 #define WM8903_DRC_THRESH_QR_WIDTH                603 #define WM8903_DRC_THRESH_QR_WIDTH                   2  /* DRC_THRESH_QR - [7:6] */
600 #define WM8903_DRC_RATE_QR_MASK                   604 #define WM8903_DRC_RATE_QR_MASK                 0x0030  /* DRC_RATE_QR - [5:4] */
601 #define WM8903_DRC_RATE_QR_SHIFT                  605 #define WM8903_DRC_RATE_QR_SHIFT                     4  /* DRC_RATE_QR - [5:4] */
602 #define WM8903_DRC_RATE_QR_WIDTH                  606 #define WM8903_DRC_RATE_QR_WIDTH                     2  /* DRC_RATE_QR - [5:4] */
603 #define WM8903_DRC_MINGAIN_MASK                   607 #define WM8903_DRC_MINGAIN_MASK                 0x000C  /* DRC_MINGAIN - [3:2] */
604 #define WM8903_DRC_MINGAIN_SHIFT                  608 #define WM8903_DRC_MINGAIN_SHIFT                     2  /* DRC_MINGAIN - [3:2] */
605 #define WM8903_DRC_MINGAIN_WIDTH                  609 #define WM8903_DRC_MINGAIN_WIDTH                     2  /* DRC_MINGAIN - [3:2] */
606 #define WM8903_DRC_MAXGAIN_MASK                   610 #define WM8903_DRC_MAXGAIN_MASK                 0x0003  /* DRC_MAXGAIN - [1:0] */
607 #define WM8903_DRC_MAXGAIN_SHIFT                  611 #define WM8903_DRC_MAXGAIN_SHIFT                     0  /* DRC_MAXGAIN - [1:0] */
608 #define WM8903_DRC_MAXGAIN_WIDTH                  612 #define WM8903_DRC_MAXGAIN_WIDTH                     2  /* DRC_MAXGAIN - [1:0] */
609                                                   613 
610 /*                                                614 /*
611  * R42 (0x2A) - DRC 2                             615  * R42 (0x2A) - DRC 2
612  */                                               616  */
613 #define WM8903_DRC_R0_SLOPE_COMP_MASK             617 #define WM8903_DRC_R0_SLOPE_COMP_MASK           0x0038  /* DRC_R0_SLOPE_COMP - [5:3] */
614 #define WM8903_DRC_R0_SLOPE_COMP_SHIFT            618 #define WM8903_DRC_R0_SLOPE_COMP_SHIFT               3  /* DRC_R0_SLOPE_COMP - [5:3] */
615 #define WM8903_DRC_R0_SLOPE_COMP_WIDTH            619 #define WM8903_DRC_R0_SLOPE_COMP_WIDTH               3  /* DRC_R0_SLOPE_COMP - [5:3] */
616 #define WM8903_DRC_R1_SLOPE_COMP_MASK             620 #define WM8903_DRC_R1_SLOPE_COMP_MASK           0x0007  /* DRC_R1_SLOPE_COMP - [2:0] */
617 #define WM8903_DRC_R1_SLOPE_COMP_SHIFT            621 #define WM8903_DRC_R1_SLOPE_COMP_SHIFT               0  /* DRC_R1_SLOPE_COMP - [2:0] */
618 #define WM8903_DRC_R1_SLOPE_COMP_WIDTH            622 #define WM8903_DRC_R1_SLOPE_COMP_WIDTH               3  /* DRC_R1_SLOPE_COMP - [2:0] */
619                                                   623 
620 /*                                                624 /*
621  * R43 (0x2B) - DRC 3                             625  * R43 (0x2B) - DRC 3
622  */                                               626  */
623 #define WM8903_DRC_THRESH_COMP_MASK               627 #define WM8903_DRC_THRESH_COMP_MASK             0x07E0  /* DRC_THRESH_COMP - [10:5] */
624 #define WM8903_DRC_THRESH_COMP_SHIFT              628 #define WM8903_DRC_THRESH_COMP_SHIFT                 5  /* DRC_THRESH_COMP - [10:5] */
625 #define WM8903_DRC_THRESH_COMP_WIDTH              629 #define WM8903_DRC_THRESH_COMP_WIDTH                 6  /* DRC_THRESH_COMP - [10:5] */
626 #define WM8903_DRC_AMP_COMP_MASK                  630 #define WM8903_DRC_AMP_COMP_MASK                0x001F  /* DRC_AMP_COMP - [4:0] */
627 #define WM8903_DRC_AMP_COMP_SHIFT                 631 #define WM8903_DRC_AMP_COMP_SHIFT                    0  /* DRC_AMP_COMP - [4:0] */
628 #define WM8903_DRC_AMP_COMP_WIDTH                 632 #define WM8903_DRC_AMP_COMP_WIDTH                    5  /* DRC_AMP_COMP - [4:0] */
629                                                   633 
630 /*                                                634 /*
631  * R44 (0x2C) - Analogue Left Input 0             635  * R44 (0x2C) - Analogue Left Input 0
632  */                                               636  */
633 #define WM8903_LINMUTE                            637 #define WM8903_LINMUTE                          0x0080  /* LINMUTE */
634 #define WM8903_LINMUTE_MASK                       638 #define WM8903_LINMUTE_MASK                     0x0080  /* LINMUTE */
635 #define WM8903_LINMUTE_SHIFT                      639 #define WM8903_LINMUTE_SHIFT                         7  /* LINMUTE */
636 #define WM8903_LINMUTE_WIDTH                      640 #define WM8903_LINMUTE_WIDTH                         1  /* LINMUTE */
637 #define WM8903_LIN_VOL_MASK                       641 #define WM8903_LIN_VOL_MASK                     0x001F  /* LIN_VOL - [4:0] */
638 #define WM8903_LIN_VOL_SHIFT                      642 #define WM8903_LIN_VOL_SHIFT                         0  /* LIN_VOL - [4:0] */
639 #define WM8903_LIN_VOL_WIDTH                      643 #define WM8903_LIN_VOL_WIDTH                         5  /* LIN_VOL - [4:0] */
640                                                   644 
641 /*                                                645 /*
642  * R45 (0x2D) - Analogue Right Input 0            646  * R45 (0x2D) - Analogue Right Input 0
643  */                                               647  */
644 #define WM8903_RINMUTE                            648 #define WM8903_RINMUTE                          0x0080  /* RINMUTE */
645 #define WM8903_RINMUTE_MASK                       649 #define WM8903_RINMUTE_MASK                     0x0080  /* RINMUTE */
646 #define WM8903_RINMUTE_SHIFT                      650 #define WM8903_RINMUTE_SHIFT                         7  /* RINMUTE */
647 #define WM8903_RINMUTE_WIDTH                      651 #define WM8903_RINMUTE_WIDTH                         1  /* RINMUTE */
648 #define WM8903_RIN_VOL_MASK                       652 #define WM8903_RIN_VOL_MASK                     0x001F  /* RIN_VOL - [4:0] */
649 #define WM8903_RIN_VOL_SHIFT                      653 #define WM8903_RIN_VOL_SHIFT                         0  /* RIN_VOL - [4:0] */
650 #define WM8903_RIN_VOL_WIDTH                      654 #define WM8903_RIN_VOL_WIDTH                         5  /* RIN_VOL - [4:0] */
651                                                   655 
652 /*                                                656 /*
653  * R46 (0x2E) - Analogue Left Input 1             657  * R46 (0x2E) - Analogue Left Input 1
654  */                                               658  */
655 #define WM8903_INL_CM_ENA                         659 #define WM8903_INL_CM_ENA                       0x0040  /* INL_CM_ENA */
656 #define WM8903_INL_CM_ENA_MASK                    660 #define WM8903_INL_CM_ENA_MASK                  0x0040  /* INL_CM_ENA */
657 #define WM8903_INL_CM_ENA_SHIFT                   661 #define WM8903_INL_CM_ENA_SHIFT                      6  /* INL_CM_ENA */
658 #define WM8903_INL_CM_ENA_WIDTH                   662 #define WM8903_INL_CM_ENA_WIDTH                      1  /* INL_CM_ENA */
659 #define WM8903_L_IP_SEL_N_MASK                    663 #define WM8903_L_IP_SEL_N_MASK                  0x0030  /* L_IP_SEL_N - [5:4] */
660 #define WM8903_L_IP_SEL_N_SHIFT                   664 #define WM8903_L_IP_SEL_N_SHIFT                      4  /* L_IP_SEL_N - [5:4] */
661 #define WM8903_L_IP_SEL_N_WIDTH                   665 #define WM8903_L_IP_SEL_N_WIDTH                      2  /* L_IP_SEL_N - [5:4] */
662 #define WM8903_L_IP_SEL_P_MASK                    666 #define WM8903_L_IP_SEL_P_MASK                  0x000C  /* L_IP_SEL_P - [3:2] */
663 #define WM8903_L_IP_SEL_P_SHIFT                   667 #define WM8903_L_IP_SEL_P_SHIFT                      2  /* L_IP_SEL_P - [3:2] */
664 #define WM8903_L_IP_SEL_P_WIDTH                   668 #define WM8903_L_IP_SEL_P_WIDTH                      2  /* L_IP_SEL_P - [3:2] */
665 #define WM8903_L_MODE_MASK                        669 #define WM8903_L_MODE_MASK                      0x0003  /* L_MODE - [1:0] */
666 #define WM8903_L_MODE_SHIFT                       670 #define WM8903_L_MODE_SHIFT                          0  /* L_MODE - [1:0] */
667 #define WM8903_L_MODE_WIDTH                       671 #define WM8903_L_MODE_WIDTH                          2  /* L_MODE - [1:0] */
668                                                   672 
669 /*                                                673 /*
670  * R47 (0x2F) - Analogue Right Input 1            674  * R47 (0x2F) - Analogue Right Input 1
671  */                                               675  */
672 #define WM8903_INR_CM_ENA                         676 #define WM8903_INR_CM_ENA                       0x0040  /* INR_CM_ENA */
673 #define WM8903_INR_CM_ENA_MASK                    677 #define WM8903_INR_CM_ENA_MASK                  0x0040  /* INR_CM_ENA */
674 #define WM8903_INR_CM_ENA_SHIFT                   678 #define WM8903_INR_CM_ENA_SHIFT                      6  /* INR_CM_ENA */
675 #define WM8903_INR_CM_ENA_WIDTH                   679 #define WM8903_INR_CM_ENA_WIDTH                      1  /* INR_CM_ENA */
676 #define WM8903_R_IP_SEL_N_MASK                    680 #define WM8903_R_IP_SEL_N_MASK                  0x0030  /* R_IP_SEL_N - [5:4] */
677 #define WM8903_R_IP_SEL_N_SHIFT                   681 #define WM8903_R_IP_SEL_N_SHIFT                      4  /* R_IP_SEL_N - [5:4] */
678 #define WM8903_R_IP_SEL_N_WIDTH                   682 #define WM8903_R_IP_SEL_N_WIDTH                      2  /* R_IP_SEL_N - [5:4] */
679 #define WM8903_R_IP_SEL_P_MASK                    683 #define WM8903_R_IP_SEL_P_MASK                  0x000C  /* R_IP_SEL_P - [3:2] */
680 #define WM8903_R_IP_SEL_P_SHIFT                   684 #define WM8903_R_IP_SEL_P_SHIFT                      2  /* R_IP_SEL_P - [3:2] */
681 #define WM8903_R_IP_SEL_P_WIDTH                   685 #define WM8903_R_IP_SEL_P_WIDTH                      2  /* R_IP_SEL_P - [3:2] */
682 #define WM8903_R_MODE_MASK                        686 #define WM8903_R_MODE_MASK                      0x0003  /* R_MODE - [1:0] */
683 #define WM8903_R_MODE_SHIFT                       687 #define WM8903_R_MODE_SHIFT                          0  /* R_MODE - [1:0] */
684 #define WM8903_R_MODE_WIDTH                       688 #define WM8903_R_MODE_WIDTH                          2  /* R_MODE - [1:0] */
685                                                   689 
686 /*                                                690 /*
687  * R50 (0x32) - Analogue Left Mix 0               691  * R50 (0x32) - Analogue Left Mix 0
688  */                                               692  */
689 #define WM8903_DACL_TO_MIXOUTL                    693 #define WM8903_DACL_TO_MIXOUTL                  0x0008  /* DACL_TO_MIXOUTL */
690 #define WM8903_DACL_TO_MIXOUTL_MASK               694 #define WM8903_DACL_TO_MIXOUTL_MASK             0x0008  /* DACL_TO_MIXOUTL */
691 #define WM8903_DACL_TO_MIXOUTL_SHIFT              695 #define WM8903_DACL_TO_MIXOUTL_SHIFT                 3  /* DACL_TO_MIXOUTL */
692 #define WM8903_DACL_TO_MIXOUTL_WIDTH              696 #define WM8903_DACL_TO_MIXOUTL_WIDTH                 1  /* DACL_TO_MIXOUTL */
693 #define WM8903_DACR_TO_MIXOUTL                    697 #define WM8903_DACR_TO_MIXOUTL                  0x0004  /* DACR_TO_MIXOUTL */
694 #define WM8903_DACR_TO_MIXOUTL_MASK               698 #define WM8903_DACR_TO_MIXOUTL_MASK             0x0004  /* DACR_TO_MIXOUTL */
695 #define WM8903_DACR_TO_MIXOUTL_SHIFT              699 #define WM8903_DACR_TO_MIXOUTL_SHIFT                 2  /* DACR_TO_MIXOUTL */
696 #define WM8903_DACR_TO_MIXOUTL_WIDTH              700 #define WM8903_DACR_TO_MIXOUTL_WIDTH                 1  /* DACR_TO_MIXOUTL */
697 #define WM8903_BYPASSL_TO_MIXOUTL                 701 #define WM8903_BYPASSL_TO_MIXOUTL               0x0002  /* BYPASSL_TO_MIXOUTL */
698 #define WM8903_BYPASSL_TO_MIXOUTL_MASK            702 #define WM8903_BYPASSL_TO_MIXOUTL_MASK          0x0002  /* BYPASSL_TO_MIXOUTL */
699 #define WM8903_BYPASSL_TO_MIXOUTL_SHIFT           703 #define WM8903_BYPASSL_TO_MIXOUTL_SHIFT              1  /* BYPASSL_TO_MIXOUTL */
700 #define WM8903_BYPASSL_TO_MIXOUTL_WIDTH           704 #define WM8903_BYPASSL_TO_MIXOUTL_WIDTH              1  /* BYPASSL_TO_MIXOUTL */
701 #define WM8903_BYPASSR_TO_MIXOUTL                 705 #define WM8903_BYPASSR_TO_MIXOUTL               0x0001  /* BYPASSR_TO_MIXOUTL */
702 #define WM8903_BYPASSR_TO_MIXOUTL_MASK            706 #define WM8903_BYPASSR_TO_MIXOUTL_MASK          0x0001  /* BYPASSR_TO_MIXOUTL */
703 #define WM8903_BYPASSR_TO_MIXOUTL_SHIFT           707 #define WM8903_BYPASSR_TO_MIXOUTL_SHIFT              0  /* BYPASSR_TO_MIXOUTL */
704 #define WM8903_BYPASSR_TO_MIXOUTL_WIDTH           708 #define WM8903_BYPASSR_TO_MIXOUTL_WIDTH              1  /* BYPASSR_TO_MIXOUTL */
705                                                   709 
706 /*                                                710 /*
707  * R51 (0x33) - Analogue Right Mix 0              711  * R51 (0x33) - Analogue Right Mix 0
708  */                                               712  */
709 #define WM8903_DACL_TO_MIXOUTR                    713 #define WM8903_DACL_TO_MIXOUTR                  0x0008  /* DACL_TO_MIXOUTR */
710 #define WM8903_DACL_TO_MIXOUTR_MASK               714 #define WM8903_DACL_TO_MIXOUTR_MASK             0x0008  /* DACL_TO_MIXOUTR */
711 #define WM8903_DACL_TO_MIXOUTR_SHIFT              715 #define WM8903_DACL_TO_MIXOUTR_SHIFT                 3  /* DACL_TO_MIXOUTR */
712 #define WM8903_DACL_TO_MIXOUTR_WIDTH              716 #define WM8903_DACL_TO_MIXOUTR_WIDTH                 1  /* DACL_TO_MIXOUTR */
713 #define WM8903_DACR_TO_MIXOUTR                    717 #define WM8903_DACR_TO_MIXOUTR                  0x0004  /* DACR_TO_MIXOUTR */
714 #define WM8903_DACR_TO_MIXOUTR_MASK               718 #define WM8903_DACR_TO_MIXOUTR_MASK             0x0004  /* DACR_TO_MIXOUTR */
715 #define WM8903_DACR_TO_MIXOUTR_SHIFT              719 #define WM8903_DACR_TO_MIXOUTR_SHIFT                 2  /* DACR_TO_MIXOUTR */
716 #define WM8903_DACR_TO_MIXOUTR_WIDTH              720 #define WM8903_DACR_TO_MIXOUTR_WIDTH                 1  /* DACR_TO_MIXOUTR */
717 #define WM8903_BYPASSL_TO_MIXOUTR                 721 #define WM8903_BYPASSL_TO_MIXOUTR               0x0002  /* BYPASSL_TO_MIXOUTR */
718 #define WM8903_BYPASSL_TO_MIXOUTR_MASK            722 #define WM8903_BYPASSL_TO_MIXOUTR_MASK          0x0002  /* BYPASSL_TO_MIXOUTR */
719 #define WM8903_BYPASSL_TO_MIXOUTR_SHIFT           723 #define WM8903_BYPASSL_TO_MIXOUTR_SHIFT              1  /* BYPASSL_TO_MIXOUTR */
720 #define WM8903_BYPASSL_TO_MIXOUTR_WIDTH           724 #define WM8903_BYPASSL_TO_MIXOUTR_WIDTH              1  /* BYPASSL_TO_MIXOUTR */
721 #define WM8903_BYPASSR_TO_MIXOUTR                 725 #define WM8903_BYPASSR_TO_MIXOUTR               0x0001  /* BYPASSR_TO_MIXOUTR */
722 #define WM8903_BYPASSR_TO_MIXOUTR_MASK            726 #define WM8903_BYPASSR_TO_MIXOUTR_MASK          0x0001  /* BYPASSR_TO_MIXOUTR */
723 #define WM8903_BYPASSR_TO_MIXOUTR_SHIFT           727 #define WM8903_BYPASSR_TO_MIXOUTR_SHIFT              0  /* BYPASSR_TO_MIXOUTR */
724 #define WM8903_BYPASSR_TO_MIXOUTR_WIDTH           728 #define WM8903_BYPASSR_TO_MIXOUTR_WIDTH              1  /* BYPASSR_TO_MIXOUTR */
725                                                   729 
726 /*                                                730 /*
727  * R52 (0x34) - Analogue Spk Mix Left 0           731  * R52 (0x34) - Analogue Spk Mix Left 0
728  */                                               732  */
729 #define WM8903_DACL_TO_MIXSPKL                    733 #define WM8903_DACL_TO_MIXSPKL                  0x0008  /* DACL_TO_MIXSPKL */
730 #define WM8903_DACL_TO_MIXSPKL_MASK               734 #define WM8903_DACL_TO_MIXSPKL_MASK             0x0008  /* DACL_TO_MIXSPKL */
731 #define WM8903_DACL_TO_MIXSPKL_SHIFT              735 #define WM8903_DACL_TO_MIXSPKL_SHIFT                 3  /* DACL_TO_MIXSPKL */
732 #define WM8903_DACL_TO_MIXSPKL_WIDTH              736 #define WM8903_DACL_TO_MIXSPKL_WIDTH                 1  /* DACL_TO_MIXSPKL */
733 #define WM8903_DACR_TO_MIXSPKL                    737 #define WM8903_DACR_TO_MIXSPKL                  0x0004  /* DACR_TO_MIXSPKL */
734 #define WM8903_DACR_TO_MIXSPKL_MASK               738 #define WM8903_DACR_TO_MIXSPKL_MASK             0x0004  /* DACR_TO_MIXSPKL */
735 #define WM8903_DACR_TO_MIXSPKL_SHIFT              739 #define WM8903_DACR_TO_MIXSPKL_SHIFT                 2  /* DACR_TO_MIXSPKL */
736 #define WM8903_DACR_TO_MIXSPKL_WIDTH              740 #define WM8903_DACR_TO_MIXSPKL_WIDTH                 1  /* DACR_TO_MIXSPKL */
737 #define WM8903_BYPASSL_TO_MIXSPKL                 741 #define WM8903_BYPASSL_TO_MIXSPKL               0x0002  /* BYPASSL_TO_MIXSPKL */
738 #define WM8903_BYPASSL_TO_MIXSPKL_MASK            742 #define WM8903_BYPASSL_TO_MIXSPKL_MASK          0x0002  /* BYPASSL_TO_MIXSPKL */
739 #define WM8903_BYPASSL_TO_MIXSPKL_SHIFT           743 #define WM8903_BYPASSL_TO_MIXSPKL_SHIFT              1  /* BYPASSL_TO_MIXSPKL */
740 #define WM8903_BYPASSL_TO_MIXSPKL_WIDTH           744 #define WM8903_BYPASSL_TO_MIXSPKL_WIDTH              1  /* BYPASSL_TO_MIXSPKL */
741 #define WM8903_BYPASSR_TO_MIXSPKL                 745 #define WM8903_BYPASSR_TO_MIXSPKL               0x0001  /* BYPASSR_TO_MIXSPKL */
742 #define WM8903_BYPASSR_TO_MIXSPKL_MASK            746 #define WM8903_BYPASSR_TO_MIXSPKL_MASK          0x0001  /* BYPASSR_TO_MIXSPKL */
743 #define WM8903_BYPASSR_TO_MIXSPKL_SHIFT           747 #define WM8903_BYPASSR_TO_MIXSPKL_SHIFT              0  /* BYPASSR_TO_MIXSPKL */
744 #define WM8903_BYPASSR_TO_MIXSPKL_WIDTH           748 #define WM8903_BYPASSR_TO_MIXSPKL_WIDTH              1  /* BYPASSR_TO_MIXSPKL */
745                                                   749 
746 /*                                                750 /*
747  * R53 (0x35) - Analogue Spk Mix Left 1           751  * R53 (0x35) - Analogue Spk Mix Left 1
748  */                                               752  */
749 #define WM8903_DACL_MIXSPKL_VOL                   753 #define WM8903_DACL_MIXSPKL_VOL                 0x0008  /* DACL_MIXSPKL_VOL */
750 #define WM8903_DACL_MIXSPKL_VOL_MASK              754 #define WM8903_DACL_MIXSPKL_VOL_MASK            0x0008  /* DACL_MIXSPKL_VOL */
751 #define WM8903_DACL_MIXSPKL_VOL_SHIFT             755 #define WM8903_DACL_MIXSPKL_VOL_SHIFT                3  /* DACL_MIXSPKL_VOL */
752 #define WM8903_DACL_MIXSPKL_VOL_WIDTH             756 #define WM8903_DACL_MIXSPKL_VOL_WIDTH                1  /* DACL_MIXSPKL_VOL */
753 #define WM8903_DACR_MIXSPKL_VOL                   757 #define WM8903_DACR_MIXSPKL_VOL                 0x0004  /* DACR_MIXSPKL_VOL */
754 #define WM8903_DACR_MIXSPKL_VOL_MASK              758 #define WM8903_DACR_MIXSPKL_VOL_MASK            0x0004  /* DACR_MIXSPKL_VOL */
755 #define WM8903_DACR_MIXSPKL_VOL_SHIFT             759 #define WM8903_DACR_MIXSPKL_VOL_SHIFT                2  /* DACR_MIXSPKL_VOL */
756 #define WM8903_DACR_MIXSPKL_VOL_WIDTH             760 #define WM8903_DACR_MIXSPKL_VOL_WIDTH                1  /* DACR_MIXSPKL_VOL */
757 #define WM8903_BYPASSL_MIXSPKL_VOL                761 #define WM8903_BYPASSL_MIXSPKL_VOL              0x0002  /* BYPASSL_MIXSPKL_VOL */
758 #define WM8903_BYPASSL_MIXSPKL_VOL_MASK           762 #define WM8903_BYPASSL_MIXSPKL_VOL_MASK         0x0002  /* BYPASSL_MIXSPKL_VOL */
759 #define WM8903_BYPASSL_MIXSPKL_VOL_SHIFT          763 #define WM8903_BYPASSL_MIXSPKL_VOL_SHIFT             1  /* BYPASSL_MIXSPKL_VOL */
760 #define WM8903_BYPASSL_MIXSPKL_VOL_WIDTH          764 #define WM8903_BYPASSL_MIXSPKL_VOL_WIDTH             1  /* BYPASSL_MIXSPKL_VOL */
761 #define WM8903_BYPASSR_MIXSPKL_VOL                765 #define WM8903_BYPASSR_MIXSPKL_VOL              0x0001  /* BYPASSR_MIXSPKL_VOL */
762 #define WM8903_BYPASSR_MIXSPKL_VOL_MASK           766 #define WM8903_BYPASSR_MIXSPKL_VOL_MASK         0x0001  /* BYPASSR_MIXSPKL_VOL */
763 #define WM8903_BYPASSR_MIXSPKL_VOL_SHIFT          767 #define WM8903_BYPASSR_MIXSPKL_VOL_SHIFT             0  /* BYPASSR_MIXSPKL_VOL */
764 #define WM8903_BYPASSR_MIXSPKL_VOL_WIDTH          768 #define WM8903_BYPASSR_MIXSPKL_VOL_WIDTH             1  /* BYPASSR_MIXSPKL_VOL */
765                                                   769 
766 /*                                                770 /*
767  * R54 (0x36) - Analogue Spk Mix Right 0          771  * R54 (0x36) - Analogue Spk Mix Right 0
768  */                                               772  */
769 #define WM8903_DACL_TO_MIXSPKR                    773 #define WM8903_DACL_TO_MIXSPKR                  0x0008  /* DACL_TO_MIXSPKR */
770 #define WM8903_DACL_TO_MIXSPKR_MASK               774 #define WM8903_DACL_TO_MIXSPKR_MASK             0x0008  /* DACL_TO_MIXSPKR */
771 #define WM8903_DACL_TO_MIXSPKR_SHIFT              775 #define WM8903_DACL_TO_MIXSPKR_SHIFT                 3  /* DACL_TO_MIXSPKR */
772 #define WM8903_DACL_TO_MIXSPKR_WIDTH              776 #define WM8903_DACL_TO_MIXSPKR_WIDTH                 1  /* DACL_TO_MIXSPKR */
773 #define WM8903_DACR_TO_MIXSPKR                    777 #define WM8903_DACR_TO_MIXSPKR                  0x0004  /* DACR_TO_MIXSPKR */
774 #define WM8903_DACR_TO_MIXSPKR_MASK               778 #define WM8903_DACR_TO_MIXSPKR_MASK             0x0004  /* DACR_TO_MIXSPKR */
775 #define WM8903_DACR_TO_MIXSPKR_SHIFT              779 #define WM8903_DACR_TO_MIXSPKR_SHIFT                 2  /* DACR_TO_MIXSPKR */
776 #define WM8903_DACR_TO_MIXSPKR_WIDTH              780 #define WM8903_DACR_TO_MIXSPKR_WIDTH                 1  /* DACR_TO_MIXSPKR */
777 #define WM8903_BYPASSL_TO_MIXSPKR                 781 #define WM8903_BYPASSL_TO_MIXSPKR               0x0002  /* BYPASSL_TO_MIXSPKR */
778 #define WM8903_BYPASSL_TO_MIXSPKR_MASK            782 #define WM8903_BYPASSL_TO_MIXSPKR_MASK          0x0002  /* BYPASSL_TO_MIXSPKR */
779 #define WM8903_BYPASSL_TO_MIXSPKR_SHIFT           783 #define WM8903_BYPASSL_TO_MIXSPKR_SHIFT              1  /* BYPASSL_TO_MIXSPKR */
780 #define WM8903_BYPASSL_TO_MIXSPKR_WIDTH           784 #define WM8903_BYPASSL_TO_MIXSPKR_WIDTH              1  /* BYPASSL_TO_MIXSPKR */
781 #define WM8903_BYPASSR_TO_MIXSPKR                 785 #define WM8903_BYPASSR_TO_MIXSPKR               0x0001  /* BYPASSR_TO_MIXSPKR */
782 #define WM8903_BYPASSR_TO_MIXSPKR_MASK            786 #define WM8903_BYPASSR_TO_MIXSPKR_MASK          0x0001  /* BYPASSR_TO_MIXSPKR */
783 #define WM8903_BYPASSR_TO_MIXSPKR_SHIFT           787 #define WM8903_BYPASSR_TO_MIXSPKR_SHIFT              0  /* BYPASSR_TO_MIXSPKR */
784 #define WM8903_BYPASSR_TO_MIXSPKR_WIDTH           788 #define WM8903_BYPASSR_TO_MIXSPKR_WIDTH              1  /* BYPASSR_TO_MIXSPKR */
785                                                   789 
786 /*                                                790 /*
787  * R55 (0x37) - Analogue Spk Mix Right 1          791  * R55 (0x37) - Analogue Spk Mix Right 1
788  */                                               792  */
789 #define WM8903_DACL_MIXSPKR_VOL                   793 #define WM8903_DACL_MIXSPKR_VOL                 0x0008  /* DACL_MIXSPKR_VOL */
790 #define WM8903_DACL_MIXSPKR_VOL_MASK              794 #define WM8903_DACL_MIXSPKR_VOL_MASK            0x0008  /* DACL_MIXSPKR_VOL */
791 #define WM8903_DACL_MIXSPKR_VOL_SHIFT             795 #define WM8903_DACL_MIXSPKR_VOL_SHIFT                3  /* DACL_MIXSPKR_VOL */
792 #define WM8903_DACL_MIXSPKR_VOL_WIDTH             796 #define WM8903_DACL_MIXSPKR_VOL_WIDTH                1  /* DACL_MIXSPKR_VOL */
793 #define WM8903_DACR_MIXSPKR_VOL                   797 #define WM8903_DACR_MIXSPKR_VOL                 0x0004  /* DACR_MIXSPKR_VOL */
794 #define WM8903_DACR_MIXSPKR_VOL_MASK              798 #define WM8903_DACR_MIXSPKR_VOL_MASK            0x0004  /* DACR_MIXSPKR_VOL */
795 #define WM8903_DACR_MIXSPKR_VOL_SHIFT             799 #define WM8903_DACR_MIXSPKR_VOL_SHIFT                2  /* DACR_MIXSPKR_VOL */
796 #define WM8903_DACR_MIXSPKR_VOL_WIDTH             800 #define WM8903_DACR_MIXSPKR_VOL_WIDTH                1  /* DACR_MIXSPKR_VOL */
797 #define WM8903_BYPASSL_MIXSPKR_VOL                801 #define WM8903_BYPASSL_MIXSPKR_VOL              0x0002  /* BYPASSL_MIXSPKR_VOL */
798 #define WM8903_BYPASSL_MIXSPKR_VOL_MASK           802 #define WM8903_BYPASSL_MIXSPKR_VOL_MASK         0x0002  /* BYPASSL_MIXSPKR_VOL */
799 #define WM8903_BYPASSL_MIXSPKR_VOL_SHIFT          803 #define WM8903_BYPASSL_MIXSPKR_VOL_SHIFT             1  /* BYPASSL_MIXSPKR_VOL */
800 #define WM8903_BYPASSL_MIXSPKR_VOL_WIDTH          804 #define WM8903_BYPASSL_MIXSPKR_VOL_WIDTH             1  /* BYPASSL_MIXSPKR_VOL */
801 #define WM8903_BYPASSR_MIXSPKR_VOL                805 #define WM8903_BYPASSR_MIXSPKR_VOL              0x0001  /* BYPASSR_MIXSPKR_VOL */
802 #define WM8903_BYPASSR_MIXSPKR_VOL_MASK           806 #define WM8903_BYPASSR_MIXSPKR_VOL_MASK         0x0001  /* BYPASSR_MIXSPKR_VOL */
803 #define WM8903_BYPASSR_MIXSPKR_VOL_SHIFT          807 #define WM8903_BYPASSR_MIXSPKR_VOL_SHIFT             0  /* BYPASSR_MIXSPKR_VOL */
804 #define WM8903_BYPASSR_MIXSPKR_VOL_WIDTH          808 #define WM8903_BYPASSR_MIXSPKR_VOL_WIDTH             1  /* BYPASSR_MIXSPKR_VOL */
805                                                   809 
806 /*                                                810 /*
807  * R57 (0x39) - Analogue OUT1 Left                811  * R57 (0x39) - Analogue OUT1 Left
808  */                                               812  */
809 #define WM8903_HPL_MUTE                           813 #define WM8903_HPL_MUTE                         0x0100  /* HPL_MUTE */
810 #define WM8903_HPL_MUTE_MASK                      814 #define WM8903_HPL_MUTE_MASK                    0x0100  /* HPL_MUTE */
811 #define WM8903_HPL_MUTE_SHIFT                     815 #define WM8903_HPL_MUTE_SHIFT                        8  /* HPL_MUTE */
812 #define WM8903_HPL_MUTE_WIDTH                     816 #define WM8903_HPL_MUTE_WIDTH                        1  /* HPL_MUTE */
813 #define WM8903_HPOUTVU                            817 #define WM8903_HPOUTVU                          0x0080  /* HPOUTVU */
814 #define WM8903_HPOUTVU_MASK                       818 #define WM8903_HPOUTVU_MASK                     0x0080  /* HPOUTVU */
815 #define WM8903_HPOUTVU_SHIFT                      819 #define WM8903_HPOUTVU_SHIFT                         7  /* HPOUTVU */
816 #define WM8903_HPOUTVU_WIDTH                      820 #define WM8903_HPOUTVU_WIDTH                         1  /* HPOUTVU */
817 #define WM8903_HPOUTLZC                           821 #define WM8903_HPOUTLZC                         0x0040  /* HPOUTLZC */
818 #define WM8903_HPOUTLZC_MASK                      822 #define WM8903_HPOUTLZC_MASK                    0x0040  /* HPOUTLZC */
819 #define WM8903_HPOUTLZC_SHIFT                     823 #define WM8903_HPOUTLZC_SHIFT                        6  /* HPOUTLZC */
820 #define WM8903_HPOUTLZC_WIDTH                     824 #define WM8903_HPOUTLZC_WIDTH                        1  /* HPOUTLZC */
821 #define WM8903_HPOUTL_VOL_MASK                    825 #define WM8903_HPOUTL_VOL_MASK                  0x003F  /* HPOUTL_VOL - [5:0] */
822 #define WM8903_HPOUTL_VOL_SHIFT                   826 #define WM8903_HPOUTL_VOL_SHIFT                      0  /* HPOUTL_VOL - [5:0] */
823 #define WM8903_HPOUTL_VOL_WIDTH                   827 #define WM8903_HPOUTL_VOL_WIDTH                      6  /* HPOUTL_VOL - [5:0] */
824                                                   828 
825 /*                                                829 /*
826  * R58 (0x3A) - Analogue OUT1 Right               830  * R58 (0x3A) - Analogue OUT1 Right
827  */                                               831  */
828 #define WM8903_HPR_MUTE                           832 #define WM8903_HPR_MUTE                         0x0100  /* HPR_MUTE */
829 #define WM8903_HPR_MUTE_MASK                      833 #define WM8903_HPR_MUTE_MASK                    0x0100  /* HPR_MUTE */
830 #define WM8903_HPR_MUTE_SHIFT                     834 #define WM8903_HPR_MUTE_SHIFT                        8  /* HPR_MUTE */
831 #define WM8903_HPR_MUTE_WIDTH                     835 #define WM8903_HPR_MUTE_WIDTH                        1  /* HPR_MUTE */
832 #define WM8903_HPOUTVU                            836 #define WM8903_HPOUTVU                          0x0080  /* HPOUTVU */
833 #define WM8903_HPOUTVU_MASK                       837 #define WM8903_HPOUTVU_MASK                     0x0080  /* HPOUTVU */
834 #define WM8903_HPOUTVU_SHIFT                      838 #define WM8903_HPOUTVU_SHIFT                         7  /* HPOUTVU */
835 #define WM8903_HPOUTVU_WIDTH                      839 #define WM8903_HPOUTVU_WIDTH                         1  /* HPOUTVU */
836 #define WM8903_HPOUTRZC                           840 #define WM8903_HPOUTRZC                         0x0040  /* HPOUTRZC */
837 #define WM8903_HPOUTRZC_MASK                      841 #define WM8903_HPOUTRZC_MASK                    0x0040  /* HPOUTRZC */
838 #define WM8903_HPOUTRZC_SHIFT                     842 #define WM8903_HPOUTRZC_SHIFT                        6  /* HPOUTRZC */
839 #define WM8903_HPOUTRZC_WIDTH                     843 #define WM8903_HPOUTRZC_WIDTH                        1  /* HPOUTRZC */
840 #define WM8903_HPOUTR_VOL_MASK                    844 #define WM8903_HPOUTR_VOL_MASK                  0x003F  /* HPOUTR_VOL - [5:0] */
841 #define WM8903_HPOUTR_VOL_SHIFT                   845 #define WM8903_HPOUTR_VOL_SHIFT                      0  /* HPOUTR_VOL - [5:0] */
842 #define WM8903_HPOUTR_VOL_WIDTH                   846 #define WM8903_HPOUTR_VOL_WIDTH                      6  /* HPOUTR_VOL - [5:0] */
843                                                   847 
844 /*                                                848 /*
845  * R59 (0x3B) - Analogue OUT2 Left                849  * R59 (0x3B) - Analogue OUT2 Left
846  */                                               850  */
847 #define WM8903_LINEOUTL_MUTE                      851 #define WM8903_LINEOUTL_MUTE                    0x0100  /* LINEOUTL_MUTE */
848 #define WM8903_LINEOUTL_MUTE_MASK                 852 #define WM8903_LINEOUTL_MUTE_MASK               0x0100  /* LINEOUTL_MUTE */
849 #define WM8903_LINEOUTL_MUTE_SHIFT                853 #define WM8903_LINEOUTL_MUTE_SHIFT                   8  /* LINEOUTL_MUTE */
850 #define WM8903_LINEOUTL_MUTE_WIDTH                854 #define WM8903_LINEOUTL_MUTE_WIDTH                   1  /* LINEOUTL_MUTE */
851 #define WM8903_LINEOUTVU                          855 #define WM8903_LINEOUTVU                        0x0080  /* LINEOUTVU */
852 #define WM8903_LINEOUTVU_MASK                     856 #define WM8903_LINEOUTVU_MASK                   0x0080  /* LINEOUTVU */
853 #define WM8903_LINEOUTVU_SHIFT                    857 #define WM8903_LINEOUTVU_SHIFT                       7  /* LINEOUTVU */
854 #define WM8903_LINEOUTVU_WIDTH                    858 #define WM8903_LINEOUTVU_WIDTH                       1  /* LINEOUTVU */
855 #define WM8903_LINEOUTLZC                         859 #define WM8903_LINEOUTLZC                       0x0040  /* LINEOUTLZC */
856 #define WM8903_LINEOUTLZC_MASK                    860 #define WM8903_LINEOUTLZC_MASK                  0x0040  /* LINEOUTLZC */
857 #define WM8903_LINEOUTLZC_SHIFT                   861 #define WM8903_LINEOUTLZC_SHIFT                      6  /* LINEOUTLZC */
858 #define WM8903_LINEOUTLZC_WIDTH                   862 #define WM8903_LINEOUTLZC_WIDTH                      1  /* LINEOUTLZC */
859 #define WM8903_LINEOUTL_VOL_MASK                  863 #define WM8903_LINEOUTL_VOL_MASK                0x003F  /* LINEOUTL_VOL - [5:0] */
860 #define WM8903_LINEOUTL_VOL_SHIFT                 864 #define WM8903_LINEOUTL_VOL_SHIFT                    0  /* LINEOUTL_VOL - [5:0] */
861 #define WM8903_LINEOUTL_VOL_WIDTH                 865 #define WM8903_LINEOUTL_VOL_WIDTH                    6  /* LINEOUTL_VOL - [5:0] */
862                                                   866 
863 /*                                                867 /*
864  * R60 (0x3C) - Analogue OUT2 Right               868  * R60 (0x3C) - Analogue OUT2 Right
865  */                                               869  */
866 #define WM8903_LINEOUTR_MUTE                      870 #define WM8903_LINEOUTR_MUTE                    0x0100  /* LINEOUTR_MUTE */
867 #define WM8903_LINEOUTR_MUTE_MASK                 871 #define WM8903_LINEOUTR_MUTE_MASK               0x0100  /* LINEOUTR_MUTE */
868 #define WM8903_LINEOUTR_MUTE_SHIFT                872 #define WM8903_LINEOUTR_MUTE_SHIFT                   8  /* LINEOUTR_MUTE */
869 #define WM8903_LINEOUTR_MUTE_WIDTH                873 #define WM8903_LINEOUTR_MUTE_WIDTH                   1  /* LINEOUTR_MUTE */
870 #define WM8903_LINEOUTVU                          874 #define WM8903_LINEOUTVU                        0x0080  /* LINEOUTVU */
871 #define WM8903_LINEOUTVU_MASK                     875 #define WM8903_LINEOUTVU_MASK                   0x0080  /* LINEOUTVU */
872 #define WM8903_LINEOUTVU_SHIFT                    876 #define WM8903_LINEOUTVU_SHIFT                       7  /* LINEOUTVU */
873 #define WM8903_LINEOUTVU_WIDTH                    877 #define WM8903_LINEOUTVU_WIDTH                       1  /* LINEOUTVU */
874 #define WM8903_LINEOUTRZC                         878 #define WM8903_LINEOUTRZC                       0x0040  /* LINEOUTRZC */
875 #define WM8903_LINEOUTRZC_MASK                    879 #define WM8903_LINEOUTRZC_MASK                  0x0040  /* LINEOUTRZC */
876 #define WM8903_LINEOUTRZC_SHIFT                   880 #define WM8903_LINEOUTRZC_SHIFT                      6  /* LINEOUTRZC */
877 #define WM8903_LINEOUTRZC_WIDTH                   881 #define WM8903_LINEOUTRZC_WIDTH                      1  /* LINEOUTRZC */
878 #define WM8903_LINEOUTR_VOL_MASK                  882 #define WM8903_LINEOUTR_VOL_MASK                0x003F  /* LINEOUTR_VOL - [5:0] */
879 #define WM8903_LINEOUTR_VOL_SHIFT                 883 #define WM8903_LINEOUTR_VOL_SHIFT                    0  /* LINEOUTR_VOL - [5:0] */
880 #define WM8903_LINEOUTR_VOL_WIDTH                 884 #define WM8903_LINEOUTR_VOL_WIDTH                    6  /* LINEOUTR_VOL - [5:0] */
881                                                   885 
882 /*                                                886 /*
883  * R62 (0x3E) - Analogue OUT3 Left                887  * R62 (0x3E) - Analogue OUT3 Left
884  */                                               888  */
885 #define WM8903_SPKL_MUTE                          889 #define WM8903_SPKL_MUTE                        0x0100  /* SPKL_MUTE */
886 #define WM8903_SPKL_MUTE_MASK                     890 #define WM8903_SPKL_MUTE_MASK                   0x0100  /* SPKL_MUTE */
887 #define WM8903_SPKL_MUTE_SHIFT                    891 #define WM8903_SPKL_MUTE_SHIFT                       8  /* SPKL_MUTE */
888 #define WM8903_SPKL_MUTE_WIDTH                    892 #define WM8903_SPKL_MUTE_WIDTH                       1  /* SPKL_MUTE */
889 #define WM8903_SPKVU                              893 #define WM8903_SPKVU                            0x0080  /* SPKVU */
890 #define WM8903_SPKVU_MASK                         894 #define WM8903_SPKVU_MASK                       0x0080  /* SPKVU */
891 #define WM8903_SPKVU_SHIFT                        895 #define WM8903_SPKVU_SHIFT                           7  /* SPKVU */
892 #define WM8903_SPKVU_WIDTH                        896 #define WM8903_SPKVU_WIDTH                           1  /* SPKVU */
893 #define WM8903_SPKLZC                             897 #define WM8903_SPKLZC                           0x0040  /* SPKLZC */
894 #define WM8903_SPKLZC_MASK                        898 #define WM8903_SPKLZC_MASK                      0x0040  /* SPKLZC */
895 #define WM8903_SPKLZC_SHIFT                       899 #define WM8903_SPKLZC_SHIFT                          6  /* SPKLZC */
896 #define WM8903_SPKLZC_WIDTH                       900 #define WM8903_SPKLZC_WIDTH                          1  /* SPKLZC */
897 #define WM8903_SPKL_VOL_MASK                      901 #define WM8903_SPKL_VOL_MASK                    0x003F  /* SPKL_VOL - [5:0] */
898 #define WM8903_SPKL_VOL_SHIFT                     902 #define WM8903_SPKL_VOL_SHIFT                        0  /* SPKL_VOL - [5:0] */
899 #define WM8903_SPKL_VOL_WIDTH                     903 #define WM8903_SPKL_VOL_WIDTH                        6  /* SPKL_VOL - [5:0] */
900                                                   904 
901 /*                                                905 /*
902  * R63 (0x3F) - Analogue OUT3 Right               906  * R63 (0x3F) - Analogue OUT3 Right
903  */                                               907  */
904 #define WM8903_SPKR_MUTE                          908 #define WM8903_SPKR_MUTE                        0x0100  /* SPKR_MUTE */
905 #define WM8903_SPKR_MUTE_MASK                     909 #define WM8903_SPKR_MUTE_MASK                   0x0100  /* SPKR_MUTE */
906 #define WM8903_SPKR_MUTE_SHIFT                    910 #define WM8903_SPKR_MUTE_SHIFT                       8  /* SPKR_MUTE */
907 #define WM8903_SPKR_MUTE_WIDTH                    911 #define WM8903_SPKR_MUTE_WIDTH                       1  /* SPKR_MUTE */
908 #define WM8903_SPKVU                              912 #define WM8903_SPKVU                            0x0080  /* SPKVU */
909 #define WM8903_SPKVU_MASK                         913 #define WM8903_SPKVU_MASK                       0x0080  /* SPKVU */
910 #define WM8903_SPKVU_SHIFT                        914 #define WM8903_SPKVU_SHIFT                           7  /* SPKVU */
911 #define WM8903_SPKVU_WIDTH                        915 #define WM8903_SPKVU_WIDTH                           1  /* SPKVU */
912 #define WM8903_SPKRZC                             916 #define WM8903_SPKRZC                           0x0040  /* SPKRZC */
913 #define WM8903_SPKRZC_MASK                        917 #define WM8903_SPKRZC_MASK                      0x0040  /* SPKRZC */
914 #define WM8903_SPKRZC_SHIFT                       918 #define WM8903_SPKRZC_SHIFT                          6  /* SPKRZC */
915 #define WM8903_SPKRZC_WIDTH                       919 #define WM8903_SPKRZC_WIDTH                          1  /* SPKRZC */
916 #define WM8903_SPKR_VOL_MASK                      920 #define WM8903_SPKR_VOL_MASK                    0x003F  /* SPKR_VOL - [5:0] */
917 #define WM8903_SPKR_VOL_SHIFT                     921 #define WM8903_SPKR_VOL_SHIFT                        0  /* SPKR_VOL - [5:0] */
918 #define WM8903_SPKR_VOL_WIDTH                     922 #define WM8903_SPKR_VOL_WIDTH                        6  /* SPKR_VOL - [5:0] */
919                                                   923 
920 /*                                                924 /*
921  * R65 (0x41) - Analogue SPK Output Control 0     925  * R65 (0x41) - Analogue SPK Output Control 0
922  */                                               926  */
923 #define WM8903_SPK_DISCHARGE                      927 #define WM8903_SPK_DISCHARGE                    0x0002  /* SPK_DISCHARGE */
924 #define WM8903_SPK_DISCHARGE_MASK                 928 #define WM8903_SPK_DISCHARGE_MASK               0x0002  /* SPK_DISCHARGE */
925 #define WM8903_SPK_DISCHARGE_SHIFT                929 #define WM8903_SPK_DISCHARGE_SHIFT                   1  /* SPK_DISCHARGE */
926 #define WM8903_SPK_DISCHARGE_WIDTH                930 #define WM8903_SPK_DISCHARGE_WIDTH                   1  /* SPK_DISCHARGE */
927 #define WM8903_VROI                               931 #define WM8903_VROI                             0x0001  /* VROI */
928 #define WM8903_VROI_MASK                          932 #define WM8903_VROI_MASK                        0x0001  /* VROI */
929 #define WM8903_VROI_SHIFT                         933 #define WM8903_VROI_SHIFT                            0  /* VROI */
930 #define WM8903_VROI_WIDTH                         934 #define WM8903_VROI_WIDTH                            1  /* VROI */
931                                                   935 
932 /*                                                936 /*
933  * R67 (0x43) - DC Servo 0                        937  * R67 (0x43) - DC Servo 0
934  */                                               938  */
935 #define WM8903_DCS_MASTER_ENA                     939 #define WM8903_DCS_MASTER_ENA                   0x0010  /* DCS_MASTER_ENA */
936 #define WM8903_DCS_MASTER_ENA_MASK                940 #define WM8903_DCS_MASTER_ENA_MASK              0x0010  /* DCS_MASTER_ENA */
937 #define WM8903_DCS_MASTER_ENA_SHIFT               941 #define WM8903_DCS_MASTER_ENA_SHIFT                  4  /* DCS_MASTER_ENA */
938 #define WM8903_DCS_MASTER_ENA_WIDTH               942 #define WM8903_DCS_MASTER_ENA_WIDTH                  1  /* DCS_MASTER_ENA */
939 #define WM8903_DCS_ENA_MASK                       943 #define WM8903_DCS_ENA_MASK                     0x000F  /* DCS_ENA - [3:0] */
940 #define WM8903_DCS_ENA_SHIFT                      944 #define WM8903_DCS_ENA_SHIFT                         0  /* DCS_ENA - [3:0] */
941 #define WM8903_DCS_ENA_WIDTH                      945 #define WM8903_DCS_ENA_WIDTH                         4  /* DCS_ENA - [3:0] */
942                                                   946 
943 /*                                                947 /*
944  * R69 (0x45) - DC Servo 2                        948  * R69 (0x45) - DC Servo 2
945  */                                               949  */
946 #define WM8903_DCS_MODE_MASK                      950 #define WM8903_DCS_MODE_MASK                    0x0003  /* DCS_MODE - [1:0] */
947 #define WM8903_DCS_MODE_SHIFT                     951 #define WM8903_DCS_MODE_SHIFT                        0  /* DCS_MODE - [1:0] */
948 #define WM8903_DCS_MODE_WIDTH                     952 #define WM8903_DCS_MODE_WIDTH                        2  /* DCS_MODE - [1:0] */
949                                                   953 
950 /*                                                954 /*
951  * R90 (0x5A) - Analogue HP 0                     955  * R90 (0x5A) - Analogue HP 0
952  */                                               956  */
953 #define WM8903_HPL_RMV_SHORT                      957 #define WM8903_HPL_RMV_SHORT                    0x0080  /* HPL_RMV_SHORT */
954 #define WM8903_HPL_RMV_SHORT_MASK                 958 #define WM8903_HPL_RMV_SHORT_MASK               0x0080  /* HPL_RMV_SHORT */
955 #define WM8903_HPL_RMV_SHORT_SHIFT                959 #define WM8903_HPL_RMV_SHORT_SHIFT                   7  /* HPL_RMV_SHORT */
956 #define WM8903_HPL_RMV_SHORT_WIDTH                960 #define WM8903_HPL_RMV_SHORT_WIDTH                   1  /* HPL_RMV_SHORT */
957 #define WM8903_HPL_ENA_OUTP                       961 #define WM8903_HPL_ENA_OUTP                     0x0040  /* HPL_ENA_OUTP */
958 #define WM8903_HPL_ENA_OUTP_MASK                  962 #define WM8903_HPL_ENA_OUTP_MASK                0x0040  /* HPL_ENA_OUTP */
959 #define WM8903_HPL_ENA_OUTP_SHIFT                 963 #define WM8903_HPL_ENA_OUTP_SHIFT                    6  /* HPL_ENA_OUTP */
960 #define WM8903_HPL_ENA_OUTP_WIDTH                 964 #define WM8903_HPL_ENA_OUTP_WIDTH                    1  /* HPL_ENA_OUTP */
961 #define WM8903_HPL_ENA_DLY                        965 #define WM8903_HPL_ENA_DLY                      0x0020  /* HPL_ENA_DLY */
962 #define WM8903_HPL_ENA_DLY_MASK                   966 #define WM8903_HPL_ENA_DLY_MASK                 0x0020  /* HPL_ENA_DLY */
963 #define WM8903_HPL_ENA_DLY_SHIFT                  967 #define WM8903_HPL_ENA_DLY_SHIFT                     5  /* HPL_ENA_DLY */
964 #define WM8903_HPL_ENA_DLY_WIDTH                  968 #define WM8903_HPL_ENA_DLY_WIDTH                     1  /* HPL_ENA_DLY */
965 #define WM8903_HPL_ENA                            969 #define WM8903_HPL_ENA                          0x0010  /* HPL_ENA */
966 #define WM8903_HPL_ENA_MASK                       970 #define WM8903_HPL_ENA_MASK                     0x0010  /* HPL_ENA */
967 #define WM8903_HPL_ENA_SHIFT                      971 #define WM8903_HPL_ENA_SHIFT                         4  /* HPL_ENA */
968 #define WM8903_HPL_ENA_WIDTH                      972 #define WM8903_HPL_ENA_WIDTH                         1  /* HPL_ENA */
969 #define WM8903_HPR_RMV_SHORT                      973 #define WM8903_HPR_RMV_SHORT                    0x0008  /* HPR_RMV_SHORT */
970 #define WM8903_HPR_RMV_SHORT_MASK                 974 #define WM8903_HPR_RMV_SHORT_MASK               0x0008  /* HPR_RMV_SHORT */
971 #define WM8903_HPR_RMV_SHORT_SHIFT                975 #define WM8903_HPR_RMV_SHORT_SHIFT                   3  /* HPR_RMV_SHORT */
972 #define WM8903_HPR_RMV_SHORT_WIDTH                976 #define WM8903_HPR_RMV_SHORT_WIDTH                   1  /* HPR_RMV_SHORT */
973 #define WM8903_HPR_ENA_OUTP                       977 #define WM8903_HPR_ENA_OUTP                     0x0004  /* HPR_ENA_OUTP */
974 #define WM8903_HPR_ENA_OUTP_MASK                  978 #define WM8903_HPR_ENA_OUTP_MASK                0x0004  /* HPR_ENA_OUTP */
975 #define WM8903_HPR_ENA_OUTP_SHIFT                 979 #define WM8903_HPR_ENA_OUTP_SHIFT                    2  /* HPR_ENA_OUTP */
976 #define WM8903_HPR_ENA_OUTP_WIDTH                 980 #define WM8903_HPR_ENA_OUTP_WIDTH                    1  /* HPR_ENA_OUTP */
977 #define WM8903_HPR_ENA_DLY                        981 #define WM8903_HPR_ENA_DLY                      0x0002  /* HPR_ENA_DLY */
978 #define WM8903_HPR_ENA_DLY_MASK                   982 #define WM8903_HPR_ENA_DLY_MASK                 0x0002  /* HPR_ENA_DLY */
979 #define WM8903_HPR_ENA_DLY_SHIFT                  983 #define WM8903_HPR_ENA_DLY_SHIFT                     1  /* HPR_ENA_DLY */
980 #define WM8903_HPR_ENA_DLY_WIDTH                  984 #define WM8903_HPR_ENA_DLY_WIDTH                     1  /* HPR_ENA_DLY */
981 #define WM8903_HPR_ENA                            985 #define WM8903_HPR_ENA                          0x0001  /* HPR_ENA */
982 #define WM8903_HPR_ENA_MASK                       986 #define WM8903_HPR_ENA_MASK                     0x0001  /* HPR_ENA */
983 #define WM8903_HPR_ENA_SHIFT                      987 #define WM8903_HPR_ENA_SHIFT                         0  /* HPR_ENA */
984 #define WM8903_HPR_ENA_WIDTH                      988 #define WM8903_HPR_ENA_WIDTH                         1  /* HPR_ENA */
985                                                   989 
986 /*                                                990 /*
987  * R94 (0x5E) - Analogue Lineout 0                991  * R94 (0x5E) - Analogue Lineout 0
988  */                                               992  */
989 #define WM8903_LINEOUTL_RMV_SHORT                 993 #define WM8903_LINEOUTL_RMV_SHORT               0x0080  /* LINEOUTL_RMV_SHORT */
990 #define WM8903_LINEOUTL_RMV_SHORT_MASK            994 #define WM8903_LINEOUTL_RMV_SHORT_MASK          0x0080  /* LINEOUTL_RMV_SHORT */
991 #define WM8903_LINEOUTL_RMV_SHORT_SHIFT           995 #define WM8903_LINEOUTL_RMV_SHORT_SHIFT              7  /* LINEOUTL_RMV_SHORT */
992 #define WM8903_LINEOUTL_RMV_SHORT_WIDTH           996 #define WM8903_LINEOUTL_RMV_SHORT_WIDTH              1  /* LINEOUTL_RMV_SHORT */
993 #define WM8903_LINEOUTL_ENA_OUTP                  997 #define WM8903_LINEOUTL_ENA_OUTP                0x0040  /* LINEOUTL_ENA_OUTP */
994 #define WM8903_LINEOUTL_ENA_OUTP_MASK             998 #define WM8903_LINEOUTL_ENA_OUTP_MASK           0x0040  /* LINEOUTL_ENA_OUTP */
995 #define WM8903_LINEOUTL_ENA_OUTP_SHIFT            999 #define WM8903_LINEOUTL_ENA_OUTP_SHIFT               6  /* LINEOUTL_ENA_OUTP */
996 #define WM8903_LINEOUTL_ENA_OUTP_WIDTH            1000 #define WM8903_LINEOUTL_ENA_OUTP_WIDTH               1  /* LINEOUTL_ENA_OUTP */
997 #define WM8903_LINEOUTL_ENA_DLY                   1001 #define WM8903_LINEOUTL_ENA_DLY                 0x0020  /* LINEOUTL_ENA_DLY */
998 #define WM8903_LINEOUTL_ENA_DLY_MASK              1002 #define WM8903_LINEOUTL_ENA_DLY_MASK            0x0020  /* LINEOUTL_ENA_DLY */
999 #define WM8903_LINEOUTL_ENA_DLY_SHIFT             1003 #define WM8903_LINEOUTL_ENA_DLY_SHIFT                5  /* LINEOUTL_ENA_DLY */
1000 #define WM8903_LINEOUTL_ENA_DLY_WIDTH            1004 #define WM8903_LINEOUTL_ENA_DLY_WIDTH                1  /* LINEOUTL_ENA_DLY */
1001 #define WM8903_LINEOUTL_ENA                      1005 #define WM8903_LINEOUTL_ENA                     0x0010  /* LINEOUTL_ENA */
1002 #define WM8903_LINEOUTL_ENA_MASK                 1006 #define WM8903_LINEOUTL_ENA_MASK                0x0010  /* LINEOUTL_ENA */
1003 #define WM8903_LINEOUTL_ENA_SHIFT                1007 #define WM8903_LINEOUTL_ENA_SHIFT                    4  /* LINEOUTL_ENA */
1004 #define WM8903_LINEOUTL_ENA_WIDTH                1008 #define WM8903_LINEOUTL_ENA_WIDTH                    1  /* LINEOUTL_ENA */
1005 #define WM8903_LINEOUTR_RMV_SHORT                1009 #define WM8903_LINEOUTR_RMV_SHORT               0x0008  /* LINEOUTR_RMV_SHORT */
1006 #define WM8903_LINEOUTR_RMV_SHORT_MASK           1010 #define WM8903_LINEOUTR_RMV_SHORT_MASK          0x0008  /* LINEOUTR_RMV_SHORT */
1007 #define WM8903_LINEOUTR_RMV_SHORT_SHIFT          1011 #define WM8903_LINEOUTR_RMV_SHORT_SHIFT              3  /* LINEOUTR_RMV_SHORT */
1008 #define WM8903_LINEOUTR_RMV_SHORT_WIDTH          1012 #define WM8903_LINEOUTR_RMV_SHORT_WIDTH              1  /* LINEOUTR_RMV_SHORT */
1009 #define WM8903_LINEOUTR_ENA_OUTP                 1013 #define WM8903_LINEOUTR_ENA_OUTP                0x0004  /* LINEOUTR_ENA_OUTP */
1010 #define WM8903_LINEOUTR_ENA_OUTP_MASK            1014 #define WM8903_LINEOUTR_ENA_OUTP_MASK           0x0004  /* LINEOUTR_ENA_OUTP */
1011 #define WM8903_LINEOUTR_ENA_OUTP_SHIFT           1015 #define WM8903_LINEOUTR_ENA_OUTP_SHIFT               2  /* LINEOUTR_ENA_OUTP */
1012 #define WM8903_LINEOUTR_ENA_OUTP_WIDTH           1016 #define WM8903_LINEOUTR_ENA_OUTP_WIDTH               1  /* LINEOUTR_ENA_OUTP */
1013 #define WM8903_LINEOUTR_ENA_DLY                  1017 #define WM8903_LINEOUTR_ENA_DLY                 0x0002  /* LINEOUTR_ENA_DLY */
1014 #define WM8903_LINEOUTR_ENA_DLY_MASK             1018 #define WM8903_LINEOUTR_ENA_DLY_MASK            0x0002  /* LINEOUTR_ENA_DLY */
1015 #define WM8903_LINEOUTR_ENA_DLY_SHIFT            1019 #define WM8903_LINEOUTR_ENA_DLY_SHIFT                1  /* LINEOUTR_ENA_DLY */
1016 #define WM8903_LINEOUTR_ENA_DLY_WIDTH            1020 #define WM8903_LINEOUTR_ENA_DLY_WIDTH                1  /* LINEOUTR_ENA_DLY */
1017 #define WM8903_LINEOUTR_ENA                      1021 #define WM8903_LINEOUTR_ENA                     0x0001  /* LINEOUTR_ENA */
1018 #define WM8903_LINEOUTR_ENA_MASK                 1022 #define WM8903_LINEOUTR_ENA_MASK                0x0001  /* LINEOUTR_ENA */
1019 #define WM8903_LINEOUTR_ENA_SHIFT                1023 #define WM8903_LINEOUTR_ENA_SHIFT                    0  /* LINEOUTR_ENA */
1020 #define WM8903_LINEOUTR_ENA_WIDTH                1024 #define WM8903_LINEOUTR_ENA_WIDTH                    1  /* LINEOUTR_ENA */
1021                                                  1025 
1022 /*                                               1026 /*
1023  * R98 (0x62) - Charge Pump 0                    1027  * R98 (0x62) - Charge Pump 0
1024  */                                              1028  */
1025 #define WM8903_CP_ENA                            1029 #define WM8903_CP_ENA                           0x0001  /* CP_ENA */
1026 #define WM8903_CP_ENA_MASK                       1030 #define WM8903_CP_ENA_MASK                      0x0001  /* CP_ENA */
1027 #define WM8903_CP_ENA_SHIFT                      1031 #define WM8903_CP_ENA_SHIFT                          0  /* CP_ENA */
1028 #define WM8903_CP_ENA_WIDTH                      1032 #define WM8903_CP_ENA_WIDTH                          1  /* CP_ENA */
1029                                                  1033 
1030 /*                                               1034 /*
1031  * R104 (0x68) - Class W 0                       1035  * R104 (0x68) - Class W 0
1032  */                                              1036  */
1033 #define WM8903_CP_DYN_FREQ                       1037 #define WM8903_CP_DYN_FREQ                      0x0002  /* CP_DYN_FREQ */
1034 #define WM8903_CP_DYN_FREQ_MASK                  1038 #define WM8903_CP_DYN_FREQ_MASK                 0x0002  /* CP_DYN_FREQ */
1035 #define WM8903_CP_DYN_FREQ_SHIFT                 1039 #define WM8903_CP_DYN_FREQ_SHIFT                     1  /* CP_DYN_FREQ */
1036 #define WM8903_CP_DYN_FREQ_WIDTH                 1040 #define WM8903_CP_DYN_FREQ_WIDTH                     1  /* CP_DYN_FREQ */
1037 #define WM8903_CP_DYN_V                          1041 #define WM8903_CP_DYN_V                         0x0001  /* CP_DYN_V */
1038 #define WM8903_CP_DYN_V_MASK                     1042 #define WM8903_CP_DYN_V_MASK                    0x0001  /* CP_DYN_V */
1039 #define WM8903_CP_DYN_V_SHIFT                    1043 #define WM8903_CP_DYN_V_SHIFT                        0  /* CP_DYN_V */
1040 #define WM8903_CP_DYN_V_WIDTH                    1044 #define WM8903_CP_DYN_V_WIDTH                        1  /* CP_DYN_V */
1041                                                  1045 
1042 /*                                               1046 /*
1043  * R108 (0x6C) - Write Sequencer 0               1047  * R108 (0x6C) - Write Sequencer 0
1044  */                                              1048  */
1045 #define WM8903_WSEQ_ENA                          1049 #define WM8903_WSEQ_ENA                         0x0100  /* WSEQ_ENA */
1046 #define WM8903_WSEQ_ENA_MASK                     1050 #define WM8903_WSEQ_ENA_MASK                    0x0100  /* WSEQ_ENA */
1047 #define WM8903_WSEQ_ENA_SHIFT                    1051 #define WM8903_WSEQ_ENA_SHIFT                        8  /* WSEQ_ENA */
1048 #define WM8903_WSEQ_ENA_WIDTH                    1052 #define WM8903_WSEQ_ENA_WIDTH                        1  /* WSEQ_ENA */
1049 #define WM8903_WSEQ_WRITE_INDEX_MASK             1053 #define WM8903_WSEQ_WRITE_INDEX_MASK            0x001F  /* WSEQ_WRITE_INDEX - [4:0] */
1050 #define WM8903_WSEQ_WRITE_INDEX_SHIFT            1054 #define WM8903_WSEQ_WRITE_INDEX_SHIFT                0  /* WSEQ_WRITE_INDEX - [4:0] */
1051 #define WM8903_WSEQ_WRITE_INDEX_WIDTH            1055 #define WM8903_WSEQ_WRITE_INDEX_WIDTH                5  /* WSEQ_WRITE_INDEX - [4:0] */
1052                                                  1056 
1053 /*                                               1057 /*
1054  * R109 (0x6D) - Write Sequencer 1               1058  * R109 (0x6D) - Write Sequencer 1
1055  */                                              1059  */
1056 #define WM8903_WSEQ_DATA_WIDTH_MASK              1060 #define WM8903_WSEQ_DATA_WIDTH_MASK             0x7000  /* WSEQ_DATA_WIDTH - [14:12] */
1057 #define WM8903_WSEQ_DATA_WIDTH_SHIFT             1061 #define WM8903_WSEQ_DATA_WIDTH_SHIFT                12  /* WSEQ_DATA_WIDTH - [14:12] */
1058 #define WM8903_WSEQ_DATA_WIDTH_WIDTH             1062 #define WM8903_WSEQ_DATA_WIDTH_WIDTH                 3  /* WSEQ_DATA_WIDTH - [14:12] */
1059 #define WM8903_WSEQ_DATA_START_MASK              1063 #define WM8903_WSEQ_DATA_START_MASK             0x0F00  /* WSEQ_DATA_START - [11:8] */
1060 #define WM8903_WSEQ_DATA_START_SHIFT             1064 #define WM8903_WSEQ_DATA_START_SHIFT                 8  /* WSEQ_DATA_START - [11:8] */
1061 #define WM8903_WSEQ_DATA_START_WIDTH             1065 #define WM8903_WSEQ_DATA_START_WIDTH                 4  /* WSEQ_DATA_START - [11:8] */
1062 #define WM8903_WSEQ_ADDR_MASK                    1066 #define WM8903_WSEQ_ADDR_MASK                   0x00FF  /* WSEQ_ADDR - [7:0] */
1063 #define WM8903_WSEQ_ADDR_SHIFT                   1067 #define WM8903_WSEQ_ADDR_SHIFT                       0  /* WSEQ_ADDR - [7:0] */
1064 #define WM8903_WSEQ_ADDR_WIDTH                   1068 #define WM8903_WSEQ_ADDR_WIDTH                       8  /* WSEQ_ADDR - [7:0] */
1065                                                  1069 
1066 /*                                               1070 /*
1067  * R110 (0x6E) - Write Sequencer 2               1071  * R110 (0x6E) - Write Sequencer 2
1068  */                                              1072  */
1069 #define WM8903_WSEQ_EOS                          1073 #define WM8903_WSEQ_EOS                         0x4000  /* WSEQ_EOS */
1070 #define WM8903_WSEQ_EOS_MASK                     1074 #define WM8903_WSEQ_EOS_MASK                    0x4000  /* WSEQ_EOS */
1071 #define WM8903_WSEQ_EOS_SHIFT                    1075 #define WM8903_WSEQ_EOS_SHIFT                       14  /* WSEQ_EOS */
1072 #define WM8903_WSEQ_EOS_WIDTH                    1076 #define WM8903_WSEQ_EOS_WIDTH                        1  /* WSEQ_EOS */
1073 #define WM8903_WSEQ_DELAY_MASK                   1077 #define WM8903_WSEQ_DELAY_MASK                  0x0F00  /* WSEQ_DELAY - [11:8] */
1074 #define WM8903_WSEQ_DELAY_SHIFT                  1078 #define WM8903_WSEQ_DELAY_SHIFT                      8  /* WSEQ_DELAY - [11:8] */
1075 #define WM8903_WSEQ_DELAY_WIDTH                  1079 #define WM8903_WSEQ_DELAY_WIDTH                      4  /* WSEQ_DELAY - [11:8] */
1076 #define WM8903_WSEQ_DATA_MASK                    1080 #define WM8903_WSEQ_DATA_MASK                   0x00FF  /* WSEQ_DATA - [7:0] */
1077 #define WM8903_WSEQ_DATA_SHIFT                   1081 #define WM8903_WSEQ_DATA_SHIFT                       0  /* WSEQ_DATA - [7:0] */
1078 #define WM8903_WSEQ_DATA_WIDTH                   1082 #define WM8903_WSEQ_DATA_WIDTH                       8  /* WSEQ_DATA - [7:0] */
1079                                                  1083 
1080 /*                                               1084 /*
1081  * R111 (0x6F) - Write Sequencer 3               1085  * R111 (0x6F) - Write Sequencer 3
1082  */                                              1086  */
1083 #define WM8903_WSEQ_ABORT                        1087 #define WM8903_WSEQ_ABORT                       0x0200  /* WSEQ_ABORT */
1084 #define WM8903_WSEQ_ABORT_MASK                   1088 #define WM8903_WSEQ_ABORT_MASK                  0x0200  /* WSEQ_ABORT */
1085 #define WM8903_WSEQ_ABORT_SHIFT                  1089 #define WM8903_WSEQ_ABORT_SHIFT                      9  /* WSEQ_ABORT */
1086 #define WM8903_WSEQ_ABORT_WIDTH                  1090 #define WM8903_WSEQ_ABORT_WIDTH                      1  /* WSEQ_ABORT */
1087 #define WM8903_WSEQ_START                        1091 #define WM8903_WSEQ_START                       0x0100  /* WSEQ_START */
1088 #define WM8903_WSEQ_START_MASK                   1092 #define WM8903_WSEQ_START_MASK                  0x0100  /* WSEQ_START */
1089 #define WM8903_WSEQ_START_SHIFT                  1093 #define WM8903_WSEQ_START_SHIFT                      8  /* WSEQ_START */
1090 #define WM8903_WSEQ_START_WIDTH                  1094 #define WM8903_WSEQ_START_WIDTH                      1  /* WSEQ_START */
1091 #define WM8903_WSEQ_START_INDEX_MASK             1095 #define WM8903_WSEQ_START_INDEX_MASK            0x003F  /* WSEQ_START_INDEX - [5:0] */
1092 #define WM8903_WSEQ_START_INDEX_SHIFT            1096 #define WM8903_WSEQ_START_INDEX_SHIFT                0  /* WSEQ_START_INDEX - [5:0] */
1093 #define WM8903_WSEQ_START_INDEX_WIDTH            1097 #define WM8903_WSEQ_START_INDEX_WIDTH                6  /* WSEQ_START_INDEX - [5:0] */
1094                                                  1098 
1095 /*                                               1099 /*
1096  * R112 (0x70) - Write Sequencer 4               1100  * R112 (0x70) - Write Sequencer 4
1097  */                                              1101  */
1098 #define WM8903_WSEQ_CURRENT_INDEX_MASK           1102 #define WM8903_WSEQ_CURRENT_INDEX_MASK          0x03F0  /* WSEQ_CURRENT_INDEX - [9:4] */
1099 #define WM8903_WSEQ_CURRENT_INDEX_SHIFT          1103 #define WM8903_WSEQ_CURRENT_INDEX_SHIFT              4  /* WSEQ_CURRENT_INDEX - [9:4] */
1100 #define WM8903_WSEQ_CURRENT_INDEX_WIDTH          1104 #define WM8903_WSEQ_CURRENT_INDEX_WIDTH              6  /* WSEQ_CURRENT_INDEX - [9:4] */
1101 #define WM8903_WSEQ_BUSY                         1105 #define WM8903_WSEQ_BUSY                        0x0001  /* WSEQ_BUSY */
1102 #define WM8903_WSEQ_BUSY_MASK                    1106 #define WM8903_WSEQ_BUSY_MASK                   0x0001  /* WSEQ_BUSY */
1103 #define WM8903_WSEQ_BUSY_SHIFT                   1107 #define WM8903_WSEQ_BUSY_SHIFT                       0  /* WSEQ_BUSY */
1104 #define WM8903_WSEQ_BUSY_WIDTH                   1108 #define WM8903_WSEQ_BUSY_WIDTH                       1  /* WSEQ_BUSY */
1105                                                  1109 
1106 /*                                               1110 /*
1107  * R114 (0x72) - Control Interface               1111  * R114 (0x72) - Control Interface
1108  */                                              1112  */
1109 #define WM8903_MASK_WRITE_ENA                    1113 #define WM8903_MASK_WRITE_ENA                   0x0001  /* MASK_WRITE_ENA */
1110 #define WM8903_MASK_WRITE_ENA_MASK               1114 #define WM8903_MASK_WRITE_ENA_MASK              0x0001  /* MASK_WRITE_ENA */
1111 #define WM8903_MASK_WRITE_ENA_SHIFT              1115 #define WM8903_MASK_WRITE_ENA_SHIFT                  0  /* MASK_WRITE_ENA */
1112 #define WM8903_MASK_WRITE_ENA_WIDTH              1116 #define WM8903_MASK_WRITE_ENA_WIDTH                  1  /* MASK_WRITE_ENA */
1113                                                  1117 
1114 /*                                               1118 /*
1115  * R121 (0x79) - Interrupt Status 1              1119  * R121 (0x79) - Interrupt Status 1
1116  */                                              1120  */
1117 #define WM8903_MICSHRT_EINT                      1121 #define WM8903_MICSHRT_EINT                     0x8000  /* MICSHRT_EINT */
1118 #define WM8903_MICSHRT_EINT_MASK                 1122 #define WM8903_MICSHRT_EINT_MASK                0x8000  /* MICSHRT_EINT */
1119 #define WM8903_MICSHRT_EINT_SHIFT                1123 #define WM8903_MICSHRT_EINT_SHIFT                   15  /* MICSHRT_EINT */
1120 #define WM8903_MICSHRT_EINT_WIDTH                1124 #define WM8903_MICSHRT_EINT_WIDTH                    1  /* MICSHRT_EINT */
1121 #define WM8903_MICDET_EINT                       1125 #define WM8903_MICDET_EINT                      0x4000  /* MICDET_EINT */
1122 #define WM8903_MICDET_EINT_MASK                  1126 #define WM8903_MICDET_EINT_MASK                 0x4000  /* MICDET_EINT */
1123 #define WM8903_MICDET_EINT_SHIFT                 1127 #define WM8903_MICDET_EINT_SHIFT                    14  /* MICDET_EINT */
1124 #define WM8903_MICDET_EINT_WIDTH                 1128 #define WM8903_MICDET_EINT_WIDTH                     1  /* MICDET_EINT */
1125 #define WM8903_WSEQ_BUSY_EINT                    1129 #define WM8903_WSEQ_BUSY_EINT                   0x2000  /* WSEQ_BUSY_EINT */
1126 #define WM8903_WSEQ_BUSY_EINT_MASK               1130 #define WM8903_WSEQ_BUSY_EINT_MASK              0x2000  /* WSEQ_BUSY_EINT */
1127 #define WM8903_WSEQ_BUSY_EINT_SHIFT              1131 #define WM8903_WSEQ_BUSY_EINT_SHIFT                 13  /* WSEQ_BUSY_EINT */
1128 #define WM8903_WSEQ_BUSY_EINT_WIDTH              1132 #define WM8903_WSEQ_BUSY_EINT_WIDTH                  1  /* WSEQ_BUSY_EINT */
1129 #define WM8903_GP5_EINT                          1133 #define WM8903_GP5_EINT                         0x0010  /* GP5_EINT */
1130 #define WM8903_GP5_EINT_MASK                     1134 #define WM8903_GP5_EINT_MASK                    0x0010  /* GP5_EINT */
1131 #define WM8903_GP5_EINT_SHIFT                    1135 #define WM8903_GP5_EINT_SHIFT                        4  /* GP5_EINT */
1132 #define WM8903_GP5_EINT_WIDTH                    1136 #define WM8903_GP5_EINT_WIDTH                        1  /* GP5_EINT */
1133 #define WM8903_GP4_EINT                          1137 #define WM8903_GP4_EINT                         0x0008  /* GP4_EINT */
1134 #define WM8903_GP4_EINT_MASK                     1138 #define WM8903_GP4_EINT_MASK                    0x0008  /* GP4_EINT */
1135 #define WM8903_GP4_EINT_SHIFT                    1139 #define WM8903_GP4_EINT_SHIFT                        3  /* GP4_EINT */
1136 #define WM8903_GP4_EINT_WIDTH                    1140 #define WM8903_GP4_EINT_WIDTH                        1  /* GP4_EINT */
1137 #define WM8903_GP3_EINT                          1141 #define WM8903_GP3_EINT                         0x0004  /* GP3_EINT */
1138 #define WM8903_GP3_EINT_MASK                     1142 #define WM8903_GP3_EINT_MASK                    0x0004  /* GP3_EINT */
1139 #define WM8903_GP3_EINT_SHIFT                    1143 #define WM8903_GP3_EINT_SHIFT                        2  /* GP3_EINT */
1140 #define WM8903_GP3_EINT_WIDTH                    1144 #define WM8903_GP3_EINT_WIDTH                        1  /* GP3_EINT */
1141 #define WM8903_GP2_EINT                          1145 #define WM8903_GP2_EINT                         0x0002  /* GP2_EINT */
1142 #define WM8903_GP2_EINT_MASK                     1146 #define WM8903_GP2_EINT_MASK                    0x0002  /* GP2_EINT */
1143 #define WM8903_GP2_EINT_SHIFT                    1147 #define WM8903_GP2_EINT_SHIFT                        1  /* GP2_EINT */
1144 #define WM8903_GP2_EINT_WIDTH                    1148 #define WM8903_GP2_EINT_WIDTH                        1  /* GP2_EINT */
1145 #define WM8903_GP1_EINT                          1149 #define WM8903_GP1_EINT                         0x0001  /* GP1_EINT */
1146 #define WM8903_GP1_EINT_MASK                     1150 #define WM8903_GP1_EINT_MASK                    0x0001  /* GP1_EINT */
1147 #define WM8903_GP1_EINT_SHIFT                    1151 #define WM8903_GP1_EINT_SHIFT                        0  /* GP1_EINT */
1148 #define WM8903_GP1_EINT_WIDTH                    1152 #define WM8903_GP1_EINT_WIDTH                        1  /* GP1_EINT */
1149                                                  1153 
1150 /*                                               1154 /*
1151  * R122 (0x7A) - Interrupt Status 1 Mask         1155  * R122 (0x7A) - Interrupt Status 1 Mask
1152  */                                              1156  */
1153 #define WM8903_IM_MICSHRT_EINT                   1157 #define WM8903_IM_MICSHRT_EINT                  0x8000  /* IM_MICSHRT_EINT */
1154 #define WM8903_IM_MICSHRT_EINT_MASK              1158 #define WM8903_IM_MICSHRT_EINT_MASK             0x8000  /* IM_MICSHRT_EINT */
1155 #define WM8903_IM_MICSHRT_EINT_SHIFT             1159 #define WM8903_IM_MICSHRT_EINT_SHIFT                15  /* IM_MICSHRT_EINT */
1156 #define WM8903_IM_MICSHRT_EINT_WIDTH             1160 #define WM8903_IM_MICSHRT_EINT_WIDTH                 1  /* IM_MICSHRT_EINT */
1157 #define WM8903_IM_MICDET_EINT                    1161 #define WM8903_IM_MICDET_EINT                   0x4000  /* IM_MICDET_EINT */
1158 #define WM8903_IM_MICDET_EINT_MASK               1162 #define WM8903_IM_MICDET_EINT_MASK              0x4000  /* IM_MICDET_EINT */
1159 #define WM8903_IM_MICDET_EINT_SHIFT              1163 #define WM8903_IM_MICDET_EINT_SHIFT                 14  /* IM_MICDET_EINT */
1160 #define WM8903_IM_MICDET_EINT_WIDTH              1164 #define WM8903_IM_MICDET_EINT_WIDTH                  1  /* IM_MICDET_EINT */
1161 #define WM8903_IM_WSEQ_BUSY_EINT                 1165 #define WM8903_IM_WSEQ_BUSY_EINT                0x2000  /* IM_WSEQ_BUSY_EINT */
1162 #define WM8903_IM_WSEQ_BUSY_EINT_MASK            1166 #define WM8903_IM_WSEQ_BUSY_EINT_MASK           0x2000  /* IM_WSEQ_BUSY_EINT */
1163 #define WM8903_IM_WSEQ_BUSY_EINT_SHIFT           1167 #define WM8903_IM_WSEQ_BUSY_EINT_SHIFT              13  /* IM_WSEQ_BUSY_EINT */
1164 #define WM8903_IM_WSEQ_BUSY_EINT_WIDTH           1168 #define WM8903_IM_WSEQ_BUSY_EINT_WIDTH               1  /* IM_WSEQ_BUSY_EINT */
1165 #define WM8903_IM_GP5_EINT                       1169 #define WM8903_IM_GP5_EINT                      0x0010  /* IM_GP5_EINT */
1166 #define WM8903_IM_GP5_EINT_MASK                  1170 #define WM8903_IM_GP5_EINT_MASK                 0x0010  /* IM_GP5_EINT */
1167 #define WM8903_IM_GP5_EINT_SHIFT                 1171 #define WM8903_IM_GP5_EINT_SHIFT                     4  /* IM_GP5_EINT */
1168 #define WM8903_IM_GP5_EINT_WIDTH                 1172 #define WM8903_IM_GP5_EINT_WIDTH                     1  /* IM_GP5_EINT */
1169 #define WM8903_IM_GP4_EINT                       1173 #define WM8903_IM_GP4_EINT                      0x0008  /* IM_GP4_EINT */
1170 #define WM8903_IM_GP4_EINT_MASK                  1174 #define WM8903_IM_GP4_EINT_MASK                 0x0008  /* IM_GP4_EINT */
1171 #define WM8903_IM_GP4_EINT_SHIFT                 1175 #define WM8903_IM_GP4_EINT_SHIFT                     3  /* IM_GP4_EINT */
1172 #define WM8903_IM_GP4_EINT_WIDTH                 1176 #define WM8903_IM_GP4_EINT_WIDTH                     1  /* IM_GP4_EINT */
1173 #define WM8903_IM_GP3_EINT                       1177 #define WM8903_IM_GP3_EINT                      0x0004  /* IM_GP3_EINT */
1174 #define WM8903_IM_GP3_EINT_MASK                  1178 #define WM8903_IM_GP3_EINT_MASK                 0x0004  /* IM_GP3_EINT */
1175 #define WM8903_IM_GP3_EINT_SHIFT                 1179 #define WM8903_IM_GP3_EINT_SHIFT                     2  /* IM_GP3_EINT */
1176 #define WM8903_IM_GP3_EINT_WIDTH                 1180 #define WM8903_IM_GP3_EINT_WIDTH                     1  /* IM_GP3_EINT */
1177 #define WM8903_IM_GP2_EINT                       1181 #define WM8903_IM_GP2_EINT                      0x0002  /* IM_GP2_EINT */
1178 #define WM8903_IM_GP2_EINT_MASK                  1182 #define WM8903_IM_GP2_EINT_MASK                 0x0002  /* IM_GP2_EINT */
1179 #define WM8903_IM_GP2_EINT_SHIFT                 1183 #define WM8903_IM_GP2_EINT_SHIFT                     1  /* IM_GP2_EINT */
1180 #define WM8903_IM_GP2_EINT_WIDTH                 1184 #define WM8903_IM_GP2_EINT_WIDTH                     1  /* IM_GP2_EINT */
1181 #define WM8903_IM_GP1_EINT                       1185 #define WM8903_IM_GP1_EINT                      0x0001  /* IM_GP1_EINT */
1182 #define WM8903_IM_GP1_EINT_MASK                  1186 #define WM8903_IM_GP1_EINT_MASK                 0x0001  /* IM_GP1_EINT */
1183 #define WM8903_IM_GP1_EINT_SHIFT                 1187 #define WM8903_IM_GP1_EINT_SHIFT                     0  /* IM_GP1_EINT */
1184 #define WM8903_IM_GP1_EINT_WIDTH                 1188 #define WM8903_IM_GP1_EINT_WIDTH                     1  /* IM_GP1_EINT */
1185                                                  1189 
1186 /*                                               1190 /*
1187  * R123 (0x7B) - Interrupt Polarity 1            1191  * R123 (0x7B) - Interrupt Polarity 1
1188  */                                              1192  */
1189 #define WM8903_MICSHRT_INV                       1193 #define WM8903_MICSHRT_INV                      0x8000  /* MICSHRT_INV */
1190 #define WM8903_MICSHRT_INV_MASK                  1194 #define WM8903_MICSHRT_INV_MASK                 0x8000  /* MICSHRT_INV */
1191 #define WM8903_MICSHRT_INV_SHIFT                 1195 #define WM8903_MICSHRT_INV_SHIFT                    15  /* MICSHRT_INV */
1192 #define WM8903_MICSHRT_INV_WIDTH                 1196 #define WM8903_MICSHRT_INV_WIDTH                     1  /* MICSHRT_INV */
1193 #define WM8903_MICDET_INV                        1197 #define WM8903_MICDET_INV                       0x4000  /* MICDET_INV */
1194 #define WM8903_MICDET_INV_MASK                   1198 #define WM8903_MICDET_INV_MASK                  0x4000  /* MICDET_INV */
1195 #define WM8903_MICDET_INV_SHIFT                  1199 #define WM8903_MICDET_INV_SHIFT                     14  /* MICDET_INV */
1196 #define WM8903_MICDET_INV_WIDTH                  1200 #define WM8903_MICDET_INV_WIDTH                      1  /* MICDET_INV */
1197                                                  1201 
1198 /*                                               1202 /*
1199  * R126 (0x7E) - Interrupt Control               1203  * R126 (0x7E) - Interrupt Control
1200  */                                              1204  */
1201 #define WM8903_IRQ_POL                           1205 #define WM8903_IRQ_POL                          0x0001  /* IRQ_POL */
1202 #define WM8903_IRQ_POL_MASK                      1206 #define WM8903_IRQ_POL_MASK                     0x0001  /* IRQ_POL */
1203 #define WM8903_IRQ_POL_SHIFT                     1207 #define WM8903_IRQ_POL_SHIFT                         0  /* IRQ_POL */
1204 #define WM8903_IRQ_POL_WIDTH                     1208 #define WM8903_IRQ_POL_WIDTH                         1  /* IRQ_POL */
1205                                                  1209 
1206 /*                                               1210 /*
1207  * R164 (0xA4) - Clock Rate Test 4               1211  * R164 (0xA4) - Clock Rate Test 4
1208  */                                              1212  */
1209 #define WM8903_ADC_DIG_MIC                       1213 #define WM8903_ADC_DIG_MIC                      0x0200  /* ADC_DIG_MIC */
1210 #define WM8903_ADC_DIG_MIC_MASK                  1214 #define WM8903_ADC_DIG_MIC_MASK                 0x0200  /* ADC_DIG_MIC */
1211 #define WM8903_ADC_DIG_MIC_SHIFT                 1215 #define WM8903_ADC_DIG_MIC_SHIFT                     9  /* ADC_DIG_MIC */
1212 #define WM8903_ADC_DIG_MIC_WIDTH                 1216 #define WM8903_ADC_DIG_MIC_WIDTH                     1  /* ADC_DIG_MIC */
1213                                                  1217 
1214 /*                                               1218 /*
1215  * R172 (0xAC) - Analogue Output Bias 0          1219  * R172 (0xAC) - Analogue Output Bias 0
1216  */                                              1220  */
1217 #define WM8903_PGA_BIAS_MASK                     1221 #define WM8903_PGA_BIAS_MASK                    0x0070  /* PGA_BIAS - [6:4] */
1218 #define WM8903_PGA_BIAS_SHIFT                    1222 #define WM8903_PGA_BIAS_SHIFT                        4  /* PGA_BIAS - [6:4] */
1219 #define WM8903_PGA_BIAS_WIDTH                    1223 #define WM8903_PGA_BIAS_WIDTH                        3  /* PGA_BIAS - [6:4] */
1220                                                  1224 
1221 #endif                                           1225 #endif
1222                                                  1226 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php