1
0
Fork 0
alistair23-linux/sound/soc
Daniel Baluta da85e842dc LF-537-10 ASoC: simple-card: Don't create separate link when platform is present
In normal sound case all DAIs are detected as CPU-Codec.
simple_dai_link_of supports the presence of a platform but it counts
it as a CPU DAI resulting in the creation of an extra link.

Adding a platform property to a link description like:

simple-audio-card,dai-link {
	cpu {
		sound-dai = <&sai1>;
	};
	plat {
		sound-dai = <&dsp>;
	};
	codec {
		sound-dai = <&wm8960>;
	}

will result in the creation of two links:
	* sai1 <-> wm8960
	* dsp  <-> wm8960

which is obviously not what we want. We just want one single link
with:
	* sai1 <-> wm8960 (and platform set to dsp).

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20191209135353.17427-1-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-12-18 11:39:24 +02:00
..
adi treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
amd Merge branch 'asoc-5.4' into asoc-next 2019-09-15 10:31:44 +01:00
atmel Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
au1x ASoC: au1x: psc-i2s: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:12:25 +01:00
bcm Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
cirrus ASoC: ep93xx: use devm_platform_ioremap_resource() to simplify code 2019-09-04 13:48:22 +01:00
codecs Merge remote-tracking branch 'origin/audio/sai' into audio/next 2019-12-02 18:00:43 +08:00
dwc treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
fsl LF-215-2: ASoC: fsl_rpmsg_i2s: Fix suspend failure in free run mode 2019-12-12 19:21:31 +08:00
generic LF-537-10 ASoC: simple-card: Don't create separate link when platform is present 2019-12-18 11:39:24 +02:00
hisilicon treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 340 2019-06-05 17:37:07 +02:00
img treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
intel ASoC: Fixes for v5.4 2019-10-21 14:05:26 +02:00
jz4740 ASoC: jz4740: Drop lb60 board code 2019-07-30 10:41:53 -07:00
kirkwood Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
mediatek Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
meson Merge branch 'asoc-5.3' into asoc-linus 2019-09-15 10:31:42 +01:00
mxs Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
pxa ASoC: mmp-sspa: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:10:54 +01:00
qcom Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
rockchip ASoC: Fixes for v5.4 2019-11-07 13:52:17 +01:00
samsung ASoC: samsung: arndale: Add missing OF node dereferencing 2019-09-23 14:14:35 -07:00
sh ASoC: rsnd: dma: fix SSI9 4/5/6/7 busif dma address 2019-10-23 18:20:55 +01:00
sirf ASoC: sirf: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:05:39 +01:00
sof LF-537-6 ASoC: SOF: imx8: Fix dsp_box offset 2019-12-18 11:38:50 +02:00
spear ASoC: spear: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:06:18 +01:00
sprd Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
sti Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
stm Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
sunxi Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
tegra ASoC: tegra: use devm_platform_ioremap_resource() to simplify code 2019-09-04 13:48:50 +01:00
ti ASoC: Fixes for v5.4 2019-11-07 13:52:17 +01:00
txx9 Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
uniphier Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
ux500 ASoC: ux500: mop500: consider CPU-Platform possibility 2019-06-28 15:19:55 +01:00
xilinx Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
xtensa Revert "ASoC: Remove dev_err() usage after platform_get_irq()" 2019-11-25 15:53:33 +08:00
zte ASoC: zx-tdm: remove redundant assignment to ts_width on error return path 2019-08-01 13:56:26 +01:00
Kconfig ASoC: remove w90x900/nuc900 platform drivers 2019-08-12 14:00:29 +01:00
Makefile ASoC: remove w90x900/nuc900 platform drivers 2019-08-12 14:00:29 +01:00
soc-ac97.c
soc-acpi.c ASoC: soc-acpi: fix implicit header use of module.h/export.h 2019-05-08 18:06:28 +09:00
soc-component.c ASoC: soc-component: add snd_soc_pcm_component_pcm_free() 2019-08-05 16:27:16 +01:00
soc-compress.c ASoC: core: Move pcm_mutex up to card level from snd_soc_pcm_runtime 2019-08-15 15:07:43 +01:00
soc-core.c ASoC: soc-core: Set dpcm_playback / dpcm_capture 2019-11-27 22:01:55 +02:00
soc-dai.c ASoC: soc-dai: move snd_soc_dai_stream_valid() to soc-dai.c 2019-07-23 18:14:26 +01:00
soc-dapm.c ASoC: soc-core: add snd_soc_dapm_init() 2019-09-02 13:21:20 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Replace strncpy() with strscpy_pad() for pcm->name 2019-09-11 15:55:28 +01:00
soc-io.c
soc-jack.c ASoC: add soc-component.c 2019-08-05 16:16:19 +01:00
soc-ops.c
soc-pcm.c ASoC: soc-pcm: check symmetry before hw_params 2019-12-17 17:58:21 +08:00
soc-topology.c ASoC: Fixes for v5.4 2019-10-21 14:05:26 +02:00
soc-utils.c ASoC: add soc-component.c 2019-08-05 16:16:19 +01:00