diff options
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index c5d9987bc897..8fd3b41b763f 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -172,9 +172,19 @@ | |||
172 | #define SND_SOC_DAPM_AIF_IN(wname, stname, wslot, wreg, wshift, winvert) \ | 172 | #define SND_SOC_DAPM_AIF_IN(wname, stname, wslot, wreg, wshift, winvert) \ |
173 | { .id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \ | 173 | { .id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \ |
174 | .reg = wreg, .shift = wshift, .invert = winvert } | 174 | .reg = wreg, .shift = wshift, .invert = winvert } |
175 | #define SND_SOC_DAPM_AIF_IN_E(wname, stname, wslot, wreg, wshift, winvert, \ | ||
176 | wevent, wflags) \ | ||
177 | { .id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \ | ||
178 | .reg = wreg, .shift = wshift, .invert = winvert, \ | ||
179 | .event = wevent, .event_flags = wflags } | ||
175 | #define SND_SOC_DAPM_AIF_OUT(wname, stname, wslot, wreg, wshift, winvert) \ | 180 | #define SND_SOC_DAPM_AIF_OUT(wname, stname, wslot, wreg, wshift, winvert) \ |
176 | { .id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \ | 181 | { .id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \ |
177 | .reg = wreg, .shift = wshift, .invert = winvert } | 182 | .reg = wreg, .shift = wshift, .invert = winvert } |
183 | #define SND_SOC_DAPM_AIF_OUT_E(wname, stname, wslot, wreg, wshift, winvert, \ | ||
184 | wevent, wflags) \ | ||
185 | { .id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \ | ||
186 | .reg = wreg, .shift = wshift, .invert = winvert, \ | ||
187 | .event = wevent, .event_flags = wflags } | ||
178 | #define SND_SOC_DAPM_DAC(wname, stname, wreg, wshift, winvert) \ | 188 | #define SND_SOC_DAPM_DAC(wname, stname, wreg, wshift, winvert) \ |
179 | { .id = snd_soc_dapm_dac, .name = wname, .sname = stname, .reg = wreg, \ | 189 | { .id = snd_soc_dapm_dac, .name = wname, .sname = stname, .reg = wreg, \ |
180 | .shift = wshift, .invert = winvert} | 190 | .shift = wshift, .invert = winvert} |
@@ -322,14 +332,14 @@ int snd_soc_dapm_new_controls(struct snd_soc_codec *codec, | |||
322 | 332 | ||
323 | /* dapm path setup */ | 333 | /* dapm path setup */ |
324 | int snd_soc_dapm_new_widgets(struct snd_soc_codec *codec); | 334 | int snd_soc_dapm_new_widgets(struct snd_soc_codec *codec); |
325 | void snd_soc_dapm_free(struct snd_soc_device *socdev); | 335 | void snd_soc_dapm_free(struct snd_soc_codec *codec); |
326 | int snd_soc_dapm_add_routes(struct snd_soc_codec *codec, | 336 | int snd_soc_dapm_add_routes(struct snd_soc_codec *codec, |
327 | const struct snd_soc_dapm_route *route, int num); | 337 | const struct snd_soc_dapm_route *route, int num); |
328 | 338 | ||
329 | /* dapm events */ | 339 | /* dapm events */ |
330 | int snd_soc_dapm_stream_event(struct snd_soc_codec *codec, char *stream, | 340 | int snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, |
331 | int event); | 341 | const char *stream, int event); |
332 | void snd_soc_dapm_shutdown(struct snd_soc_device *socdev); | 342 | void snd_soc_dapm_shutdown(struct snd_soc_card *card); |
333 | 343 | ||
334 | /* dapm sys fs - used by the core */ | 344 | /* dapm sys fs - used by the core */ |
335 | int snd_soc_dapm_sys_add(struct device *dev); | 345 | int snd_soc_dapm_sys_add(struct device *dev); |