xref: /linux/sound/pci/hda/Kconfig (revision 67f9c312b0a7f4bc869376d2a68308e673235954)
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	select SND_HDA_CIRRUS_SCODEC
100	select GPIOLIB
101	depends on KUNIT
102	default KUNIT_ALL_TESTS
103	help
104	  This builds KUnit tests for the cirrus side-codec library.
105	  For more information on KUnit and unit tests in general,
106	  please refer to the KUnit documentation in
107	  Documentation/dev-tools/kunit/.
108	  If in doubt, say "N".
109
110config SND_HDA_SCODEC_CS35L41
111	tristate
112	select SND_HDA_GENERIC
113	select REGMAP_IRQ
114
115config SND_HDA_CS_DSP_CONTROLS
116	tristate
117	select FW_CS_DSP
118
119config SND_HDA_SCODEC_COMPONENT
120	tristate
121
122config SND_HDA_SCODEC_CS35L41_I2C
123	tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
124	depends on I2C
125	depends on ACPI
126	depends on EFI
127	depends on SND_SOC
128	select SND_SOC_CS35L41_LIB
129	select SND_HDA_SCODEC_CS35L41
130	select SND_HDA_CS_DSP_CONTROLS
131	select SND_SOC_CS_AMP_LIB
132	help
133	  Say Y or M here to include CS35L41 I2C HD-audio side codec support
134	  in snd-hda-intel driver, such as ALC287.
135
136comment "Set to Y if you want auto-loading the side codec driver"
137	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m
138
139config SND_HDA_SCODEC_CS35L41_SPI
140	tristate "Build CS35L41 HD-audio codec support for SPI Bus"
141	depends on SPI_MASTER
142	depends on ACPI
143	depends on EFI
144	depends on SND_SOC
145	select SND_SOC_CS35L41_LIB
146	select SND_HDA_SCODEC_CS35L41
147	select SND_HDA_CS_DSP_CONTROLS
148	select SND_SOC_CS_AMP_LIB
149	help
150	  Say Y or M here to include CS35L41 SPI HD-audio side codec support
151	  in snd-hda-intel driver, such as ALC287.
152
153comment "Set to Y if you want auto-loading the side codec driver"
154	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m
155
156config SND_HDA_SCODEC_CS35L56
157	tristate
158
159config SND_HDA_SCODEC_CS35L56_I2C
160	tristate "Build CS35L56 HD-audio side codec support for I2C Bus"
161	depends on I2C
162	depends on ACPI || COMPILE_TEST
163	depends on SND_SOC
164	select FW_CS_DSP
165	imply SERIAL_MULTI_INSTANTIATE
166	select SND_HDA_GENERIC
167	select SND_SOC_CS35L56_SHARED
168	select SND_HDA_SCODEC_CS35L56
169	select SND_HDA_CIRRUS_SCODEC
170	select SND_HDA_CS_DSP_CONTROLS
171	select SND_SOC_CS_AMP_LIB
172	help
173	  Say Y or M here to include CS35L56 amplifier support with
174	  I2C control.
175
176config SND_HDA_SCODEC_CS35L56_SPI
177	tristate "Build CS35L56 HD-audio side codec support for SPI Bus"
178	depends on SPI_MASTER
179	depends on ACPI || COMPILE_TEST
180	depends on SND_SOC
181	select FW_CS_DSP
182	imply SERIAL_MULTI_INSTANTIATE
183	select SND_HDA_GENERIC
184	select SND_SOC_CS35L56_SHARED
185	select SND_HDA_SCODEC_CS35L56
186	select SND_HDA_CIRRUS_SCODEC
187	select SND_HDA_CS_DSP_CONTROLS
188	select SND_SOC_CS_AMP_LIB
189	help
190	  Say Y or M here to include CS35L56 amplifier support with
191	  SPI control.
192
193config SND_HDA_SCODEC_TAS2781_I2C
194	tristate "Build TAS2781 HD-audio side codec support for I2C Bus"
195	depends on I2C
196	depends on ACPI
197	depends on EFI
198	depends on SND_SOC
199	select SND_SOC_TAS2781_COMLIB
200	select SND_SOC_TAS2781_FMWLIB
201	select CRC32_SARWATE
202	help
203	  Say Y or M here to include TAS2781 I2C HD-audio side codec support
204	  in snd-hda-intel driver, such as ALC287.
205
206comment "Set to Y if you want auto-loading the side codec driver"
207	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m
208
209config SND_HDA_CODEC_REALTEK
210	tristate "Build Realtek HD-audio codec support"
211	select SND_HDA_GENERIC
212	select SND_HDA_GENERIC_LEDS
213	select SND_HDA_SCODEC_COMPONENT
214	help
215	  Say Y or M here to include Realtek HD-audio codec support in
216	  snd-hda-intel driver, such as ALC880.
217
218comment "Set to Y if you want auto-loading the codec driver"
219	depends on SND_HDA=y && SND_HDA_CODEC_REALTEK=m
220
221config SND_HDA_CODEC_ANALOG
222	tristate "Build Analog Devices HD-audio codec support"
223	select SND_HDA_GENERIC
224	help
225	  Say Y or M here to include Analog Devices HD-audio codec support in
226	  snd-hda-intel driver, such as AD1986A.
227
228comment "Set to Y if you want auto-loading the codec driver"
229	depends on SND_HDA=y && SND_HDA_CODEC_ANALOG=m
230
231config SND_HDA_CODEC_SIGMATEL
232	tristate "Build IDT/Sigmatel HD-audio codec support"
233	select SND_HDA_GENERIC
234	select SND_HDA_GENERIC_LEDS
235	help
236	  Say Y or M here to include IDT (Sigmatel) HD-audio codec support in
237	  snd-hda-intel driver, such as STAC9200.
238
239comment "Set to Y if you want auto-loading the codec driver"
240	depends on SND_HDA=y && SND_HDA_CODEC_SIGMATEL=m
241
242config SND_HDA_CODEC_VIA
243	tristate "Build VIA HD-audio codec support"
244	select SND_HDA_GENERIC
245	help
246	  Say Y or M here to include VIA HD-audio codec support in
247	  snd-hda-intel driver, such as VT1708.
248
249comment "Set to Y if you want auto-loading the codec driver"
250	depends on SND_HDA=y && SND_HDA_CODEC_VIA=m
251
252config SND_HDA_CODEC_HDMI
253	tristate "Build HDMI/DisplayPort HD-audio codec support"
254	select SND_DYNAMIC_MINORS
255	help
256	  Say Y or M here to include HDMI and DisplayPort HD-audio codec
257	  support in snd-hda-intel driver.  This includes all AMD/ATI,
258	  Intel and Nvidia HDMI/DisplayPort codecs.
259
260	  Note that this option mandatorily enables CONFIG_SND_DYNAMIC_MINORS
261	  to assure the multiple streams for DP-MST support.
262
263comment "Set to Y if you want auto-loading the codec driver"
264	depends on SND_HDA=y && SND_HDA_CODEC_HDMI=m
265
266config SND_HDA_CODEC_CIRRUS
267	tristate "Build Cirrus Logic codec support"
268	select SND_HDA_GENERIC
269	help
270	  Say Y or M here to include Cirrus Logic codec support in
271	  snd-hda-intel driver, such as CS4206.
272
273comment "Set to Y if you want auto-loading the codec driver"
274	depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m
275
276config SND_HDA_CODEC_CS8409
277	tristate "Build Cirrus Logic HDA bridge support"
278	select SND_HDA_GENERIC
279	help
280	  Say Y or M here to include Cirrus Logic HDA bridge support in
281	  snd-hda-intel driver, such as CS8409.
282
283comment "Set to Y if you want auto-loading the codec driver"
284	depends on SND_HDA=y && SND_HDA_CODEC_CS8409=m
285
286config SND_HDA_CODEC_CONEXANT
287	tristate "Build Conexant HD-audio codec support"
288	select SND_HDA_GENERIC
289	select SND_HDA_GENERIC_LEDS
290	help
291	  Say Y or M here to include Conexant HD-audio codec support in
292	  snd-hda-intel driver, such as CX20549.
293
294comment "Set to Y if you want auto-loading the codec driver"
295	depends on SND_HDA=y && SND_HDA_CODEC_CONEXANT=m
296
297config SND_HDA_CODEC_CA0110
298	tristate "Build Creative CA0110-IBG codec support"
299	select SND_HDA_GENERIC
300	help
301	  Say Y or M here to include Creative CA0110-IBG codec support in
302	  snd-hda-intel driver, found on some Creative X-Fi cards.
303
304comment "Set to Y if you want auto-loading the codec driver"
305	depends on SND_HDA=y && SND_HDA_CODEC_CA0110=m
306
307config SND_HDA_CODEC_CA0132
308	tristate "Build Creative CA0132 codec support"
309	help
310	  Say Y or M here to include Creative CA0132 codec support in
311	  snd-hda-intel driver.
312
313comment "Set to Y if you want auto-loading the codec driver"
314	depends on SND_HDA=y && SND_HDA_CODEC_CA0132=m
315
316config SND_HDA_CODEC_CA0132_DSP
317	bool "Support new DSP code for CA0132 codec"
318	depends on SND_HDA_CODEC_CA0132
319	default y
320	select SND_HDA_DSP_LOADER
321	select FW_LOADER
322	help
323	  Say Y here to enable the DSP for Creative CA0132 for extended
324	  features like equalizer or echo cancellation.
325
326	  Note that this option requires the external firmware file
327	  (ctefx.bin).
328
329config SND_HDA_CODEC_CMEDIA
330	tristate "Build C-Media HD-audio codec support"
331	select SND_HDA_GENERIC
332	help
333	  Say Y or M here to include C-Media HD-audio codec support in
334	  snd-hda-intel driver, such as CMI9880.
335
336comment "Set to Y if you want auto-loading the codec driver"
337	depends on SND_HDA=y && SND_HDA_CODEC_CMEDIA=m
338
339config SND_HDA_CODEC_SI3054
340	tristate "Build Silicon Labs 3054 HD-modem codec support"
341	help
342	  Say Y or M here to include Silicon Labs 3054 HD-modem codec
343	  (and compatibles) support in snd-hda-intel driver.
344
345comment "Set to Y if you want auto-loading the codec driver"
346	depends on SND_HDA=y && SND_HDA_CODEC_SI3054=m
347
348config SND_HDA_GENERIC
349	tristate "Enable generic HD-audio codec parser"
350	select SND_CTL_LED if SND_HDA_GENERIC_LEDS
351	select LEDS_CLASS if SND_HDA_GENERIC_LEDS
352	help
353	  Say Y or M here to enable the generic HD-audio codec parser
354	  in snd-hda-intel driver.
355
356comment "Set to Y if you want auto-loading the codec driver"
357	depends on SND_HDA=y && SND_HDA_GENERIC=m
358
359config SND_HDA_POWER_SAVE_DEFAULT
360	int "Default time-out for HD-audio power-save mode"
361	depends on PM
362	default 0
363	help
364	  The default time-out value in seconds for HD-audio automatic
365	  power-save mode.  0 means to disable the power-save mode.
366
367config SND_HDA_INTEL_HDMI_SILENT_STREAM
368	bool "Enable Silent Stream always for HDMI"
369	depends on SND_HDA_INTEL
370	help
371	  Say Y to enable HD-Audio Keep Alive (KAE) aka Silent Stream
372	  for HDMI on hardware that supports the feature.
373
374	  When enabled, the HDMI/DisplayPort codec will continue to provide
375	  a continuous clock and a valid but silent data stream to
376	  any connected external receiver. This allows to avoid gaps
377	  at start of playback. Many receivers require multiple seconds
378	  to start playing audio after the clock has been stopped.
379	  This feature can impact power consumption as resources
380	  are kept reserved both at transmitter and receiver.
381
382config SND_HDA_CTL_DEV_ID
383	bool "Use the device identifier field for controls"
384	depends on SND_HDA_INTEL
385	help
386	  Say Y to use the device identifier field for (mixer)
387	  controls (old behaviour until this option is available).
388
389	  When enabled, the multiple HDA codecs may set the device
390	  field in control (mixer) element identifiers. The use
391	  of this field is not recommended and defined for mixer controls.
392
393	  The old behaviour (Y) is obsolete and will be removed. Consider
394	  to not enable this option.
395
396endif
397
398endmenu
399