aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-04-16 08:46:22 -0400
committerMark Brown <broonie@linaro.org>2014-04-18 13:00:46 -0400
commitdc568f876ad5d2962309c3d41dae879637de37de (patch)
tree1beab88777e2db381817d832c48e236db92aaa55
parent25bed461f96f883830b249ed1b1d6eb5d3930537 (diff)
ASoC: omap-twl4030: Use the same name/node for platform as the cpu_dai
Now that the platform driver is registered with the cpu_dai's device we can use the same name/node for it. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/omap/omap-twl4030.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c
index 6a8d6b5f160d..0c83e206e957 100644
--- a/sound/soc/omap/omap-twl4030.c
+++ b/sound/soc/omap/omap-twl4030.c
@@ -239,7 +239,7 @@ static struct snd_soc_dai_link omap_twl4030_dai_links[] = {
239 .stream_name = "TWL4030 HiFi", 239 .stream_name = "TWL4030 HiFi",
240 .cpu_dai_name = "omap-mcbsp.2", 240 .cpu_dai_name = "omap-mcbsp.2",
241 .codec_dai_name = "twl4030-hifi", 241 .codec_dai_name = "twl4030-hifi",
242 .platform_name = "omap-pcm-audio", 242 .platform_name = "omap-mcbsp.2",
243 .codec_name = "twl4030-codec", 243 .codec_name = "twl4030-codec",
244 .init = omap_twl4030_init, 244 .init = omap_twl4030_init,
245 .ops = &omap_twl4030_ops, 245 .ops = &omap_twl4030_ops,
@@ -249,7 +249,7 @@ static struct snd_soc_dai_link omap_twl4030_dai_links[] = {
249 .stream_name = "TWL4030 Voice", 249 .stream_name = "TWL4030 Voice",
250 .cpu_dai_name = "omap-mcbsp.3", 250 .cpu_dai_name = "omap-mcbsp.3",
251 .codec_dai_name = "twl4030-voice", 251 .codec_dai_name = "twl4030-voice",
252 .platform_name = "omap-pcm-audio", 252 .platform_name = "omap-mcbsp.2",
253 .codec_name = "twl4030-codec", 253 .codec_name = "twl4030-codec",
254 .dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF | 254 .dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF |
255 SND_SOC_DAIFMT_CBM_CFM, 255 SND_SOC_DAIFMT_CBM_CFM,
@@ -299,12 +299,18 @@ static int omap_twl4030_probe(struct platform_device *pdev)
299 omap_twl4030_dai_links[0].cpu_dai_name = NULL; 299 omap_twl4030_dai_links[0].cpu_dai_name = NULL;
300 omap_twl4030_dai_links[0].cpu_of_node = dai_node; 300 omap_twl4030_dai_links[0].cpu_of_node = dai_node;
301 301
302 omap_twl4030_dai_links[0].platform_name = NULL;
303 omap_twl4030_dai_links[0].platform_of_node = dai_node;
304
302 dai_node = of_parse_phandle(node, "ti,mcbsp-voice", 0); 305 dai_node = of_parse_phandle(node, "ti,mcbsp-voice", 0);
303 if (!dai_node) { 306 if (!dai_node) {
304 card->num_links = 1; 307 card->num_links = 1;
305 } else { 308 } else {
306 omap_twl4030_dai_links[1].cpu_dai_name = NULL; 309 omap_twl4030_dai_links[1].cpu_dai_name = NULL;
307 omap_twl4030_dai_links[1].cpu_of_node = dai_node; 310 omap_twl4030_dai_links[1].cpu_of_node = dai_node;
311
312 omap_twl4030_dai_links[1].platform_name = NULL;
313 omap_twl4030_dai_links[1].platform_of_node = dai_node;
308 } 314 }
309 315
310 priv->jack_detect = of_get_named_gpio(node, 316 priv->jack_detect = of_get_named_gpio(node,