xref: /linux/sound/soc/amd/Kconfig (revision 177bf8620cf4ed290ee170a6c5966adc0924b336)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "AMD"
3
4config SND_SOC_AMD_ACP
5	tristate "AMD Audio Coprocessor support"
6	help
7	 This option enables ACP DMA support on AMD platform.
8
9config SND_SOC_AMD_CZ_DA7219MX98357_MACH
10	tristate "AMD CZ support for DA7219, RT5682 and MAX9835"
11	select CLK_FIXED_FCH
12	select SND_SOC_DA7219
13	select SND_SOC_RT5682_I2C
14	select SND_SOC_MAX98357A
15	select SND_SOC_ADAU7002
16	select REGULATOR
17	depends on SND_SOC_AMD_ACP && I2C && GPIOLIB && ACPI
18	help
19	 This option enables machine driver for DA7219, RT5682 and MAX9835.
20
21config SND_SOC_AMD_CZ_RT5645_MACH
22	tristate "AMD CZ support for RT5645"
23	select SND_SOC_RT5645
24	depends on SND_SOC_AMD_ACP && I2C
25	help
26	 This option enables machine driver for rt5645.
27
28config SND_SOC_AMD_ST_ES8336_MACH
29	tristate "AMD ST support for ES8336"
30	select SND_SOC_ACPI if ACPI
31	select SND_SOC_ES8316
32	depends on SND_SOC_AMD_ACP && ACPI
33	depends on I2C
34	help
35	 This option enables machine driver for Jadeite platform
36	 using es8336 codec.
37	 Say m if you have such a device.
38	 If unsure select "N".
39
40config SND_SOC_AMD_ACP3x
41	tristate "AMD Audio Coprocessor-v3.x support"
42	depends on X86 && PCI
43	help
44	 This option enables ACP v3.x I2S support on AMD platform
45
46config SND_SOC_AMD_RV_RT5682_MACH
47	tristate "AMD RV support for RT5682"
48	select CLK_FIXED_FCH
49	select SND_SOC_RT5682_I2C
50	select SND_SOC_MAX98357A
51	select SND_SOC_CROS_EC_CODEC
52	select I2C_CROS_EC_TUNNEL
53	select SND_SOC_RT1015
54	select SND_SOC_RT1015P
55	depends on SND_SOC_AMD_ACP3x && I2C && CROS_EC && GPIOLIB
56	help
57	 This option enables machine driver for RT5682 and MAX9835.
58
59config SND_SOC_AMD_RENOIR
60	tristate "AMD Audio Coprocessor - Renoir support"
61	select SND_AMD_ACP_CONFIG
62	depends on X86 && PCI
63	help
64	 This option enables ACP support for Renoir platform
65
66config SND_SOC_AMD_RENOIR_MACH
67	tristate "AMD Renoir support for DMIC"
68	select SND_SOC_DMIC
69	depends on SND_SOC_AMD_RENOIR && GPIOLIB
70	help
71	 This option enables machine driver for DMIC
72
73config SND_SOC_AMD_ACP5x
74	tristate "AMD Audio Coprocessor-v5.x I2S support"
75	depends on X86 && PCI
76	select SND_AMD_ACP_CONFIG
77	help
78	 This option enables ACP v5.x support on AMD platform
79
80	 By enabling this flag build will trigger for ACP PCI driver,
81	 ACP DMA driver, CPU DAI driver.
82
83config SND_SOC_AMD_VANGOGH_MACH
84	tristate "AMD Vangogh support for NAU8821/CS35L41/MAX98388"
85	select SND_SOC_NAU8821
86	select SND_SOC_CS35L41_SPI
87	select SND_SOC_MAX98388
88	select SND_AMD_ACP_CONFIG
89	depends on SND_SOC_AMD_ACP5x && I2C && SPI_MASTER
90	help
91	  This option enables machine driver for Vangogh platform
92	  using NAU8821 and either CS35L41 or MAX98388 codecs.
93	  Say m if you have such a device.
94	  If unsure select "N".
95
96config SND_SOC_AMD_ACP6x
97	tristate "AMD Audio Coprocessor-v6.x Yellow Carp support"
98	select SND_AMD_ACP_CONFIG
99	depends on X86 && PCI
100	help
101	  This option enables Audio Coprocessor i.e ACP v6.x support on
102	  AMD Yellow Carp platform. By enabling this flag build will be
103	  triggered for ACP PCI driver, ACP PDM DMA driver.
104	  Say m if you have such a device.
105	  If unsure select "N".
106
107config SND_SOC_AMD_YC_MACH
108	tristate "AMD YC support for DMIC"
109	select SND_SOC_DMIC
110	depends on SND_SOC_AMD_ACP6x && ACPI
111	help
112	  This option enables machine driver for Yellow Carp platform
113	  using dmic. ACP IP has PDM Decoder block with DMA controller.
114	  DMIC can be connected directly to ACP IP.
115	  Say m if you have such a device.
116	  If unsure select "N".
117
118config SND_AMD_ACP_CONFIG
119	tristate "AMD ACP configuration selection"
120	select SND_SOC_ACPI if ACPI
121	help
122	 This option adds an auto detection to determine which ACP
123	 driver modules to use
124
125source "sound/soc/amd/acp/Kconfig"
126
127config SND_SOC_AMD_RPL_ACP6x
128        tristate "AMD Audio Coprocessor-v6.2 RPL support"
129        depends on X86 && PCI
130        help
131          This option enables Audio Coprocessor i.e. ACP v6.2 support on
132          AMD RPL platform. By enabling this flag build will be
133          triggered for ACP PCI driver.
134          Say m if you have such a device.
135          If unsure select "N".
136
137config SND_SOC_AMD_ACP63_TOPLEVEL
138	tristate "support for AMD platforms with ACP version >= 6.3"
139	default SND_AMD_ACP_CONFIG
140	depends on SND_AMD_ACP_CONFIG
141	depends on SOUNDWIRE_AMD || !SOUNDWIRE_AMD
142	depends on X86 || COMPILE_TEST
143	help
144	  This adds support for AMD platforms with ACP version >= 6.3.
145	  Say Y if you have such a device.
146	  If unsure select "N".
147
148if SND_SOC_AMD_ACP63_TOPLEVEL
149
150config SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
151	tristate
152	select SND_AMD_SOUNDWIRE_ACPI if ACPI
153
154config SND_SOC_AMD_SOUNDWIRE
155	tristate "Support for SoundWire based AMD platforms"
156	default SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
157	depends on SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
158	depends on ACPI
159	depends on SOUNDWIRE_AMD
160	help
161	  This adds support for SoundWire for AMD platforms.
162	  Say Y if you want to enable SoundWire links with SOF.
163	  If unsure select "N".
164
165config SND_SOC_AMD_PS
166        tristate "AMD Audio Coprocessor-v6.3/v7.0/v7.1 support"
167	select SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
168	select SND_SOC_ACPI_AMD_MATCH
169        depends on X86 && PCI && ACPI
170        help
171	  This option enables Audio Coprocessor i.e ACP6.3/ACP7.0/ACP7.1
172	  variants support. By enabling this flag build will be triggered
173	  for ACP PCI driver, ACP PDM DMA driver, ACP SoundWire DMA
174	  driver.
175          Say m if you have such a device.
176          If unsure select "N".
177
178config SND_SOC_AMD_PS_MACH
179        tristate "AMD PINK SARDINE support for DMIC"
180        select SND_SOC_DMIC
181        depends on SND_SOC_AMD_PS
182        help
183          This option enables machine driver for Pink Sardine platform
184          using dmic. ACP IP has PDM Decoder block with DMA controller.
185          DMIC can be connected directly to ACP IP.
186          Say m if you have such a device.
187          If unsure select "N".
188
189endif
190endmenu
191