diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-10-16 22:05:26 -0700 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-18 00:43:32 +0100 |
commit | 6833c452c2fb47353566aa705d68541c6045c796 (patch) | |
tree | e729fe7bf43a71b506b8545370682871f9ac06d4 /include/sound | |
parent | 7cc302d231aae87a08909ae40cdf36dfe7bb5102 (diff) | |
download | linux-6833c452c2fb47353566aa705d68541c6045c796.tar.gz linux-6833c452c2fb47353566aa705d68541c6045c796.tar.bz2 linux-6833c452c2fb47353566aa705d68541c6045c796.zip |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index b13eecbaea78..6ed3dc0773cc 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -644,10 +644,12 @@ struct snd_soc_component_driver { struct snd_soc_component { const char *name; int id; - int num_dai; struct device *dev; struct list_head list; + struct snd_soc_dai_driver *dai_drv; + int num_dai; + const struct snd_soc_component_driver *driver; }; |