Lines Matching refs:name
108 #define ARIZONA_GAINMUX_CONTROLS(name, base) \ argument
109 SOC_SINGLE_RANGE_TLV(name " Input Volume", base + 1, \
113 #define ARIZONA_MIXER_CONTROLS(name, base) \ argument
114 SOC_SINGLE_RANGE_TLV(name " Input 1 Volume", base + 1, \
117 SOC_SINGLE_RANGE_TLV(name " Input 2 Volume", base + 3, \
120 SOC_SINGLE_RANGE_TLV(name " Input 3 Volume", base + 5, \
123 SOC_SINGLE_RANGE_TLV(name " Input 4 Volume", base + 7, \
127 #define ARIZONA_MUX_ENUM_DECL(name, reg) \ argument
129 name, reg, 0, 0xff, arizona_mixer_texts, arizona_mixer_values)
131 #define ARIZONA_MUX_CTL_DECL(name) \ argument
132 const struct snd_kcontrol_new name##_mux = \
133 SOC_DAPM_ENUM("Route", name##_enum)
135 #define ARIZONA_MUX_ENUMS(name, base_reg) \ argument
136 static ARIZONA_MUX_ENUM_DECL(name##_enum, base_reg); \
137 static ARIZONA_MUX_CTL_DECL(name)
139 #define ARIZONA_MIXER_ENUMS(name, base_reg) \ argument
140 ARIZONA_MUX_ENUMS(name##_in1, base_reg); \
141 ARIZONA_MUX_ENUMS(name##_in2, base_reg + 2); \
142 ARIZONA_MUX_ENUMS(name##_in3, base_reg + 4); \
143 ARIZONA_MUX_ENUMS(name##_in4, base_reg + 6)
145 #define ARIZONA_DSP_AUX_ENUMS(name, base_reg) \ argument
146 ARIZONA_MUX_ENUMS(name##_aux1, base_reg); \
147 ARIZONA_MUX_ENUMS(name##_aux2, base_reg + 8); \
148 ARIZONA_MUX_ENUMS(name##_aux3, base_reg + 16); \
149 ARIZONA_MUX_ENUMS(name##_aux4, base_reg + 24); \
150 ARIZONA_MUX_ENUMS(name##_aux5, base_reg + 32); \
151 ARIZONA_MUX_ENUMS(name##_aux6, base_reg + 40)
153 #define ARIZONA_MUX(name, ctrl) \ argument
154 SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
156 #define ARIZONA_MUX_WIDGETS(name, name_str) \ argument
157 ARIZONA_MUX(name_str " Input", &name##_mux)
159 #define ARIZONA_MIXER_WIDGETS(name, name_str) \ argument
160 ARIZONA_MUX(name_str " Input 1", &name##_in1_mux), \
161 ARIZONA_MUX(name_str " Input 2", &name##_in2_mux), \
162 ARIZONA_MUX(name_str " Input 3", &name##_in3_mux), \
163 ARIZONA_MUX(name_str " Input 4", &name##_in4_mux), \
166 #define ARIZONA_DSP_WIDGETS(name, name_str) \ argument
167 ARIZONA_MIXER_WIDGETS(name##L, name_str "L"), \
168 ARIZONA_MIXER_WIDGETS(name##R, name_str "R"), \
169 ARIZONA_MUX(name_str " Aux 1", &name##_aux1_mux), \
170 ARIZONA_MUX(name_str " Aux 2", &name##_aux2_mux), \
171 ARIZONA_MUX(name_str " Aux 3", &name##_aux3_mux), \
172 ARIZONA_MUX(name_str " Aux 4", &name##_aux4_mux), \
173 ARIZONA_MUX(name_str " Aux 5", &name##_aux5_mux), \
174 ARIZONA_MUX(name_str " Aux 6", &name##_aux6_mux)
176 #define ARIZONA_MUX_ROUTES(widget, name) \ argument
177 { widget, NULL, name " Input" }, \
178 ARIZONA_MIXER_INPUT_ROUTES(name " Input")
180 #define ARIZONA_MIXER_ROUTES(widget, name) \ argument
181 { widget, NULL, name " Mixer" }, \
182 { name " Mixer", NULL, name " Input 1" }, \
183 { name " Mixer", NULL, name " Input 2" }, \
184 { name " Mixer", NULL, name " Input 3" }, \
185 { name " Mixer", NULL, name " Input 4" }, \
186 ARIZONA_MIXER_INPUT_ROUTES(name " Input 1"), \
187 ARIZONA_MIXER_INPUT_ROUTES(name " Input 2"), \
188 ARIZONA_MIXER_INPUT_ROUTES(name " Input 3"), \
189 ARIZONA_MIXER_INPUT_ROUTES(name " Input 4")
191 #define ARIZONA_DSP_ROUTES(name) \ argument
192 { name, NULL, name " Preloader"}, \
193 { name " Preloader", NULL, "SYSCLK" }, \
194 { name, NULL, name " Aux 1" }, \
195 { name, NULL, name " Aux 2" }, \
196 { name, NULL, name " Aux 3" }, \
197 { name, NULL, name " Aux 4" }, \
198 { name, NULL, name " Aux 5" }, \
199 { name, NULL, name " Aux 6" }, \
200 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 1"), \
201 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 2"), \
202 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 3"), \
203 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 4"), \
204 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 5"), \
205 ARIZONA_MIXER_INPUT_ROUTES(name " Aux 6"), \
206 ARIZONA_MIXER_ROUTES(name, name "L"), \
207 ARIZONA_MIXER_ROUTES(name, name "R")
210 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
217 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \