forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/meson/Kconfig
....@@ -1,9 +1,22 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 menu "ASoC support for Amlogic platforms"
23 depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK)
4
+
5
+config SND_MESON_AIU
6
+ tristate "Amlogic AIU"
7
+ select SND_MESON_CODEC_GLUE
8
+ select SND_PCM_IEC958
9
+ imply SND_SOC_MESON_T9015
10
+ imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI
11
+ help
12
+ Select Y or M to add support for the Audio output subsystem found
13
+ in the Amlogic Meson8, Meson8b and GX SoC families
314
415 config SND_MESON_AXG_FIFO
516 tristate
617 select REGMAP_MMIO
18
+ imply COMMON_CLK_AXG_AUDIO
19
+ imply RESET_MESON_AUDIO_ARB
720
821 config SND_MESON_AXG_FRDDR
922 tristate "Amlogic AXG Playback FIFO support"
....@@ -22,6 +35,7 @@
2235 config SND_MESON_AXG_TDM_FORMATTER
2336 tristate
2437 select REGMAP_MMIO
38
+ imply COMMON_CLK_AXG_AUDIO
2539
2640 config SND_MESON_AXG_TDM_INTERFACE
2741 tristate
....@@ -46,11 +60,16 @@
4660 config SND_MESON_AXG_SOUND_CARD
4761 tristate "Amlogic AXG Sound Card Support"
4862 select SND_MESON_AXG_TDM_INTERFACE
63
+ select SND_MESON_CARD_UTILS
4964 imply SND_MESON_AXG_FRDDR
5065 imply SND_MESON_AXG_TODDR
5166 imply SND_MESON_AXG_TDMIN
5267 imply SND_MESON_AXG_TDMOUT
5368 imply SND_MESON_AXG_SPDIFOUT
69
+ imply SND_MESON_AXG_SPDIFIN
70
+ imply SND_MESON_AXG_PDM
71
+ imply SND_MESON_G12A_TOACODEC
72
+ imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
5473 help
5574 Select Y or M to add support for the AXG SoC sound card
5675
....@@ -58,8 +77,61 @@
5877 tristate "Amlogic AXG SPDIF Output Support"
5978 select SND_PCM_IEC958
6079 imply SND_SOC_SPDIF
80
+ imply COMMON_CLK_AXG_AUDIO
6181 help
6282 Select Y or M to add support for SPDIF output serializer embedded
6383 in the Amlogic AXG SoC family
6484
85
+config SND_MESON_AXG_SPDIFIN
86
+ tristate "Amlogic AXG SPDIF Input Support"
87
+ imply SND_SOC_SPDIF
88
+ help
89
+ Select Y or M to add support for SPDIF input embedded
90
+ in the Amlogic AXG SoC family
91
+
92
+config SND_MESON_AXG_PDM
93
+ tristate "Amlogic AXG PDM Input Support"
94
+ imply SND_SOC_DMIC
95
+ imply COMMON_CLK_AXG_AUDIO
96
+ help
97
+ Select Y or M to add support for PDM input embedded
98
+ in the Amlogic AXG SoC family
99
+
100
+config SND_MESON_CARD_UTILS
101
+ tristate
102
+
103
+config SND_MESON_CODEC_GLUE
104
+ tristate
105
+
106
+config SND_MESON_GX_SOUND_CARD
107
+ tristate "Amlogic GX Sound Card Support"
108
+ select SND_MESON_CARD_UTILS
109
+ imply SND_MESON_AIU
110
+ help
111
+ Select Y or M to add support for the GXBB/GXL SoC sound card
112
+
113
+config SND_MESON_G12A_TOACODEC
114
+ tristate "Amlogic G12A To Internal DAC Control Support"
115
+ select SND_MESON_CODEC_GLUE
116
+ select REGMAP_MMIO
117
+ imply SND_SOC_MESON_T9015
118
+ help
119
+ Select Y or M to add support for the internal audio DAC on the
120
+ g12a SoC family
121
+
122
+config SND_MESON_G12A_TOHDMITX
123
+ tristate "Amlogic G12A To HDMI TX Control Support"
124
+ select REGMAP_MMIO
125
+ select SND_MESON_CODEC_GLUE
126
+ imply SND_SOC_HDMI_CODEC
127
+ help
128
+ Select Y or M to add support for HDMI audio on the g12a SoC
129
+ family
130
+
131
+config SND_SOC_MESON_T9015
132
+ tristate "Amlogic T9015 DAC"
133
+ select REGMAP_MMIO
134
+ help
135
+ Say Y or M if you want to add support for the internal DAC found
136
+ on GXL, G12 and SM1 SoC family.
65137 endmenu