aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-05-06 03:39:37 -0400
committerMark Brown <broonie@linaro.org>2014-05-07 05:21:25 -0400
commit24faf7656800afa0e0d882f950502c5c03f4b7f0 (patch)
tree97166e2ae32fcd6e9202e2ed49e67182b9dd05f3
parent387f837b3d9f9a989ae9a6deab543e1948b58ce8 (diff)
ASoC: Remove card's DAI list
Commit f0fba2ad1 ("ASoC: multi-component - ASoC Multi-Component Support") added a per card list that keeps track of all the DAIs that have been registered with the card, but the list has never been used. This patch removes it again. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--include/sound/soc-dai.h1
-rw-r--r--include/sound/soc.h2
-rw-r--r--sound/soc/soc-core.c5
3 files changed, 0 insertions, 8 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index fad76769f153..e2c3e45d0656 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -277,7 +277,6 @@ struct snd_soc_dai {
277 struct snd_soc_card *card; 277 struct snd_soc_card *card;
278 278
279 struct list_head list; 279 struct list_head list;
280 struct list_head card_list;
281}; 280};
282 281
283static inline void *snd_soc_dai_get_dma_data(const struct snd_soc_dai *dai, 282static inline void *snd_soc_dai_get_dma_data(const struct snd_soc_dai *dai,
diff --git a/include/sound/soc.h b/include/sound/soc.h
index e84f22f89765..96d073fe7cd2 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1021,7 +1021,6 @@ struct snd_soc_card {
1021 /* lists of probed devices belonging to this card */ 1021 /* lists of probed devices belonging to this card */
1022 struct list_head codec_dev_list; 1022 struct list_head codec_dev_list;
1023 struct list_head platform_dev_list; 1023 struct list_head platform_dev_list;
1024 struct list_head dai_dev_list;
1025 1024
1026 struct list_head widgets; 1025 struct list_head widgets;
1027 struct list_head paths; 1026 struct list_head paths;
@@ -1207,7 +1206,6 @@ static inline void *snd_soc_pcm_get_drvdata(struct snd_soc_pcm_runtime *rtd)
1207 1206
1208static inline void snd_soc_initialize_card_lists(struct snd_soc_card *card) 1207static inline void snd_soc_initialize_card_lists(struct snd_soc_card *card)
1209{ 1208{
1210 INIT_LIST_HEAD(&card->dai_dev_list);
1211 INIT_LIST_HEAD(&card->codec_dev_list); 1209 INIT_LIST_HEAD(&card->codec_dev_list);
1212 INIT_LIST_HEAD(&card->platform_dev_list); 1210 INIT_LIST_HEAD(&card->platform_dev_list);
1213 INIT_LIST_HEAD(&card->widgets); 1211 INIT_LIST_HEAD(&card->widgets);
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 520d2489d23c..ada7cbc9fb94 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1017,7 +1017,6 @@ static void soc_remove_codec_dai(struct snd_soc_dai *codec_dai, int order)
1017 codec_dai->name, err); 1017 codec_dai->name, err);
1018 } 1018 }
1019 codec_dai->probed = 0; 1019 codec_dai->probed = 0;
1020 list_del(&codec_dai->card_list);
1021 } 1020 }
1022} 1021}
1023 1022
@@ -1049,7 +1048,6 @@ static void soc_remove_link_dais(struct snd_soc_card *card, int num, int order)
1049 cpu_dai->name, err); 1048 cpu_dai->name, err);
1050 } 1049 }
1051 cpu_dai->probed = 0; 1050 cpu_dai->probed = 0;
1052 list_del(&cpu_dai->card_list);
1053 1051
1054 if (!cpu_dai->codec) { 1052 if (!cpu_dai->codec) {
1055 snd_soc_dapm_free(&cpu_dai->dapm); 1053 snd_soc_dapm_free(&cpu_dai->dapm);
@@ -1405,7 +1403,6 @@ static int soc_probe_codec_dai(struct snd_soc_card *card,
1405 1403
1406 /* mark codec_dai as probed and add to card dai list */ 1404 /* mark codec_dai as probed and add to card dai list */
1407 codec_dai->probed = 1; 1405 codec_dai->probed = 1;
1408 list_add(&codec_dai->card_list, &card->dai_dev_list);
1409 } 1406 }
1410 1407
1411 return 0; 1408 return 0;
@@ -1490,8 +1487,6 @@ static int soc_probe_link_dais(struct snd_soc_card *card, int num, int order)
1490 } 1487 }
1491 } 1488 }
1492 cpu_dai->probed = 1; 1489 cpu_dai->probed = 1;
1493 /* mark cpu_dai as probed and add to card dai list */
1494 list_add(&cpu_dai->card_list, &card->dai_dev_list);
1495 } 1490 }
1496 1491
1497 /* probe the CODEC DAI */ 1492 /* probe the CODEC DAI */