]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc37cf2135819b2b807b857215bca622f4fffb734
treee729fe7bf43a71b506b8545370682871f9ac06d4
parent4c4660d702975b631870617bf2ca0a75a6e70b83
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