1# SPDX-License-Identifier: GPL-2.0-only
2menu "HD-Audio"
3
4config SND_HDA
5	tristate
6	select SND_PCM
7	select SND_VMASTER
8	select SND_JACK
9	select SND_HDA_CORE
10
11config SND_HDA_GENERIC_LEDS
12       bool
13
14config SND_HDA_INTEL
15	tristate "HD Audio PCI"
16	depends on SND_PCI
17	select SND_HDA
18	select SND_INTEL_DSP_CONFIG
19	help
20	  Say Y here to include support for Intel "High Definition
21	  Audio" (Azalia) and its compatible devices.
22
23	  This option enables the HD-audio controller.  Don't forget
24	  to choose the appropriate codec options below.
25
26	  To compile this driver as a module, choose M here: the module
27	  will be called snd-hda-intel.
28
29config SND_HDA_TEGRA
30	tristate "NVIDIA Tegra HD Audio"
31	depends on ARCH_TEGRA
32	select SND_HDA
33	select SND_HDA_ALIGNED_MMIO
34	help
35	  Say Y here to support the HDA controller present in NVIDIA
36	  Tegra SoCs
37
38	  This options enables support for the HD Audio controller
39	  present in some NVIDIA Tegra SoCs, used to communicate audio
40	  to the HDMI output.
41
42	  To compile this driver as a module, choose M here: the module
43	  will be called snd-hda-tegra.
44
45if SND_HDA
46
47config SND_HDA_HWDEP
48	bool "Build hwdep interface for HD-audio driver"
49	select SND_HWDEP
50	help
51	  Say Y here to build a hwdep interface for HD-audio driver.
52	  This interface can be used for out-of-band communication
53	  with codecs for debugging purposes.
54
55config SND_HDA_RECONFIG
56	bool "Allow dynamic codec reconfiguration"
57	help
58	  Say Y here to enable the HD-audio codec re-configuration feature.
59	  It allows user to clear the whole codec configuration, change the
60	  codec setup, add extra verbs, and re-configure the codec dynamically.
61
62	  Note that this item alone doesn't provide the sysfs interface, but
63	  enables the feature just for the patch loader below.
64	  If you need the traditional sysfs entries for the manual interaction,
65	  turn on CONFIG_SND_HDA_HWDEP as well.
66
67config SND_HDA_INPUT_BEEP
68	bool "Support digital beep via input layer"
69	depends on INPUT=y || INPUT=SND_HDA
70	help
71	  Say Y here to build a digital beep interface for HD-audio
72	  driver. This interface is used to generate digital beeps.
73
74config SND_HDA_INPUT_BEEP_MODE
75	int "Digital beep registration mode (0=off, 1=on)"
76	depends on SND_HDA_INPUT_BEEP=y
77	default "1"
78	range 0 1
79	help
80	  Set 0 to disable the digital beep interface for HD-audio by default.
81	  Set 1 to always enable the digital beep interface for HD-audio by
82	  default.
83
84config SND_HDA_PATCH_LOADER
85	bool "Support initialization patch loading for HD-audio"
86	select FW_LOADER
87	select SND_HDA_RECONFIG
88	help
89	  Say Y here to allow the HD-audio driver to load a pseudo
90	  firmware file ("patch") for overriding the BIOS setup at
91	  start up.  The "patch" file can be specified via patch module
92	  option, such as patch=hda-init.
93
94config SND_HDA_CIRRUS_SCODEC
95	tristate
96
97config SND_HDA_CIRRUS_SCODEC_KUNIT_TEST
98	tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS
99	depends on SND_HDA_CIRRUS_SCODEC && GPIOLIB && KUNIT
100	default KUNIT_ALL_TESTS
101	help
102	  This builds KUnit tests for the cirrus side-codec library.
103	  For more information on KUnit and unit tests in general,
104	  please refer to the KUnit documentation in
105	  Documentation/dev-tools/kunit/.
106	  If in doubt, say "N".
107
108config SND_HDA_SCODEC_CS35L41
109	tristate
110	select SND_HDA_GENERIC
111	select REGMAP_IRQ
112
113config SND_HDA_CS_DSP_CONTROLS
114	tristate
115	select FW_CS_DSP
116
117config SND_HDA_SCODEC_COMPONENT
118	tristate
119
120config SND_HDA_SCODEC_CS35L41_I2C
121	tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
122	depends on I2C
123	depends on ACPI
124	depends on EFI
125	depends on SND_SOC
126	select SND_SOC_CS35L41_LIB
127	select SND_HDA_SCODEC_CS35L41
128	select SND_HDA_CS_DSP_CONTROLS
129	select SND_SOC_CS_AMP_LIB
130	help
131	  Say Y or M here to include CS35L41 I2C HD-audio side codec support
132	  in snd-hda-intel driver, such as ALC287.
133
134comment "Set to Y if you want auto-loading the side codec driver"
135	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m
136
137config SND_HDA_SCODEC_CS35L41_SPI
138	tristate "Build CS35L41 HD-audio codec support for SPI Bus"
139	depends on SPI_MASTER
140	depends on ACPI
141	depends on EFI
142	depends on SND_SOC
143	select SND_SOC_CS35L41_LIB
144	select SND_HDA_SCODEC_CS35L41
145	select SND_HDA_CS_DSP_CONTROLS
146	select SND_SOC_CS_AMP_LIB
147	help
148	  Say Y or M here to include CS35L41 SPI HD-audio side codec support
149	  in snd-hda-intel driver, such as ALC287.
150
151comment "Set to Y if you want auto-loading the side codec driver"
152	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m
153
154config SND_HDA_SCODEC_CS35L56
155	tristate
156
157config SND_HDA_SCODEC_CS35L56_I2C
158	tristate "Build CS35L56 HD-audio side codec support for I2C Bus"
159	depends on I2C
160	depends on ACPI || COMPILE_TEST
161	depends on SND_SOC
162	select FW_CS_DSP
163	imply SERIAL_MULTI_INSTANTIATE
164	select SND_HDA_GENERIC
165	select SND_SOC_CS35L56_SHARED
166	select SND_HDA_SCODEC_CS35L56
167	select SND_HDA_CIRRUS_SCODEC
168	select SND_HDA_CS_DSP_CONTROLS
169	select SND_SOC_CS_AMP_LIB
170	help
171	  Say Y or M here to include CS35L56 amplifier support with
172	  I2C control.
173
174config SND_HDA_SCODEC_CS35L56_SPI
175	tristate "Build CS35L56 HD-audio side codec support for SPI Bus"
176	depends on SPI_MASTER
177	depends on ACPI || COMPILE_TEST
178	depends on SND_SOC
179	select FW_CS_DSP
180	imply SERIAL_MULTI_INSTANTIATE
181	select SND_HDA_GENERIC
182	select SND_SOC_CS35L56_SHARED
183	select SND_HDA_SCODEC_CS35L56
184	select SND_HDA_CIRRUS_SCODEC
185	select SND_HDA_CS_DSP_CONTROLS
186	select SND_SOC_CS_AMP_LIB
187	help
188	  Say Y or M here to include CS35L56 amplifier support with
189	  SPI control.
190
191config SND_HDA_SCODEC_TAS2781_I2C
192	tristate "Build TAS2781 HD-audio side codec support for I2C Bus"
193	depends on I2C
194	depends on ACPI
195	depends on EFI
196	depends on SND_SOC
197	select SND_SOC_TAS2781_COMLIB
198	select SND_SOC_TAS2781_FMWLIB
199	select CRC32
200	help
201	  Say Y or M here to include TAS2781 I2C HD-audio side codec support
202	  in snd-hda-intel driver, such as ALC287.
203
204comment "Set to Y if you want auto-loading the side codec driver"
205	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m
206
207config SND_HDA_SCODEC_TAS2781_SPI
208	tristate "Build TAS2781 HD-audio side codec support for SPI Bus"
209	depends on SPI_MASTER
210	depends on ACPI
211	depends on EFI
212	depends on SND_SOC
213	select CRC32
214	help
215	  Say Y or M here to include TAS2781 SPI HD-audio side codec support
216	  in snd-hda-intel driver, such as ALC287.
217
218comment "Set to Y if you want auto-loading the side codec driver"
219	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_SPI=m
220
221config SND_HDA_CODEC_REALTEK
222	tristate "Build Realtek HD-audio codec support"
223	depends on INPUT
224	select SND_HDA_GENERIC
225	select SND_HDA_GENERIC_LEDS
226	select SND_HDA_SCODEC_COMPONENT
227	help
228	  Say Y or M here to include Realtek HD-audio codec support in
229	  snd-hda-intel driver, such as ALC880.
230
231comment "Set to Y if you want auto-loading the codec driver"
232	depends on SND_HDA=y && SND_HDA_CODEC_REALTEK=m
233
234config SND_HDA_CODEC_ANALOG
235	tristate "Build Analog Devices HD-audio codec support"
236	select SND_HDA_GENERIC
237	help
238	  Say Y or M here to include Analog Devices HD-audio codec support in
239	  snd-hda-intel driver, such as AD1986A.
240
241comment "Set to Y if you want auto-loading the codec driver"
242	depends on SND_HDA=y && SND_HDA_CODEC_ANALOG=m
243
244config SND_HDA_CODEC_SIGMATEL
245	tristate "Build IDT/Sigmatel HD-audio codec support"
246	select SND_HDA_GENERIC
247	select SND_HDA_GENERIC_LEDS
248	help
249	  Say Y or M here to include IDT (Sigmatel) HD-audio codec support in
250	  snd-hda-intel driver, such as STAC9200.
251
252comment "Set to Y if you want auto-loading the codec driver"
253	depends on SND_HDA=y && SND_HDA_CODEC_SIGMATEL=m
254
255config SND_HDA_CODEC_VIA
256	tristate "Build VIA HD-audio codec support"
257	select SND_HDA_GENERIC
258	help
259	  Say Y or M here to include VIA HD-audio codec support in
260	  snd-hda-intel driver, such as VT1708.
261
262comment "Set to Y if you want auto-loading the codec driver"
263	depends on SND_HDA=y && SND_HDA_CODEC_VIA=m
264
265config SND_HDA_CODEC_HDMI
266	tristate "Build HDMI/DisplayPort HD-audio codec support"
267	select SND_DYNAMIC_MINORS
268	help
269	  Say Y or M here to include HDMI and DisplayPort HD-audio codec
270	  support in snd-hda-intel driver.  This includes all AMD/ATI,
271	  Intel and Nvidia HDMI/DisplayPort codecs.
272
273	  Note that this option mandatorily enables CONFIG_SND_DYNAMIC_MINORS
274	  to assure the multiple streams for DP-MST support.
275
276comment "Set to Y if you want auto-loading the codec driver"
277	depends on SND_HDA=y && SND_HDA_CODEC_HDMI=m
278
279config SND_HDA_CODEC_CIRRUS
280	tristate "Build Cirrus Logic codec support"
281	select SND_HDA_GENERIC
282	help
283	  Say Y or M here to include Cirrus Logic codec support in
284	  snd-hda-intel driver, such as CS4206.
285
286comment "Set to Y if you want auto-loading the codec driver"
287	depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m
288
289config SND_HDA_CODEC_CS8409
290	tristate "Build Cirrus Logic HDA bridge support"
291	select SND_HDA_GENERIC
292	help
293	  Say Y or M here to include Cirrus Logic HDA bridge support in
294	  snd-hda-intel driver, such as CS8409.
295
296comment "Set to Y if you want auto-loading the codec driver"
297	depends on SND_HDA=y && SND_HDA_CODEC_CS8409=m
298
299config SND_HDA_CODEC_CONEXANT
300	tristate "Build Conexant HD-audio codec support"
301	select SND_HDA_GENERIC
302	select SND_HDA_GENERIC_LEDS
303	help
304	  Say Y or M here to include Conexant HD-audio codec support in
305	  snd-hda-intel driver, such as CX20549.
306
307comment "Set to Y if you want auto-loading the codec driver"
308	depends on SND_HDA=y && SND_HDA_CODEC_CONEXANT=m
309
310config SND_HDA_CODEC_SENARYTECH
311	tristate "Build Senarytech HD-audio codec support"
312	select SND_HDA_GENERIC
313	select SND_HDA_GENERIC_LEDS
314	help
315	  Say Y or M here to include Senarytech HD-audio codec support in
316	  snd-hda-intel driver, such as SN6186.
317
318comment "Set to Y if you want auto-loading the codec driver"
319	depends on SND_HDA=y && SND_HDA_CODEC_SENARYTECH=m
320
321config SND_HDA_CODEC_CA0110
322	tristate "Build Creative CA0110-IBG codec support"
323	select SND_HDA_GENERIC
324	help
325	  Say Y or M here to include Creative CA0110-IBG codec support in
326	  snd-hda-intel driver, found on some Creative X-Fi cards.
327
328comment "Set to Y if you want auto-loading the codec driver"
329	depends on SND_HDA=y && SND_HDA_CODEC_CA0110=m
330
331config SND_HDA_CODEC_CA0132
332	tristate "Build Creative CA0132 codec support"
333	help
334	  Say Y or M here to include Creative CA0132 codec support in
335	  snd-hda-intel driver.
336
337comment "Set to Y if you want auto-loading the codec driver"
338	depends on SND_HDA=y && SND_HDA_CODEC_CA0132=m
339
340config SND_HDA_CODEC_CA0132_DSP
341	bool "Support new DSP code for CA0132 codec"
342	depends on SND_HDA_CODEC_CA0132
343	default y
344	select SND_HDA_DSP_LOADER
345	select FW_LOADER
346	help
347	  Say Y here to enable the DSP for Creative CA0132 for extended
348	  features like equalizer or echo cancellation.
349
350	  Note that this option requires the external firmware file
351	  (ctefx.bin).
352
353config SND_HDA_CODEC_CMEDIA
354	tristate "Build C-Media HD-audio codec support"
355	select SND_HDA_GENERIC
356	help
357	  Say Y or M here to include C-Media HD-audio codec support in
358	  snd-hda-intel driver, such as CMI9880.
359
360comment "Set to Y if you want auto-loading the codec driver"
361	depends on SND_HDA=y && SND_HDA_CODEC_CMEDIA=m
362
363config SND_HDA_CODEC_SI3054
364	tristate "Build Silicon Labs 3054 HD-modem codec support"
365	help
366	  Say Y or M here to include Silicon Labs 3054 HD-modem codec
367	  (and compatibles) support in snd-hda-intel driver.
368
369comment "Set to Y if you want auto-loading the codec driver"
370	depends on SND_HDA=y && SND_HDA_CODEC_SI3054=m
371
372config SND_HDA_GENERIC
373	tristate "Enable generic HD-audio codec parser"
374	select SND_CTL_LED if SND_HDA_GENERIC_LEDS
375	select LEDS_CLASS if SND_HDA_GENERIC_LEDS
376	help
377	  Say Y or M here to enable the generic HD-audio codec parser
378	  in snd-hda-intel driver.
379
380comment "Set to Y if you want auto-loading the codec driver"
381	depends on SND_HDA=y && SND_HDA_GENERIC=m
382
383config SND_HDA_POWER_SAVE_DEFAULT
384	int "Default time-out for HD-audio power-save mode"
385	depends on PM
386	default 0
387	help
388	  The default time-out value in seconds for HD-audio automatic
389	  power-save mode.  0 means to disable the power-save mode.
390
391config SND_HDA_INTEL_HDMI_SILENT_STREAM
392	bool "Enable Silent Stream always for HDMI"
393	depends on SND_HDA_INTEL
394	help
395	  Say Y to enable HD-Audio Keep Alive (KAE) aka Silent Stream
396	  for HDMI on hardware that supports the feature.
397
398	  When enabled, the HDMI/DisplayPort codec will continue to provide
399	  a continuous clock and a valid but silent data stream to
400	  any connected external receiver. This allows to avoid gaps
401	  at start of playback. Many receivers require multiple seconds
402	  to start playing audio after the clock has been stopped.
403	  This feature can impact power consumption as resources
404	  are kept reserved both at transmitter and receiver.
405
406config SND_HDA_CTL_DEV_ID
407	bool "Use the device identifier field for controls"
408	depends on SND_HDA_INTEL
409	help
410	  Say Y to use the device identifier field for (mixer)
411	  controls (old behaviour until this option is available).
412
413	  When enabled, the multiple HDA codecs may set the device
414	  field in control (mixer) element identifiers. The use
415	  of this field is not recommended and defined for mixer controls.
416
417	  The old behaviour (Y) is obsolete and will be removed. Consider
418	  to not enable this option.
419
420endif
421
422endmenu
423