summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/common/mtk-base-afe.h
diff options
context:
space:
mode:
authorKaiChieh Chuang <kaichieh.chuang@mediatek.com>2018-06-29 20:29:44 +0800
committerMark Brown <broonie@kernel.org>2018-06-29 13:31:52 +0100
commitf11c5db770ab675d270cb4d5a2bb90923066ef49 (patch)
tree220e382d2199d4f941b7b2d89e276ae5ea370f71 /sound/soc/mediatek/common/mtk-base-afe.h
parent0a94cf3457408058f894cc4d95e58d8e18eb7f75 (diff)
downloadlinux-f11c5db770ab675d270cb4d5a2bb90923066ef49.tar.bz2
ASoC: mediatek: sub dai use list_head
use list_head for sub_dais, since original sub_dais array is sparsely occupied Signed-off-by: KaiChieh Chuang <kaichieh.chuang@mediatek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/common/mtk-base-afe.h')
-rw-r--r--sound/soc/mediatek/common/mtk-base-afe.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/mediatek/common/mtk-base-afe.h b/sound/soc/mediatek/common/mtk-base-afe.h
index bcf562f029b6..bd8d5e0c6843 100644
--- a/sound/soc/mediatek/common/mtk-base-afe.h
+++ b/sound/soc/mediatek/common/mtk-base-afe.h
@@ -46,6 +46,7 @@ struct mtk_base_irq_data {
};
struct device;
+struct list_head;
struct mtk_base_afe_memif;
struct mtk_base_afe_irq;
struct mtk_base_afe_dai;
@@ -72,8 +73,7 @@ struct mtk_base_afe {
struct mtk_base_afe_irq *irqs;
int irqs_size;
- struct mtk_base_afe_dai *sub_dais;
- int num_sub_dais;
+ struct list_head sub_dais;
struct snd_soc_dai_driver *dai_drivers;
unsigned int num_dai_drivers;
@@ -110,6 +110,8 @@ struct mtk_base_afe_dai {
unsigned int num_dapm_widgets;
const struct snd_soc_dapm_route *dapm_routes;
unsigned int num_dapm_routes;
+
+ struct list_head list;
};
#endif