diff options
author | KaiChieh Chuang <kaichieh.chuang@mediatek.com> | 2018-06-29 15:29:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-29 15:31:52 +0300 |
commit | f11c5db770ab675d270cb4d5a2bb90923066ef49 (patch) | |
tree | 220e382d2199d4f941b7b2d89e276ae5ea370f71 /sound/soc/mediatek/common/mtk-base-afe.h | |
parent | 0a94cf3457408058f894cc4d95e58d8e18eb7f75 (diff) | |
download | linux-f11c5db770ab675d270cb4d5a2bb90923066ef49.tar.xz |
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.h | 6 |
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 |