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

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/rt715.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/rt715.h (Version linux-6.12-rc7) and /sound/soc/codecs/rt715.h (Version linux-5.6.19)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * rt715.h -- RT715 ALSA SoC audio driver head      3  * rt715.h -- RT715 ALSA SoC audio driver header
  4  *                                                  4  *
  5  * Copyright(c) 2019 Realtek Semiconductor Cor      5  * Copyright(c) 2019 Realtek Semiconductor Corp.
  6  */                                                 6  */
  7                                                     7 
  8 #ifndef __RT715_H__                                 8 #ifndef __RT715_H__
  9 #define __RT715_H__                                 9 #define __RT715_H__
 10                                                    10 
 11 #include <linux/regulator/consumer.h>              11 #include <linux/regulator/consumer.h>
 12                                                    12 
 13 struct rt715_priv {                                13 struct rt715_priv {
 14         struct regmap *regmap;                     14         struct regmap *regmap;
 15         struct regmap *sdw_regmap;                 15         struct regmap *sdw_regmap;
 16         struct snd_soc_codec *codec;               16         struct snd_soc_codec *codec;
 17         struct sdw_slave *slave;                   17         struct sdw_slave *slave;
 18         int dbg_nid;                               18         int dbg_nid;
 19         int dbg_vid;                               19         int dbg_vid;
 20         int dbg_payload;                           20         int dbg_payload;
                                                   >>  21         enum sdw_slave_status status;
 21         struct sdw_bus_params params;              22         struct sdw_bus_params params;
 22         bool hw_init;                              23         bool hw_init;
 23         bool first_hw_init;                        24         bool first_hw_init;
 24         unsigned int kctl_2ch_vol_ori[2];      !!  25 };
 25         unsigned int kctl_8ch_switch_ori[8];   !!  26 
 26         unsigned int kctl_8ch_vol_ori[8];      !!  27 struct sdw_stream_data {
                                                   >>  28         struct sdw_stream_runtime *sdw_stream;
 27 };                                                 29 };
 28                                                    30 
 29 /* NID */                                          31 /* NID */
 30 #define RT715_AUDIO_FUNCTION_GROUP                 32 #define RT715_AUDIO_FUNCTION_GROUP                      0x01
 31 #define RT715_MIC_ADC                              33 #define RT715_MIC_ADC                                   0x07
 32 #define RT715_LINE_ADC                             34 #define RT715_LINE_ADC                                  0x08
 33 #define RT715_MIX_ADC                              35 #define RT715_MIX_ADC                                   0x09
 34 #define RT715_DMIC1                                36 #define RT715_DMIC1                                     0x12
 35 #define RT715_DMIC2                                37 #define RT715_DMIC2                                     0x13
 36 #define RT715_MIC1                                 38 #define RT715_MIC1                                      0x18
 37 #define RT715_MIC2                                 39 #define RT715_MIC2                                      0x19
 38 #define RT715_LINE1                                40 #define RT715_LINE1                                     0x1a
 39 #define RT715_LINE2                                41 #define RT715_LINE2                                     0x1b
 40 #define RT715_DMIC3                                42 #define RT715_DMIC3                                     0x1d
 41 #define RT715_DMIC4                                43 #define RT715_DMIC4                                     0x29
 42 #define RT715_VENDOR_REGISTERS                     44 #define RT715_VENDOR_REGISTERS                          0x20
 43 #define RT715_MUX_IN1                              45 #define RT715_MUX_IN1                                   0x22
 44 #define RT715_MUX_IN2                              46 #define RT715_MUX_IN2                                   0x23
 45 #define RT715_MUX_IN3                              47 #define RT715_MUX_IN3                                   0x24
 46 #define RT715_MUX_IN4                              48 #define RT715_MUX_IN4                                   0x25
 47 #define RT715_MIX_ADC2                             49 #define RT715_MIX_ADC2                                  0x27
 48 #define RT715_INLINE_CMD                           50 #define RT715_INLINE_CMD                                0x55
 49                                                    51 
 50 /* Index (NID:20h) */                              52 /* Index (NID:20h) */
 51 #define RT715_VD_CLEAR_CTRL                    << 
 52 #define RT715_SDW_INPUT_SEL                        53 #define RT715_SDW_INPUT_SEL                             0x39
 53 #define RT715_EXT_DMIC_CLK_CTRL2                   54 #define RT715_EXT_DMIC_CLK_CTRL2                        0x54
 54                                                    55 
 55 /* Verb */                                         56 /* Verb */
 56 #define RT715_VERB_SET_CONNECT_SEL                 57 #define RT715_VERB_SET_CONNECT_SEL                      0x3100
 57 #define RT715_VERB_GET_CONNECT_SEL                 58 #define RT715_VERB_GET_CONNECT_SEL                      0xb100
 58 #define RT715_VERB_SET_EAPD_BTLENABLE              59 #define RT715_VERB_SET_EAPD_BTLENABLE                   0x3c00
 59 #define RT715_VERB_SET_POWER_STATE                 60 #define RT715_VERB_SET_POWER_STATE                      0x3500
 60 #define RT715_VERB_SET_CHANNEL_STREAMID            61 #define RT715_VERB_SET_CHANNEL_STREAMID                 0x3600
 61 #define RT715_VERB_SET_PIN_WIDGET_CONTROL          62 #define RT715_VERB_SET_PIN_WIDGET_CONTROL               0x3700
 62 #define RT715_VERB_SET_CONFIG_DEFAULT1             63 #define RT715_VERB_SET_CONFIG_DEFAULT1                  0x4c00
 63 #define RT715_VERB_SET_CONFIG_DEFAULT2             64 #define RT715_VERB_SET_CONFIG_DEFAULT2                  0x4d00
 64 #define RT715_VERB_SET_CONFIG_DEFAULT3             65 #define RT715_VERB_SET_CONFIG_DEFAULT3                  0x4e00
 65 #define RT715_VERB_SET_CONFIG_DEFAULT4             66 #define RT715_VERB_SET_CONFIG_DEFAULT4                  0x4f00
 66 #define RT715_VERB_SET_UNSOLICITED_ENABLE          67 #define RT715_VERB_SET_UNSOLICITED_ENABLE               0x3800
 67 #define RT715_SET_AMP_GAIN_MUTE_H                  68 #define RT715_SET_AMP_GAIN_MUTE_H                       0x7300
 68 #define RT715_SET_AMP_GAIN_MUTE_L                  69 #define RT715_SET_AMP_GAIN_MUTE_L                       0x8380
 69 #define RT715_READ_HDA_3                           70 #define RT715_READ_HDA_3                                0x2012
 70 #define RT715_READ_HDA_2                           71 #define RT715_READ_HDA_2                                0x2013
 71 #define RT715_READ_HDA_1                           72 #define RT715_READ_HDA_1                                0x2014
 72 #define RT715_READ_HDA_0                           73 #define RT715_READ_HDA_0                                0x2015
 73 #define RT715_PRIV_INDEX_W_H                       74 #define RT715_PRIV_INDEX_W_H                            0x7520
 74 #define RT715_PRIV_INDEX_W_L                       75 #define RT715_PRIV_INDEX_W_L                            0x85a0
 75 #define RT715_PRIV_INDEX_W_H_2                 << 
 76 #define RT715_PRIV_INDEX_W_L_2                 << 
 77 #define RT715_PRIV_DATA_W_H                        76 #define RT715_PRIV_DATA_W_H                             0x7420
 78 #define RT715_PRIV_DATA_W_L                        77 #define RT715_PRIV_DATA_W_L                             0x84a0
 79 #define RT715_PRIV_INDEX_R_H                       78 #define RT715_PRIV_INDEX_R_H                            0x9d20
 80 #define RT715_PRIV_INDEX_R_L                       79 #define RT715_PRIV_INDEX_R_L                            0xada0
 81 #define RT715_PRIV_DATA_R_H                        80 #define RT715_PRIV_DATA_R_H                             0x9c20
 82 #define RT715_PRIV_DATA_R_L                        81 #define RT715_PRIV_DATA_R_L                             0xaca0
 83 #define RT715_MIC_ADC_FORMAT_H                     82 #define RT715_MIC_ADC_FORMAT_H                          0x7207
 84 #define RT715_MIC_ADC_FORMAT_L                     83 #define RT715_MIC_ADC_FORMAT_L                          0x8287
 85 #define RT715_MIC_LINE_FORMAT_H                    84 #define RT715_MIC_LINE_FORMAT_H                         0x7208
 86 #define RT715_MIC_LINE_FORMAT_L                    85 #define RT715_MIC_LINE_FORMAT_L                         0x8288
 87 #define RT715_MIX_ADC_FORMAT_H                     86 #define RT715_MIX_ADC_FORMAT_H                          0x7209
 88 #define RT715_MIX_ADC_FORMAT_L                     87 #define RT715_MIX_ADC_FORMAT_L                          0x8289
 89 #define RT715_MIX_ADC2_FORMAT_H                    88 #define RT715_MIX_ADC2_FORMAT_H                         0x7227
 90 #define RT715_MIX_ADC2_FORMAT_L                    89 #define RT715_MIX_ADC2_FORMAT_L                         0x82a7
 91 #define RT715_FUNC_RESET                           90 #define RT715_FUNC_RESET                                0xff01
 92                                                    91 
 93 #define RT715_SET_AUDIO_POWER_STATE\               92 #define RT715_SET_AUDIO_POWER_STATE\
 94         (RT715_VERB_SET_POWER_STATE | RT715_AU     93         (RT715_VERB_SET_POWER_STATE | RT715_AUDIO_FUNCTION_GROUP)
 95 #define RT715_SET_PIN_DMIC1\                       94 #define RT715_SET_PIN_DMIC1\
 96         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R     95         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_DMIC1)
 97 #define RT715_SET_PIN_DMIC2\                       96 #define RT715_SET_PIN_DMIC2\
 98         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R     97         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_DMIC2)
 99 #define RT715_SET_PIN_DMIC3\                       98 #define RT715_SET_PIN_DMIC3\
