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