]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: add .of_xlate_dai_name on snd_soc_component_driver
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 11 Sep 2013 00:39:56 +0000 (17:39 -0700)
committerMark Brown <broonie@linaro.org>
Tue, 17 Sep 2013 12:07:13 +0000 (13:07 +0100)
commitb8118f8e787a5635946f9712a07f316464f74117
tree695f7c4d498fcff11d28285c1f5ea1642d903a81
parent363608d959a742b061ece2f1c2d046821fe1c033
ASoC: add .of_xlate_dai_name on snd_soc_component_driver

ASoC sound driver requires CPU/CODEC drivers for probing,
and each CPU/CODEC has some DAI on it.
Then, "dai name matching" have been used to identify
CPU-CODEC DAI pair on ASoC.

But, the "dai port number matching" is now required from DeviceTree.
The solution of this issue is to replace
the dai port number into dai name.
Now, CPU/CODEC are based on struct snd_soc_component,
and it can care above as common issue.

This patch adds .of_xlate_dai_name callback interface
on struct snd_soc_component_driver,
and snd_soc_of_get_dai_name() which is using .of_xlate_dai_name.

Then, #sound-dai-cells which enables DAI specifier is required
on CPU/CODEC device tree properties.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-core.c