aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2011-01-13 12:18:52 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-13 18:28:01 -0500
commit4e10bda05d6c7d4aba509bbbab5ba748d54c702f (patch)
tree835a29f06d1d043618b06da9a10aba0a6fc0fb52 /include/sound/soc.h
parent150dd2f8c42bdb3c51533459e3ff5075d8720260 (diff)
ASoC: soc core add inline to handle card list initialzation
Currently the soc_probe initializes the card hence it does the card list initialzation. But if machines directly register the card they would need to do these steps, so putting them as inline would save lot of code This patch adds an inline to do list initialzation Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Harsha Priya <harsha.priya@intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index accb8a16c165..541ddfaa1243 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -779,6 +779,16 @@ static inline void *snd_soc_pcm_get_drvdata(struct snd_soc_pcm_runtime *rtd)
779 return dev_get_drvdata(&rtd->dev); 779 return dev_get_drvdata(&rtd->dev);
780} 780}
781 781
782static inline void snd_soc_initialize_card_lists(struct snd_soc_card *card)
783{
784 INIT_LIST_HEAD(&card->dai_dev_list);
785 INIT_LIST_HEAD(&card->codec_dev_list);
786 INIT_LIST_HEAD(&card->platform_dev_list);
787 INIT_LIST_HEAD(&card->widgets);
788 INIT_LIST_HEAD(&card->paths);
789 INIT_LIST_HEAD(&card->dapm_list);
790}
791
782#include <sound/soc-dai.h> 792#include <sound/soc-dai.h>
783 793
784#ifdef CONFIG_DEBUG_FS 794#ifdef CONFIG_DEBUG_FS