]> Pileus Git - ~andy/linux/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)
commitcb470087669a3fab1958fec79dd7db280b33f178
tree695f7c4d498fcff11d28285c1f5ea1642d903a81
parentd191bd8de8c61619563f2b19f1fdcc0944ff1a72
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