aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-12 17:15:10 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-13 13:02:17 -0400
commit556e4fb1d801b0f977b1522e14fb06e2f3059f4c (patch)
tree84ccd76fc27856d7616797221c5771a4d7c3dfbb /sound/soc/samsung
parentea0e60de385a984ab54d6694b03119d1706f548e (diff)
ASoC: Add stub baseband link on Speyside
Demonstrate the connection of a baseband to the system. We add a DAI for the link to the baseband. This will become visible to the application layer - audio should be started from the application layer using an application such as this: http://opensource.wolfsonmicro.com/~gg/bluetooth-pcm/bluetooth_pcm.c which starts up audio as for CPU based playback and record up to the point where data is streamed. Due to non-availability of baseband simulation hardware we reuse the configuration for the CPU link with the CODEC acting as clock master, allowing signals to be observed with a scope. A more standard system would have separate configuration for the baseband with its own ops structure and operations. Normally the baseband would be clock master as the baseband audio will be synchronised to the external telephony network. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r--sound/soc/samsung/speyside.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c
index e171a321889f..a0c14a87e23d 100644
--- a/sound/soc/samsung/speyside.c
+++ b/sound/soc/samsung/speyside.c
@@ -164,6 +164,15 @@ static struct snd_soc_dai_link speyside_dai[] = {
164 .init = speyside_wm8915_init, 164 .init = speyside_wm8915_init,
165 .ops = &speyside_ops, 165 .ops = &speyside_ops,
166 }, 166 },
167 {
168 .name = "Baseband",
169 .stream_name = "Baseband",
170 .cpu_dai_name = "wm8915-aif2",
171 .codec_dai_name = "wm1250-ev1",
172 .codec_name = "wm1250-ev1.1-0027",
173 .platform_name = "samsung-audio",
174 .ops = &speyside_ops,
175 },
167}; 176};
168 177
169static int speyside_wm9081_init(struct snd_soc_dapm_context *dapm) 178static int speyside_wm9081_init(struct snd_soc_dapm_context *dapm)
@@ -194,6 +203,8 @@ static const struct snd_kcontrol_new controls[] = {
194 SOC_DAPM_PIN_SWITCH("Main Speaker"), 203 SOC_DAPM_PIN_SWITCH("Main Speaker"),
195 SOC_DAPM_PIN_SWITCH("Main DMIC"), 204 SOC_DAPM_PIN_SWITCH("Main DMIC"),
196 SOC_DAPM_PIN_SWITCH("Main AMIC"), 205 SOC_DAPM_PIN_SWITCH("Main AMIC"),
206 SOC_DAPM_PIN_SWITCH("WM1250 Input"),
207 SOC_DAPM_PIN_SWITCH("WM1250 Output"),
197}; 208};
198 209
199static struct snd_soc_dapm_widget widgets[] = { 210static struct snd_soc_dapm_widget widgets[] = {