diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-17 12:39:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-18 11:06:08 -0400 |
commit | 010ff262269c6ad84acba98eab2d7843919c7ccf (patch) | |
tree | c78ac453debd029144d4ca2a3c8a150bddd5c974 /include/sound/soc-dapm.h | |
parent | 1ca04065c3569beb42b9376952df8c96f430f753 (diff) |
ASoC: Add input and output AIF widgets
Currently DAPM interfaces with the audio streams to and from the
processor at the DAC and ADC widgets. As the digital capabilities
of parts increases this is becoming a less and less able to meet
the needs of parts.
To meet the needs of these devices create new widgets interfacing
with the TDM bus but not integrated into any other functionality.
Audio can then be routed to and from these widgets using existing
routing widgets.
A slot number is provided in the definition but this is currently
not used yet. This is intended to support devices which can use
more than one TDM slot on a single interface.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 35814ced2d22..338840510617 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -137,6 +137,12 @@ | |||
137 | .event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD} | 137 | .event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD} |
138 | 138 | ||
139 | /* stream domain */ | 139 | /* stream domain */ |
140 | #define SND_SOC_DAPM_AIF_IN(wname, stname, wslot, wreg, wshift, winvert) \ | ||
141 | { .id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \ | ||
142 | .reg = wreg, .shift = wshift, .invert = winvert } | ||
143 | #define SND_SOC_DAPM_AIF_OUT(wname, stname, wslot, wreg, wshift, winvert) \ | ||
144 | { .id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \ | ||
145 | .reg = wreg, .shift = wshift, .invert = winvert } | ||
140 | #define SND_SOC_DAPM_DAC(wname, stname, wreg, wshift, winvert) \ | 146 | #define SND_SOC_DAPM_DAC(wname, stname, wreg, wshift, winvert) \ |
141 | { .id = snd_soc_dapm_dac, .name = wname, .sname = stname, .reg = wreg, \ | 147 | { .id = snd_soc_dapm_dac, .name = wname, .sname = stname, .reg = wreg, \ |
142 | .shift = wshift, .invert = winvert} | 148 | .shift = wshift, .invert = winvert} |
@@ -312,6 +318,8 @@ enum snd_soc_dapm_type { | |||
312 | snd_soc_dapm_pre, /* machine specific pre widget - exec first */ | 318 | snd_soc_dapm_pre, /* machine specific pre widget - exec first */ |
313 | snd_soc_dapm_post, /* machine specific post widget - exec last */ | 319 | snd_soc_dapm_post, /* machine specific post widget - exec last */ |
314 | snd_soc_dapm_supply, /* power/clock supply */ | 320 | snd_soc_dapm_supply, /* power/clock supply */ |
321 | snd_soc_dapm_aif_in, /* audio interface input */ | ||
322 | snd_soc_dapm_aif_out, /* audio interface output */ | ||
315 | }; | 323 | }; |
316 | 324 | ||
317 | /* | 325 | /* |