Lines Matching refs:name

188 #define MADERA_GAINMUX_CONTROLS(name, base) \  argument
189 SOC_SINGLE_RANGE_TLV(name " Input Volume", base + 1, \
193 #define MADERA_MIXER_CONTROLS(name, base) \ argument
194 SOC_SINGLE_RANGE_TLV(name " Input 1 Volume", base + 1, \
197 SOC_SINGLE_RANGE_TLV(name " Input 2 Volume", base + 3, \
200 SOC_SINGLE_RANGE_TLV(name " Input 3 Volume", base + 5, \
203 SOC_SINGLE_RANGE_TLV(name " Input 4 Volume", base + 7, \
207 #define MADERA_MUX_ENUM_DECL(name, reg) \ argument
209 name, reg, 0, 0xff, madera_mixer_texts, madera_mixer_values)
211 #define MADERA_MUX_CTL_DECL(name) \ argument
212 const struct snd_kcontrol_new name##_mux = \
213 SOC_DAPM_ENUM("Route", name##_enum)
215 #define MADERA_MUX_ENUMS(name, base_reg) \ argument
216 static MADERA_MUX_ENUM_DECL(name##_enum, base_reg); \
217 static MADERA_MUX_CTL_DECL(name)
219 #define MADERA_MIXER_ENUMS(name, base_reg) \ argument
220 MADERA_MUX_ENUMS(name##_in1, base_reg); \
221 MADERA_MUX_ENUMS(name##_in2, base_reg + 2); \
222 MADERA_MUX_ENUMS(name##_in3, base_reg + 4); \
223 MADERA_MUX_ENUMS(name##_in4, base_reg + 6)
225 #define MADERA_DSP_AUX_ENUMS(name, base_reg) \ argument
226 MADERA_MUX_ENUMS(name##_aux1, base_reg); \
227 MADERA_MUX_ENUMS(name##_aux2, base_reg + 8); \
228 MADERA_MUX_ENUMS(name##_aux3, base_reg + 16); \
229 MADERA_MUX_ENUMS(name##_aux4, base_reg + 24); \
230 MADERA_MUX_ENUMS(name##_aux5, base_reg + 32); \
231 MADERA_MUX_ENUMS(name##_aux6, base_reg + 40)
233 #define MADERA_MUX(name, ctrl) \ argument
234 SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
236 #define MADERA_MUX_WIDGETS(name, name_str) \ argument
237 MADERA_MUX(name_str " Input 1", &name##_mux)
239 #define MADERA_MIXER_WIDGETS(name, name_str) \ argument
240 MADERA_MUX(name_str " Input 1", &name##_in1_mux), \
241 MADERA_MUX(name_str " Input 2", &name##_in2_mux), \
242 MADERA_MUX(name_str " Input 3", &name##_in3_mux), \
243 MADERA_MUX(name_str " Input 4", &name##_in4_mux), \
246 #define MADERA_DSP_WIDGETS(name, name_str) \ argument
247 MADERA_MIXER_WIDGETS(name##L, name_str "L"), \
248 MADERA_MIXER_WIDGETS(name##R, name_str "R"), \
249 MADERA_MUX(name_str " Aux 1", &name##_aux1_mux), \
250 MADERA_MUX(name_str " Aux 2", &name##_aux2_mux), \
251 MADERA_MUX(name_str " Aux 3", &name##_aux3_mux), \
252 MADERA_MUX(name_str " Aux 4", &name##_aux4_mux), \
253 MADERA_MUX(name_str " Aux 5", &name##_aux5_mux), \
254 MADERA_MUX(name_str " Aux 6", &name##_aux6_mux)
256 #define MADERA_MUX_ROUTES(widget, name) \ argument
257 { widget, NULL, name " Input 1" }, \
258 MADERA_MIXER_INPUT_ROUTES(name " Input 1")
260 #define MADERA_MIXER_ROUTES(widget, name) \ argument
261 { widget, NULL, name " Mixer" }, \
262 { name " Mixer", NULL, name " Input 1" }, \
263 { name " Mixer", NULL, name " Input 2" }, \
264 { name " Mixer", NULL, name " Input 3" }, \
265 { name " Mixer", NULL, name " Input 4" }, \
266 MADERA_MIXER_INPUT_ROUTES(name " Input 1"), \
267 MADERA_MIXER_INPUT_ROUTES(name " Input 2"), \
268 MADERA_MIXER_INPUT_ROUTES(name " Input 3"), \
269 MADERA_MIXER_INPUT_ROUTES(name " Input 4")
271 #define MADERA_DSP_ROUTES(name) \ argument
272 { name, NULL, name " Preloader"}, \
273 { name " Preload", NULL, name " Preloader"}, \
274 { name, NULL, "SYSCLK"}, \
275 { name, NULL, "DSPCLK"}, \
276 { name, NULL, name " Aux 1" }, \
277 { name, NULL, name " Aux 2" }, \
278 { name, NULL, name " Aux 3" }, \
279 { name, NULL, name " Aux 4" }, \
280 { name, NULL, name " Aux 5" }, \
281 { name, NULL, name " Aux 6" }, \
282 MADERA_MIXER_INPUT_ROUTES(name " Aux 1"), \
283 MADERA_MIXER_INPUT_ROUTES(name " Aux 2"), \
284 MADERA_MIXER_INPUT_ROUTES(name " Aux 3"), \
285 MADERA_MIXER_INPUT_ROUTES(name " Aux 4"), \
286 MADERA_MIXER_INPUT_ROUTES(name " Aux 5"), \
287 MADERA_MIXER_INPUT_ROUTES(name " Aux 6"), \
288 MADERA_MIXER_ROUTES(name, name "L"), \
289 MADERA_MIXER_ROUTES(name, name "R")
292 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\
298 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
305 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \