linux_dsm_epyc7002/sound/soc
Stephen Warren bc92657a11 ASoC: make snd_soc_dai_link more symmetrical
Prior to this patch, the CPU side of a DAI link was specified using a
single name. Often, this was the result of calling dev_name() on the
device providing the DAI, but in the case of a CPU DAI driver that
provided multiple DAIs, it needed to mix together both the device name
and some device-relative name, in order to form a single globally unique
name.

However, the CODEC side of the DAI link was specified using separate
fields for device (name or OF node) and device-relative DAI name.

This patch allows the CPU side of a DAI link to be specified in the same
way as the CODEC side, separating concepts of device and device-relative
DAI name.

I believe this will be important in multi-codec and/or dynamic PCM
scenarios, where a single CPU driver provides multiple DAIs, while also
booting using device tree, with accompanying desire not to hard-code the
CPU side device's name into the original .cpu_dai_name field.

Ideally, both the CPU DAI and CODEC DAI loops in soc_bind_dai_link()
would now be identical. However, two things prevent that at present:

1) The need to save rtd->codec for the CODEC side, which means we have
to search for the CODEC explicitly, and not just the CODEC side DAI.

2) Since we know the CODEC side DAI is part of a codec, and not just
a standalone DAI, it's slightly more efficient to convert .codec_name/
.codec_of_node into a codec first, and then compare each DAI's .codec
field, since this avoids strcmp() on each DAI's CODEC's name within
the loop.

However, the two loops are essentially semantically equivalent.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-06-03 13:06:41 +01:00
..
atmel ASoC: Convert afeb9260 to table based DAPM init 2012-02-01 21:52:54 +00:00
au1x Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2012-01-14 13:05:21 -08:00
blackfin Linux 3.4-rc7 2012-05-13 13:32:54 +01:00
codecs ASoC: wm2000: Add register readability information 2012-06-03 13:06:40 +01:00
davinci ASoC: replace 0xffffffff with DMA_BIT_MASK macro 2012-01-20 13:58:26 +00:00
ep93xx ASoC: ep93xx-i2s: use devm_* helpers to cleanup probe 2012-04-01 11:28:29 +01:00
fsl Sound fixes for 3.5-rc1 2012-06-01 15:39:26 -07:00
generic ASoC: add generic simple-card support 2012-04-13 11:29:25 +01:00
jz4740 ASoC: JZ4740: Replaced comma operators with semicolons. 2012-04-06 18:22:05 +01:00
kirkwood ARM: Orion: Audio: Add clk/clkdev support 2012-05-08 16:34:03 -07:00
mid-x86 ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
mxs ASoC: make snd_soc_dai_link more symmetrical 2012-06-03 13:06:41 +01:00
nuc900 Merge branch 'master' into fixes 2012-01-13 15:00:22 +00:00
omap ASoC: OMAP: HDMI: Rename sound card source file 2012-05-22 17:33:24 +01:00
pxa ASoC: pxa: allocate the SSP DMA parameters in startup 2012-05-07 12:55:35 +01:00
s6000 ASoC: use proper defines for stream directions in pcm engines 2012-01-20 13:58:25 +00:00
samsung Linux 3.4-rc7 2012-05-13 13:32:54 +01:00
sh ASoC: fsi: use PIO handler if DMA handler was invalid 2012-06-03 13:06:39 +01:00
tegra ASoC: make snd_soc_dai_link more symmetrical 2012-06-03 13:06:41 +01:00
txx9 dmaengine/dma_slave: introduce inline wrappers 2012-03-21 19:20:22 +05:30
ux500 ASoC: Ux500: Add platform-driver 2012-06-03 13:06:38 +01:00
Kconfig ASoC: Ux500: Add MSP I2S-driver 2012-05-09 12:52:59 +01:00
Makefile ASoC: Ux500: Add MSP I2S-driver 2012-05-09 12:52:59 +01:00
soc-cache.c ASoC: Remove rbtree register cache 2011-12-13 00:20:28 +08:00
soc-core.c ASoC: make snd_soc_dai_link more symmetrical 2012-06-03 13:06:41 +01:00
soc-dapm.c ASoC: core: Add widget SND_SOC_DAPM_CLOCK_SUPPLY 2012-06-03 13:06:38 +01:00
soc-dmaengine-pcm.c ASoC: dmaengine_pcm: use dmaengine cyclic wrapper 2012-03-26 18:28:11 +01:00
soc-io.c ASoC: io: Use dev_get_regmap() if driver doesn't provide a regmap 2012-06-03 13:06:41 +01:00
soc-jack.c ASoC: jack: Push locking for jacks down to the jack 2012-04-01 11:28:23 +01:00
soc-pcm.c ASoC: pcm: Staticise non-exported functions 2012-05-10 10:37:19 +01:00
soc-utils.c ASoC: utils - Add support for a dummy codec driver. 2012-01-20 13:58:27 +00:00