Lines Matching refs:name
141 #define ARIZONA_GAINMUX_CONTROLS(name, base) \ argument
142 SOC_SINGLE_RANGE_TLV(name " Input Volume", base + 1, \
146 #define ARIZONA_MIXER_CONTROLS(name, base) \ argument
147 SOC_SINGLE_RANGE_TLV(name " Input 1 Volume", base + 1, \
150 SOC_SINGLE_RANGE_TLV(name " Input 2 Volume", base + 3, \
153 SOC_SINGLE_RANGE_TLV(name " Input 3 Volume", base + 5, \
156 SOC_SINGLE_RANGE_TLV(name " Input 4 Volume", base + 7, \
160 #define ARIZONA_MUX_ENUM_DECL(name, reg) \ argument
162 name, reg, 0, 0xff, arizona_mixer_texts, arizona_mixer_values)
164 #define ARIZONA_MUX_CTL_DECL(name) \ argument
165 const struct snd_kcontrol_new name##_mux = \
166 SOC_DAPM_ENUM("Route", name##_enum)
168 #define ARIZONA_MUX_ENUMS(name, base_reg) \ argument
169 static ARIZONA_MUX_ENUM_DECL(name##_enum, base_reg); \
170 static ARIZONA_MUX_CTL_DECL(name)
172 #define ARIZONA_MIXER_ENUMS(name, base_reg) \ argument
173 ARIZONA_MUX_ENUMS(name##_in1, base_reg); \
174 ARIZONA_MUX_ENUMS(name##_in2, base_reg + 2); \
175 ARIZONA_MUX_ENUMS(name##_in3, base_reg + 4); \
176 ARIZONA_MUX_ENUMS(name##_in4, base_reg + 6)
178 #define ARIZONA_DSP_AUX_ENUMS(name, base_reg) \ argument
179 ARIZONA_MUX_ENUMS(name##_aux1, base_reg); \
180 ARIZONA_MUX_ENUMS(name##_aux2, base_reg + 8); \
181 ARIZONA_MUX_ENUMS(name##_aux3, base_reg + 16); \
182 ARIZONA_MUX_ENUMS(name##_aux4, base_reg + 24); \
183 ARIZONA_MUX_ENUMS(name##_aux5, base_reg + 32); \
184 ARIZONA_MUX_ENUMS(name##_aux6, base_reg + 40)
186 #define ARIZONA_MUX(name, ctrl) \ argument
187 SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
189 #define ARIZONA_MUX_WIDGETS(name, name_str) \ argument
190 ARIZONA_MUX(name_str " Input", &name##_mux)
192 #define ARIZONA_MIXER_WIDGETS(name, name_str) \ argument
193 ARIZONA_MUX(name_str " Input 1", &name##_in1_mux), \
194 ARIZONA_MUX(name_str " Input 2", &name##_in2_mux), \
195 ARIZONA_MUX(name_str " Input 3", &name##_in3_mux), \
196 ARIZONA_MUX(name_str " Input 4", &name##_in4_mux), \
199 #define ARIZONA_DSP_WIDGETS(name, name_str) \ argument
200 ARIZONA_MIXER_WIDGETS(name##L, name_str "L"), \
201 ARIZONA_MIXER_WIDGETS(name##R, name_str "R"), \
202 ARIZONA_MUX(name_str " Aux 1", &name##_aux1_mux), \
203 ARIZONA_MUX(name_str " Aux 2", &name##_aux2_mux), \
204 ARIZONA_MUX(name_str " Aux 3", &name##_aux3_mux), \
205 ARIZONA_MUX(name_str " Aux 4", &name##_aux4_mux), \
206 ARIZONA_MUX(name_str " Aux 5", &name##_aux5_mux), \
207 ARIZONA_MUX(name_str " Aux 6", &name##_aux6_mux)
209 #define ARIZONA_MUX_ROUTES(widget, name) \ argument
210 { widget, NULL, name " Input" }, \
211 ARIZONA_MIXER_INPUT_ROUTES(name " Input")
213 #define ARIZONA_MIXER_ROUTES(widget, name) \ argument
214 { widget, NULL, name " Mixer" }, \
215 { name " Mixer", NULL, name " Input 1" }, \
216 { name " Mixer", NULL, name " Input 2" }, \
217 { name " Mixer", NULL, name " Input 3" }, \
218 { name " Mixer", NULL, name " Input 4" }, \
219 ARIZONA_MIXER_INPUT_ROUTES(name " Input 1"), \
220 ARIZONA_MIXER_INPUT_ROUTES(name " Input 2"), \
221 ARIZONA_MIXER_INPUT_ROUTES(name " Input 3"), \
222 ARIZONA_MIXER_INPUT_ROUTES(name " Input 4")
224 #define ARIZONA_DSP_ROUTES(name) \ argument
225 { name, NULL, name " Preloader"}, \
226 { name " Preloader", NULL, "SYSCLK" }, \
227 { name " Preload", NULL, name " Preloader"}, \
228 { name, NULL, name " Aux 1" }, \
229 { name, NULL, name " Aux 2" }, \
230 { name, NULL, name " Aux 3" }, \
231 { name, NULL, name " Aux 4" }, \
232 { name, NULL, name " Aux 5" }, \
233 { name, NULL, name " Aux 6" }, \
234 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 1"), \
235 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 2"), \
236 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 3"), \
237 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 4"), \
238 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 5"), \
239 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 6"), \
240 ARIZONA_MIXER_ROUTES(name, name "L"), \
241 ARIZONA_MIXER_ROUTES(name, name "R")
244 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
251 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \