xref: /openbmc/linux/sound/pci/hda/Kconfig (revision c9933d49)
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_SCODEC_CS35L41
95	tristate
96
97config SND_HDA_SCODEC_CS35L41_I2C
98	tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
99	depends on I2C
100	depends on ACPI
101	depends on SND_SOC
102	select SND_HDA_GENERIC
103	select SND_SOC_CS35L41_LIB
104	select SND_HDA_SCODEC_CS35L41
105	help
106	  Say Y or M here to include CS35L41 I2C HD-audio side codec support
107	  in snd-hda-intel driver, such as ALC287.
108
109comment "Set to Y if you want auto-loading the side codec driver"
110	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m
111
112config SND_HDA_SCODEC_CS35L41_SPI
113	tristate "Build CS35L41 HD-audio codec support for SPI Bus"
114	depends on SPI_MASTER
115	depends on ACPI
116	depends on SND_SOC
117	select SND_HDA_GENERIC
118	select SND_SOC_CS35L41_LIB
119	select SND_HDA_SCODEC_CS35L41
120	help
121	  Say Y or M here to include CS35L41 SPI HD-audio side codec support
122	  in snd-hda-intel driver, such as ALC287.
123
124comment "Set to Y if you want auto-loading the side codec driver"
125	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m
126
127config SND_HDA_CODEC_REALTEK
128	tristate "Build Realtek HD-audio codec support"
129	select SND_HDA_GENERIC
130	select SND_HDA_GENERIC_LEDS
131	help
132	  Say Y or M here to include Realtek HD-audio codec support in
133	  snd-hda-intel driver, such as ALC880.
134
135comment "Set to Y if you want auto-loading the codec driver"
136	depends on SND_HDA=y && SND_HDA_CODEC_REALTEK=m
137
138config SND_HDA_CODEC_ANALOG
139	tristate "Build Analog Devices HD-audio codec support"
140	select SND_HDA_GENERIC
141	help
142	  Say Y or M here to include Analog Devices HD-audio codec support in
143	  snd-hda-intel driver, such as AD1986A.
144
145comment "Set to Y if you want auto-loading the codec driver"
146	depends on SND_HDA=y && SND_HDA_CODEC_ANALOG=m
147
148config SND_HDA_CODEC_SIGMATEL
149	tristate "Build IDT/Sigmatel HD-audio codec support"
150	select SND_HDA_GENERIC
151	select SND_HDA_GENERIC_LEDS
152	help
153	  Say Y or M here to include IDT (Sigmatel) HD-audio codec support in
154	  snd-hda-intel driver, such as STAC9200.
155
156comment "Set to Y if you want auto-loading the codec driver"
157	depends on SND_HDA=y && SND_HDA_CODEC_SIGMATEL=m
158
159config SND_HDA_CODEC_VIA
160	tristate "Build VIA HD-audio codec support"
161	select SND_HDA_GENERIC
162	help
163	  Say Y or M here to include VIA HD-audio codec support in
164	  snd-hda-intel driver, such as VT1708.
165
166comment "Set to Y if you want auto-loading the codec driver"
167	depends on SND_HDA=y && SND_HDA_CODEC_VIA=m
168
169config SND_HDA_CODEC_HDMI
170	tristate "Build HDMI/DisplayPort HD-audio codec support"
171	select SND_DYNAMIC_MINORS
172	help
173	  Say Y or M here to include HDMI and DisplayPort HD-audio codec
174	  support in snd-hda-intel driver.  This includes all AMD/ATI,
175	  Intel and Nvidia HDMI/DisplayPort codecs.
176
177	  Note that this option mandatorily enables CONFIG_SND_DYNAMIC_MINORS
178	  to assure the multiple streams for DP-MST support.
179
180comment "Set to Y if you want auto-loading the codec driver"
181	depends on SND_HDA=y && SND_HDA_CODEC_HDMI=m
182
183config SND_HDA_CODEC_CIRRUS
184	tristate "Build Cirrus Logic codec support"
185	select SND_HDA_GENERIC
186	help
187	  Say Y or M here to include Cirrus Logic codec support in
188	  snd-hda-intel driver, such as CS4206.
189
190comment "Set to Y if you want auto-loading the codec driver"
191	depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m
192
193config SND_HDA_CODEC_CS8409
194	tristate "Build Cirrus Logic HDA bridge support"
195	select SND_HDA_GENERIC
196	help
197	  Say Y or M here to include Cirrus Logic HDA bridge support in
198	  snd-hda-intel driver, such as CS8409.
199
200comment "Set to Y if you want auto-loading the codec driver"
201	depends on SND_HDA=y && SND_HDA_CODEC_CS8409=m
202
203config SND_HDA_CODEC_CONEXANT
204	tristate "Build Conexant HD-audio codec support"
205	select SND_HDA_GENERIC
206	select SND_HDA_GENERIC_LEDS
207	help
208	  Say Y or M here to include Conexant HD-audio codec support in
209	  snd-hda-intel driver, such as CX20549.
210
211comment "Set to Y if you want auto-loading the codec driver"
212	depends on SND_HDA=y && SND_HDA_CODEC_CONEXANT=m
213
214config SND_HDA_CODEC_CA0110
215	tristate "Build Creative CA0110-IBG codec support"
216	select SND_HDA_GENERIC
217	help
218	  Say Y or M here to include Creative CA0110-IBG codec support in
219	  snd-hda-intel driver, found on some Creative X-Fi cards.
220
221comment "Set to Y if you want auto-loading the codec driver"
222	depends on SND_HDA=y && SND_HDA_CODEC_CA0110=m
223
224config SND_HDA_CODEC_CA0132
225	tristate "Build Creative CA0132 codec support"
226	help
227	  Say Y or M here to include Creative CA0132 codec support in
228	  snd-hda-intel driver.
229
230comment "Set to Y if you want auto-loading the codec driver"
231	depends on SND_HDA=y && SND_HDA_CODEC_CA0132=m
232
233config SND_HDA_CODEC_CA0132_DSP
234	bool "Support new DSP code for CA0132 codec"
235	depends on SND_HDA_CODEC_CA0132
236	default y
237	select SND_HDA_DSP_LOADER
238	select FW_LOADER
239	help
240	  Say Y here to enable the DSP for Creative CA0132 for extended
241	  features like equalizer or echo cancellation.
242
243	  Note that this option requires the external firmware file
244	  (ctefx.bin).
245
246config SND_HDA_CODEC_CMEDIA
247	tristate "Build C-Media HD-audio codec support"
248	select SND_HDA_GENERIC
249	help
250	  Say Y or M here to include C-Media HD-audio codec support in
251	  snd-hda-intel driver, such as CMI9880.
252
253comment "Set to Y if you want auto-loading the codec driver"
254	depends on SND_HDA=y && SND_HDA_CODEC_CMEDIA=m
255
256config SND_HDA_CODEC_SI3054
257	tristate "Build Silicon Labs 3054 HD-modem codec support"
258	help
259	  Say Y or M here to include Silicon Labs 3054 HD-modem codec
260	  (and compatibles) support in snd-hda-intel driver.
261
262comment "Set to Y if you want auto-loading the codec driver"
263	depends on SND_HDA=y && SND_HDA_CODEC_SI3054=m
264
265config SND_HDA_GENERIC
266	tristate "Enable generic HD-audio codec parser"
267	select SND_CTL_LED if SND_HDA_GENERIC_LEDS
268	select LEDS_CLASS if SND_HDA_GENERIC_LEDS
269	help
270	  Say Y or M here to enable the generic HD-audio codec parser
271	  in snd-hda-intel driver.
272
273comment "Set to Y if you want auto-loading the codec driver"
274	depends on SND_HDA=y && SND_HDA_GENERIC=m
275
276config SND_HDA_POWER_SAVE_DEFAULT
277	int "Default time-out for HD-audio power-save mode"
278	depends on PM
279	default 0
280	help
281	  The default time-out value in seconds for HD-audio automatic
282	  power-save mode.  0 means to disable the power-save mode.
283
284config SND_HDA_INTEL_HDMI_SILENT_STREAM
285	bool "Enable Silent Stream always for HDMI"
286	depends on SND_HDA_INTEL
287	help
288	  Say Y to enable HD-Audio Keep Alive (KAE) aka Silent Stream
289	  for HDMI on hardware that supports the feature.
290
291	  When enabled, the HDMI/DisplayPort codec will continue to provide
292	  a continuous clock and a valid but silent data stream to
293	  any connected external receiver. This allows to avoid gaps
294	  at start of playback. Many receivers require multiple seconds
295	  to start playing audio after the clock has been stopped.
296	  This feature can impact power consumption as resources
297	  are kept reserved both at transmitter and receiver.
298
299endif
300
301endmenu
302