100         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R     99         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_DMIC3)
101 #define RT715_SET_PIN_DMIC4\                      100 #define RT715_SET_PIN_DMIC4\
102         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R    101         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_DMIC4)
103 #define RT715_SET_PIN_MIC1\                       102 #define RT715_SET_PIN_MIC1\
104         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R    103         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_MIC1)
105 #define RT715_SET_PIN_MIC2\                       104 #define RT715_SET_PIN_MIC2\
106         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R    105         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_MIC2)
107 #define RT715_SET_PIN_LINE1\                      106 #define RT715_SET_PIN_LINE1\
108         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R    107         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_LINE1)
109 #define RT715_SET_PIN_LINE2\                      108 #define RT715_SET_PIN_LINE2\
110         (RT715_VERB_SET_PIN_WIDGET_CONTROL | R    109         (RT715_VERB_SET_PIN_WIDGET_CONTROL | RT715_LINE2)
111 #define RT715_SET_MIC1_UNSOLICITED_ENABLE\        110 #define RT715_SET_MIC1_UNSOLICITED_ENABLE\
112         (RT715_VERB_SET_UNSOLICITED_ENABLE | R    111         (RT715_VERB_SET_UNSOLICITED_ENABLE | RT715_MIC1)
113 #define RT715_SET_MIC2_UNSOLICITED_ENABLE\        112 #define RT715_SET_MIC2_UNSOLICITED_ENABLE\
114         (RT715_VERB_SET_UNSOLICITED_ENABLE | R    113         (RT715_VERB_SET_UNSOLICITED_ENABLE | RT715_MIC2)
115 #define RT715_SET_STREAMID_MIC_ADC\               114 #define RT715_SET_STREAMID_MIC_ADC\
116         (RT715_VERB_SET_CHANNEL_STREAMID | RT7    115         (RT715_VERB_SET_CHANNEL_STREAMID | RT715_MIC_ADC)
117 #define RT715_SET_STREAMID_LINE_ADC\              116 #define RT715_SET_STREAMID_LINE_ADC\
118         (RT715_VERB_SET_CHANNEL_STREAMID | RT7    117         (RT715_VERB_SET_CHANNEL_STREAMID | RT715_LINE_ADC)
119 #define RT715_SET_STREAMID_MIX_ADC\               118 #define RT715_SET_STREAMID_MIX_ADC\
120         (RT715_VERB_SET_CHANNEL_STREAMID | RT7    119         (RT715_VERB_SET_CHANNEL_STREAMID | RT715_MIX_ADC)
121 #define RT715_SET_STREAMID_MIX_ADC2\              120 #define RT715_SET_STREAMID_MIX_ADC2\
122         (RT715_VERB_SET_CHANNEL_STREAMID | RT7    121         (RT715_VERB_SET_CHANNEL_STREAMID | RT715_MIX_ADC2)
123 #define RT715_SET_GAIN_MIC_ADC_L\                 122 #define RT715_SET_GAIN_MIC_ADC_L\
124         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIC    123         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIC_ADC)
125 #define RT715_SET_GAIN_MIC_ADC_H\                 124 #define RT715_SET_GAIN_MIC_ADC_H\
126         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIC    125         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIC_ADC)
127 #define RT715_SET_GAIN_LINE_ADC_L\                126 #define RT715_SET_GAIN_LINE_ADC_L\
128         (RT715_SET_AMP_GAIN_MUTE_L | RT715_LIN    127         (RT715_SET_AMP_GAIN_MUTE_L | RT715_LINE_ADC)
129 #define RT715_SET_GAIN_LINE_ADC_H\                128 #define RT715_SET_GAIN_LINE_ADC_H\
130         (RT715_SET_AMP_GAIN_MUTE_H | RT715_LIN    129         (RT715_SET_AMP_GAIN_MUTE_H | RT715_LINE_ADC)
131 #define RT715_SET_GAIN_MIX_ADC_L\                 130 #define RT715_SET_GAIN_MIX_ADC_L\
132         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIX    131         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIX_ADC)
133 #define RT715_SET_GAIN_MIX_ADC_H\                 132 #define RT715_SET_GAIN_MIX_ADC_H\
134         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIX    133         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIX_ADC)
135 #define RT715_SET_GAIN_MIX_ADC2_L\                134 #define RT715_SET_GAIN_MIX_ADC2_L\
136         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIX    135         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIX_ADC2)
137 #define RT715_SET_GAIN_MIX_ADC2_H\                136 #define RT715_SET_GAIN_MIX_ADC2_H\
138         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIX    137         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIX_ADC2)
139 #define RT715_SET_GAIN_DMIC1_L\                   138 #define RT715_SET_GAIN_DMIC1_L\
140         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMI    139         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMIC1)
141 #define RT715_SET_GAIN_DMIC1_H\                   140 #define RT715_SET_GAIN_DMIC1_H\
142         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMI    141         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMIC1)
143 #define RT715_SET_GAIN_DMIC2_L\                   142 #define RT715_SET_GAIN_DMIC2_L\
144         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMI    143         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMIC2)
145 #define RT715_SET_GAIN_DMIC2_H\                   144 #define RT715_SET_GAIN_DMIC2_H\
146         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMI    145         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMIC2)
147 #define RT715_SET_GAIN_DMIC3_L\                   146 #define RT715_SET_GAIN_DMIC3_L\
148         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMI    147         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMIC3)
149 #define RT715_SET_GAIN_DMIC3_H\                   148 #define RT715_SET_GAIN_DMIC3_H\
150         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMI    149         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMIC3)
151 #define RT715_SET_GAIN_DMIC4_L\                   150 #define RT715_SET_GAIN_DMIC4_L\
152         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMI    151         (RT715_SET_AMP_GAIN_MUTE_L | RT715_DMIC4)
153 #define RT715_SET_GAIN_DMIC4_H\                   152 #define RT715_SET_GAIN_DMIC4_H\
154         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMI    153         (RT715_SET_AMP_GAIN_MUTE_H | RT715_DMIC4)
155 #define RT715_SET_GAIN_MIC1_L\                    154 #define RT715_SET_GAIN_MIC1_L\
156         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIC    155         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIC1)
157 #define RT715_SET_GAIN_MIC1_H\                    156 #define RT715_SET_GAIN_MIC1_H\
158         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIC    157         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIC1)
159 #define RT715_SET_GAIN_MIC2_L\                    158 #define RT715_SET_GAIN_MIC2_L\
160         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIC    159         (RT715_SET_AMP_GAIN_MUTE_L | RT715_MIC2)
161 #define RT715_SET_GAIN_MIC2_H\                    160 #define RT715_SET_GAIN_MIC2_H\
162         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIC    161         (RT715_SET_AMP_GAIN_MUTE_H | RT715_MIC2)
163 #define RT715_SET_GAIN_LINE1_L\                   162 #define RT715_SET_GAIN_LINE1_L\
164         (RT715_SET_AMP_GAIN_MUTE_L | RT715_LIN    163         (RT715_SET_AMP_GAIN_MUTE_L | RT715_LINE1)
165 #define RT715_SET_GAIN_LINE1_H\                   164 #define RT715_SET_GAIN_LINE1_H\
166         (RT715_SET_AMP_GAIN_MUTE_H | RT715_LIN    165         (RT715_SET_AMP_GAIN_MUTE_H | RT715_LINE1)
167 #define RT715_SET_GAIN_LINE2_L\                   166 #define RT715_SET_GAIN_LINE2_L\
168         (RT715_SET_AMP_GAIN_MUTE_L | RT715_LIN    167         (RT715_SET_AMP_GAIN_MUTE_L | RT715_LINE2)
169 #define RT715_SET_GAIN_LINE2_H\                   168 #define RT715_SET_GAIN_LINE2_H\
170         (RT715_SET_AMP_GAIN_MUTE_H | RT715_LIN    169         (RT715_SET_AMP_GAIN_MUTE_H | RT715_LINE2)
171 #define RT715_SET_DMIC1_CONFIG_DEFAULT1\          170 #define RT715_SET_DMIC1_CONFIG_DEFAULT1\
172         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT71    171         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT715_DMIC1)
173 #define RT715_SET_DMIC2_CONFIG_DEFAULT1\          172 #define RT715_SET_DMIC2_CONFIG_DEFAULT1\
174         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT71    173         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT715_DMIC2)
175 #define RT715_SET_DMIC1_CONFIG_DEFAULT2\          174 #define RT715_SET_DMIC1_CONFIG_DEFAULT2\
176         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT71    175         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT715_DMIC1)
177 #define RT715_SET_DMIC2_CONFIG_DEFAULT2\          176 #define RT715_SET_DMIC2_CONFIG_DEFAULT2\
178         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT71    177         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT715_DMIC2)
179 #define RT715_SET_DMIC1_CONFIG_DEFAULT3\          178 #define RT715_SET_DMIC1_CONFIG_DEFAULT3\
180         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT71    179         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT715_DMIC1)
181 #define RT715_SET_DMIC2_CONFIG_DEFAULT3\          180 #define RT715_SET_DMIC2_CONFIG_DEFAULT3\
182         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT71    181         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT715_DMIC2)
183 #define RT715_SET_DMIC1_CONFIG_DEFAULT4\          182 #define RT715_SET_DMIC1_CONFIG_DEFAULT4\
184         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT71    183         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT715_DMIC1)
185 #define RT715_SET_DMIC2_CONFIG_DEFAULT4\          184 #define RT715_SET_DMIC2_CONFIG_DEFAULT4\
186         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT71    185         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT715_DMIC2)
187 #define RT715_SET_DMIC3_CONFIG_DEFAULT1\          186 #define RT715_SET_DMIC3_CONFIG_DEFAULT1\
188         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT71    187         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT715_DMIC3)
189 #define RT715_SET_DMIC4_CONFIG_DEFAULT1\          188 #define RT715_SET_DMIC4_CONFIG_DEFAULT1\
190         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT71    189         (RT715_VERB_SET_CONFIG_DEFAULT1 | RT715_DMIC4)
191 #define RT715_SET_DMIC3_CONFIG_DEFAULT2\          190 #define RT715_SET_DMIC3_CONFIG_DEFAULT2\
192         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT71    191         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT715_DMIC3)
193 #define RT715_SET_DMIC4_CONFIG_DEFAULT2\          192 #define RT715_SET_DMIC4_CONFIG_DEFAULT2\
194         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT71    193         (RT715_VERB_SET_CONFIG_DEFAULT2 | RT715_DMIC4)
195 #define RT715_SET_DMIC3_CONFIG_DEFAULT3\          194 #define RT715_SET_DMIC3_CONFIG_DEFAULT3\
196         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT71    195         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT715_DMIC3)
197 #define RT715_SET_DMIC4_CONFIG_DEFAULT3\          196 #define RT715_SET_DMIC4_CONFIG_DEFAULT3\
198         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT71    197         (RT715_VERB_SET_CONFIG_DEFAULT3 | RT715_DMIC4)
199 #define RT715_SET_DMIC3_CONFIG_DEFAULT4\          198 #define RT715_SET_DMIC3_CONFIG_DEFAULT4\
200         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT71    199         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT715_DMIC3)
201 #define RT715_SET_DMIC4_CONFIG_DEFAULT4\          200 #define RT715_SET_DMIC4_CONFIG_DEFAULT4\
202         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT71    201         (RT715_VERB_SET_CONFIG_DEFAULT4 | RT715_DMIC4)
203                                                   202 
204 /* vendor register clear ctrl-1    (0x01)(NID: << 
205 #define RT715_CLEAR_HIDDEN_REG (0x1 << 15)     << 
206                                                << 
207                                                << 
208 #define RT715_MUTE_SFT                            203 #define RT715_MUTE_SFT                                  7
209 #define RT715_DIR_IN_SFT                          204 #define RT715_DIR_IN_SFT                                6
210 #define RT715_DIR_OUT_SFT                         205 #define RT715_DIR_OUT_SFT                               7
211                                                   206 
212 enum {                                            207 enum {
213         RT715_AIF1,                               208         RT715_AIF1,
214         RT715_AIF2,                               209         RT715_AIF2,
                                                   >> 210         RT715_AIFS,
215 };                                                211 };
216                                                << 
217 #define RT715_POWER_UP_DELAY_MS 400            << 
218                                                   212 
219 int rt715_io_init(struct device *dev, struct s    213 int rt715_io_init(struct device *dev, struct sdw_slave *slave);
220 int rt715_init(struct device *dev, struct regm    214 int rt715_init(struct device *dev, struct regmap *sdw_regmap,
221         struct regmap *regmap, struct sdw_slav    215         struct regmap *regmap, struct sdw_slave *slave);
222                                                   216 
223 int hda_to_sdw(unsigned int nid, unsigned int     217 int hda_to_sdw(unsigned int nid, unsigned int verb, unsigned int payload,
224                unsigned int *sdw_addr_h, unsig    218                unsigned int *sdw_addr_h, unsigned int *sdw_data_h,
225                unsigned int *sdw_addr_l, unsig    219                unsigned int *sdw_addr_l, unsigned int *sdw_data_l);
226 int rt715_clock_config(struct device *dev);       220 int rt715_clock_config(struct device *dev);
227 #endif /* __RT715_H__ */                          221 #endif /* __RT715_H__ */
228                                                   222 

~ [ 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