File tree Expand file tree Collapse file tree 5 files changed +318
-425
lines changed Expand file tree Collapse file tree 5 files changed +318
-425
lines changed Original file line number Diff line number Diff line change
1
+ config SND_SOC_MEDIATEK
2
+ tristate
3
+
1
4
config SND_SOC_MT8173
2
5
tristate "ASoC support for Mediatek MT8173 chip"
3
6
depends on ARCH_MEDIATEK
7
+ select SND_SOC_MEDIATEK
4
8
help
5
9
This adds ASoC platform driver support for Mediatek MT8173 chip
6
10
that can be used with other codecs.
Original file line number Diff line number Diff line change 1
- # 8173 Machine support
1
+ obj-$(CONFIG_SND_SOC_MEDIATEK) += common/
2
2
obj-$(CONFIG_SND_SOC_MT8173) += mt8173/
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (C) 2015 MediaTek Inc.
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License version 2 as
6
+ # published by the Free Software Foundation.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+
14
+ # platform driver
15
+ snd-soc-mtk-common-objs := mtk-afe-platform-driver.o mtk-afe-fe-dai.o
16
+ obj-$(CONFIG_SND_SOC_MEDIATEK) += snd-soc-mtk-common.o
Original file line number Diff line number Diff line change @@ -46,14 +46,13 @@ enum {
46
46
};
47
47
48
48
enum {
49
- MT8173_AFE_IRQ_1 ,
50
- MT8173_AFE_IRQ_2 ,
51
- MT8173_AFE_IRQ_3 ,
52
- MT8173_AFE_IRQ_4 ,
53
- MT8173_AFE_IRQ_5 ,
54
- MT8173_AFE_IRQ_6 ,
55
- MT8173_AFE_IRQ_7 ,
56
- MT8173_AFE_IRQ_8 ,
49
+ MT8173_AFE_IRQ_DL1 ,
50
+ MT8173_AFE_IRQ_DL2 ,
51
+ MT8173_AFE_IRQ_VUL ,
52
+ MT8173_AFE_IRQ_DAI ,
53
+ MT8173_AFE_IRQ_AWB ,
54
+ MT8173_AFE_IRQ_MOD_DAI ,
55
+ MT8173_AFE_IRQ_HDMI ,
57
56
MT8173_AFE_IRQ_NUM ,
58
57
};
59
58
@@ -71,31 +70,4 @@ enum {
71
70
MT8173_CLK_NUM
72
71
};
73
72
74
- struct mt8173_afe ;
75
- struct snd_pcm_substream ;
76
-
77
- struct mt8173_afe_memif_data {
78
- int id ;
79
- const char * name ;
80
- int reg_ofs_base ;
81
- int reg_ofs_cur ;
82
- int fs_shift ;
83
- int mono_shift ;
84
- int enable_shift ;
85
- int irq_reg_cnt ;
86
- int irq_cnt_shift ;
87
- int irq_en_shift ;
88
- int irq_fs_shift ;
89
- int irq_clr_shift ;
90
- int msb_shift ;
91
- };
92
-
93
- struct mt8173_afe_memif {
94
- unsigned int phys_buf_addr ;
95
- int buffer_size ;
96
- struct snd_pcm_substream * substream ;
97
- const struct mt8173_afe_memif_data * data ;
98
- const struct mt8173_afe_irq_data * irqdata ;
99
- };
100
-
101
73
#endif
You can’t perform that action at this time.
0 commit comments