ASoC: add snd_soc_of_get_dai_name() default of_xlate
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 17 Oct 2013 05:05:26 +0000 (22:05 -0700)
committerMark Brown <broonie@linaro.org>
Thu, 17 Oct 2013 23:43:32 +0000 (00:43 +0100)
commit6833c452c2fb47353566aa705d68541c6045c796
treee729fe7bf43a71b506b8545370682871f9ac06d4
parent7cc302d231aae87a08909ae40cdf36dfe7bb5102
ASoC: add snd_soc_of_get_dai_name() default of_xlate

Current snd_soc_of_get_dai_name() needs .of_xlate_dai_name()
callback on each component drivers.
But required behavior on almost all these drivers is
just returns its indexed driver's name.

This patch adds this feature as default behavior.
.of_xlate_dai_name() can overwrite it.

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