Loading...
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_CODEC_REALTEK
95 tristate "Build Realtek HD-audio codec support"
96 select SND_HDA_GENERIC
97 select SND_HDA_GENERIC_LEDS
98 help
99 Say Y or M here to include Realtek HD-audio codec support in
100 snd-hda-intel driver, such as ALC880.
101
102comment "Set to Y if you want auto-loading the codec driver"
103 depends on SND_HDA=y && SND_HDA_CODEC_REALTEK=m
104
105config SND_HDA_CODEC_ANALOG
106 tristate "Build Analog Devices HD-audio codec support"
107 select SND_HDA_GENERIC
108 help
109 Say Y or M here to include Analog Devices HD-audio codec support in
110 snd-hda-intel driver, such as AD1986A.
111
112comment "Set to Y if you want auto-loading the codec driver"
113 depends on SND_HDA=y && SND_HDA_CODEC_ANALOG=m
114
115config SND_HDA_CODEC_SIGMATEL
116 tristate "Build IDT/Sigmatel HD-audio codec support"
117 select SND_HDA_GENERIC
118 select SND_HDA_GENERIC_LEDS
119 help
120 Say Y or M here to include IDT (Sigmatel) HD-audio codec support in
121 snd-hda-intel driver, such as STAC9200.
122
123comment "Set to Y if you want auto-loading the codec driver"
124 depends on SND_HDA=y && SND_HDA_CODEC_SIGMATEL=m
125
126config SND_HDA_CODEC_VIA
127 tristate "Build VIA HD-audio codec support"
128 select SND_HDA_GENERIC
129 help
130 Say Y or M here to include VIA HD-audio codec support in
131 snd-hda-intel driver, such as VT1708.
132
133comment "Set to Y if you want auto-loading the codec driver"
134 depends on SND_HDA=y && SND_HDA_CODEC_VIA=m
135
136config SND_HDA_CODEC_HDMI
137 tristate "Build HDMI/DisplayPort HD-audio codec support"
138 select SND_DYNAMIC_MINORS
139 help
140 Say Y or M here to include HDMI and DisplayPort HD-audio codec
141 support in snd-hda-intel driver. This includes all AMD/ATI,
142 Intel and Nvidia HDMI/DisplayPort codecs.
143
144 Note that this option mandatorily enables CONFIG_SND_DYNAMIC_MINORS
145 to assure the multiple streams for DP-MST support.
146
147comment "Set to Y if you want auto-loading the codec driver"
148 depends on SND_HDA=y && SND_HDA_CODEC_HDMI=m
149
150config SND_HDA_CODEC_CIRRUS
151 tristate "Build Cirrus Logic codec support"
152 select SND_HDA_GENERIC
153 help
154 Say Y or M here to include Cirrus Logic codec support in
155 snd-hda-intel driver, such as CS4206.
156
157comment "Set to Y if you want auto-loading the codec driver"
158 depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m
159
160config SND_HDA_CODEC_CONEXANT
161 tristate "Build Conexant HD-audio codec support"
162 select SND_HDA_GENERIC
163 select SND_HDA_GENERIC_LEDS
164 help
165 Say Y or M here to include Conexant HD-audio codec support in
166 snd-hda-intel driver, such as CX20549.
167
168comment "Set to Y if you want auto-loading the codec driver"
169 depends on SND_HDA=y && SND_HDA_CODEC_CONEXANT=m
170
171config SND_HDA_CODEC_CA0110
172 tristate "Build Creative CA0110-IBG codec support"
173 select SND_HDA_GENERIC
174 help
175 Say Y or M here to include Creative CA0110-IBG codec support in
176 snd-hda-intel driver, found on some Creative X-Fi cards.
177
178comment "Set to Y if you want auto-loading the codec driver"
179 depends on SND_HDA=y && SND_HDA_CODEC_CA0110=m
180
181config SND_HDA_CODEC_CA0132
182 tristate "Build Creative CA0132 codec support"
183 help
184 Say Y or M here to include Creative CA0132 codec support in
185 snd-hda-intel driver.
186
187comment "Set to Y if you want auto-loading the codec driver"
188 depends on SND_HDA=y && SND_HDA_CODEC_CA0132=m
189
190config SND_HDA_CODEC_CA0132_DSP
191 bool "Support new DSP code for CA0132 codec"
192 depends on SND_HDA_CODEC_CA0132
193 default y
194 select SND_HDA_DSP_LOADER
195 select FW_LOADER
196 help
197 Say Y here to enable the DSP for Creative CA0132 for extended
198 features like equalizer or echo cancellation.
199
200 Note that this option requires the external firmware file
201 (ctefx.bin).
202
203config SND_HDA_CODEC_CMEDIA
204 tristate "Build C-Media HD-audio codec support"
205 select SND_HDA_GENERIC
206 help
207 Say Y or M here to include C-Media HD-audio codec support in
208 snd-hda-intel driver, such as CMI9880.
209
210comment "Set to Y if you want auto-loading the codec driver"
211 depends on SND_HDA=y && SND_HDA_CODEC_CMEDIA=m
212
213config SND_HDA_CODEC_SI3054
214 tristate "Build Silicon Labs 3054 HD-modem codec support"
215 help
216 Say Y or M here to include Silicon Labs 3054 HD-modem codec
217 (and compatibles) support in snd-hda-intel driver.
218
219comment "Set to Y if you want auto-loading the codec driver"
220 depends on SND_HDA=y && SND_HDA_CODEC_SI3054=m
221
222config SND_HDA_GENERIC
223 tristate "Enable generic HD-audio codec parser"
224 select NEW_LEDS if SND_HDA_GENERIC_LEDS
225 select LEDS_CLASS if SND_HDA_GENERIC_LEDS
226 select LEDS_TRIGGERS if SND_HDA_GENERIC_LEDS
227 select LEDS_TRIGGER_AUDIO if SND_HDA_GENERIC_LEDS
228 help
229 Say Y or M here to enable the generic HD-audio codec parser
230 in snd-hda-intel driver.
231
232comment "Set to Y if you want auto-loading the codec driver"
233 depends on SND_HDA=y && SND_HDA_GENERIC=m
234
235config SND_HDA_POWER_SAVE_DEFAULT
236 int "Default time-out for HD-audio power-save mode"
237 depends on PM
238 default 0
239 help
240 The default time-out value in seconds for HD-audio automatic
241 power-save mode. 0 means to disable the power-save mode.
242
243config SND_HDA_INTEL_HDMI_SILENT_STREAM
244 bool "Enable Silent Stream always for HDMI"
245 depends on SND_HDA_INTEL
246 help
247 Intel hardware has a feature called 'silent stream', that
248 keeps external HDMI receiver's analog circuitry powered on
249 avoiding 2-3 sec silence during playback start. This mechanism
250 relies on setting channel_id as 0xf, sending info packet and
251 preventing codec D3 entry (increasing platform static power
252 consumption when HDMI receiver is plugged-in). 2-3 sec silence
253 at the playback start is expected whenever there is format change.
254 (default is 2 channel format).
255 Say Y to enable Silent Stream feature.
256
257endif
258
259endmenu
1menuconfig SND_HDA_INTEL
2 tristate "Intel HD Audio"
3 select SND_PCM
4 select SND_VMASTER
5 help
6 Say Y here to include support for Intel "High Definition
7 Audio" (Azalia) and its compatible devices.
8
9 This option enables the HD-audio controller. Don't forget
10 to choose the appropriate codec options below.
11
12 To compile this driver as a module, choose M here: the module
13 will be called snd-hda-intel.
14
15if SND_HDA_INTEL
16
17config SND_HDA_PREALLOC_SIZE
18 int "Pre-allocated buffer size for HD-audio driver"
19 range 0 32768
20 default 64
21 help
22 Specifies the default pre-allocated buffer-size in kB for the
23 HD-audio driver. A larger buffer (e.g. 2048) is preferred
24 for systems using PulseAudio. The default 64 is chosen just
25 for compatibility reasons.
26
27 Note that the pre-allocation size can be changed dynamically
28 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
29
30config SND_HDA_HWDEP
31 bool "Build hwdep interface for HD-audio driver"
32 select SND_HWDEP
33 help
34 Say Y here to build a hwdep interface for HD-audio driver.
35 This interface can be used for out-of-band communication
36 with codecs for debugging purposes.
37
38config SND_HDA_RECONFIG
39 bool "Allow dynamic codec reconfiguration (EXPERIMENTAL)"
40 depends on SND_HDA_HWDEP && EXPERIMENTAL
41 help
42 Say Y here to enable the HD-audio codec re-configuration feature.
43 This adds the sysfs interfaces to allow user to clear the whole
44 codec configuration, change the codec setup, add extra verbs,
45 and re-configure the codec dynamically.
46
47config SND_HDA_INPUT_BEEP
48 bool "Support digital beep via input layer"
49 depends on INPUT=y || INPUT=SND_HDA_INTEL
50 help
51 Say Y here to build a digital beep interface for HD-audio
52 driver. This interface is used to generate digital beeps.
53
54config SND_HDA_INPUT_BEEP_MODE
55 int "Digital beep registration mode (0=off, 1=on, 2=mute sw on/off)"
56 depends on SND_HDA_INPUT_BEEP=y
57 default "1"
58 range 0 2
59 help
60 Set 0 to disable the digital beep interface for HD-audio by default.
61 Set 1 to always enable the digital beep interface for HD-audio by
62 default. Set 2 to control the beep device registration to input
63 layer using a "Beep Switch" in mixer applications.
64
65config SND_HDA_INPUT_JACK
66 bool "Support jack plugging notification via input layer"
67 depends on INPUT=y || INPUT=SND
68 select SND_JACK
69 help
70 Say Y here to enable the jack plugging notification via
71 input layer.
72
73config SND_HDA_PATCH_LOADER
74 bool "Support initialization patch loading for HD-audio"
75 depends on EXPERIMENTAL
76 select FW_LOADER
77 select SND_HDA_HWDEP
78 select SND_HDA_RECONFIG
79 help
80 Say Y here to allow the HD-audio driver to load a pseudo
81 firmware file ("patch") for overriding the BIOS setup at
82 start up. The "patch" file can be specified via patch module
83 option, such as patch=hda-init.
84
85 This option turns on hwdep and reconfig features automatically.
86
87config SND_HDA_CODEC_REALTEK
88 bool "Build Realtek HD-audio codec support"
89 default y
90 help
91 Say Y here to include Realtek HD-audio codec support in
92 snd-hda-intel driver, such as ALC880.
93
94 When the HD-audio driver is built as a module, the codec
95 support code is also built as another module,
96 snd-hda-codec-realtek.
97 This module is automatically loaded at probing.
98
99config SND_HDA_ENABLE_REALTEK_QUIRKS
100 bool "Build static quirks for Realtek codecs"
101 depends on SND_HDA_CODEC_REALTEK
102 default y
103 help
104 Say Y here to build the static quirks codes for Realtek codecs.
105 If you need the "model" preset that the default BIOS auto-parser
106 can't handle, turn this option on.
107
108 If your device works with model=auto option, basically you don't
109 need the quirk code. By turning this off, you can reduce the
110 module size quite a lot.
111
112config SND_HDA_CODEC_ANALOG
113 bool "Build Analog Device HD-audio codec support"
114 default y
115 help
116 Say Y here to include Analog Device HD-audio codec support in
117 snd-hda-intel driver, such as AD1986A.
118
119 When the HD-audio driver is built as a module, the codec
120 support code is also built as another module,
121 snd-hda-codec-analog.
122 This module is automatically loaded at probing.
123
124config SND_HDA_CODEC_SIGMATEL
125 bool "Build IDT/Sigmatel HD-audio codec support"
126 default y
127 help
128 Say Y here to include IDT (Sigmatel) HD-audio codec support in
129 snd-hda-intel driver, such as STAC9200.
130
131 When the HD-audio driver is built as a module, the codec
132 support code is also built as another module,
133 snd-hda-codec-idt.
134 This module is automatically loaded at probing.
135
136config SND_HDA_CODEC_VIA
137 bool "Build VIA HD-audio codec support"
138 default y
139 help
140 Say Y here to include VIA HD-audio codec support in
141 snd-hda-intel driver, such as VT1708.
142
143 When the HD-audio driver is built as a module, the codec
144 support code is also built as another module,
145 snd-hda-codec-via.
146 This module is automatically loaded at probing.
147
148config SND_HDA_CODEC_HDMI
149 bool "Build HDMI/DisplayPort HD-audio codec support"
150 select SND_DYNAMIC_MINORS
151 default y
152 help
153 Say Y here to include HDMI and DisplayPort HD-audio codec
154 support in snd-hda-intel driver. This includes all AMD/ATI,
155 Intel and Nvidia HDMI/DisplayPort codecs.
156
157 When the HD-audio driver is built as a module, the codec
158 support code is also built as another module,
159 snd-hda-codec-hdmi.
160 This module is automatically loaded at probing.
161
162config SND_HDA_CODEC_CIRRUS
163 bool "Build Cirrus Logic codec support"
164 depends on SND_HDA_INTEL
165 default y
166 help
167 Say Y here to include Cirrus Logic codec support in
168 snd-hda-intel driver, such as CS4206.
169
170 When the HD-audio driver is built as a module, the codec
171 support code is also built as another module,
172 snd-hda-codec-cirrus.
173 This module is automatically loaded at probing.
174
175config SND_HDA_CODEC_CONEXANT
176 bool "Build Conexant HD-audio codec support"
177 default y
178 help
179 Say Y here to include Conexant HD-audio codec support in
180 snd-hda-intel driver, such as CX20549.
181
182 When the HD-audio driver is built as a module, the codec
183 support code is also built as another module,
184 snd-hda-codec-conexant.
185 This module is automatically loaded at probing.
186
187config SND_HDA_CODEC_CA0110
188 bool "Build Creative CA0110-IBG codec support"
189 depends on SND_HDA_INTEL
190 default y
191 help
192 Say Y here to include Creative CA0110-IBG codec support in
193 snd-hda-intel driver, found on some Creative X-Fi cards.
194
195 When the HD-audio driver is built as a module, the codec
196 support code is also built as another module,
197 snd-hda-codec-ca0110.
198 This module is automatically loaded at probing.
199
200config SND_HDA_CODEC_CA0132
201 bool "Build Creative CA0132 codec support"
202 depends on SND_HDA_INTEL
203 default y
204 help
205 Say Y here to include Creative CA0132 codec support in
206 snd-hda-intel driver.
207
208 When the HD-audio driver is built as a module, the codec
209 support code is also built as another module,
210 snd-hda-codec-ca0132.
211 This module is automatically loaded at probing.
212
213config SND_HDA_CODEC_CMEDIA
214 bool "Build C-Media HD-audio codec support"
215 default y
216 help
217 Say Y here to include C-Media HD-audio codec support in
218 snd-hda-intel driver, such as CMI9880.
219
220 When the HD-audio driver is built as a module, the codec
221 support code is also built as another module,
222 snd-hda-codec-cmedia.
223 This module is automatically loaded at probing.
224
225config SND_HDA_CODEC_SI3054
226 bool "Build Silicon Labs 3054 HD-modem codec support"
227 default y
228 help
229 Say Y here to include Silicon Labs 3054 HD-modem codec
230 (and compatibles) support in snd-hda-intel driver.
231
232 When the HD-audio driver is built as a module, the codec
233 support code is also built as another module,
234 snd-hda-codec-si3054.
235 This module is automatically loaded at probing.
236
237config SND_HDA_GENERIC
238 bool "Enable generic HD-audio codec parser"
239 default y
240 help
241 Say Y here to enable the generic HD-audio codec parser
242 in snd-hda-intel driver.
243
244config SND_HDA_POWER_SAVE
245 bool "Aggressive power-saving on HD-audio"
246 depends on PM
247 help
248 Say Y here to enable more aggressive power-saving mode on
249 HD-audio driver. The power-saving timeout can be configured
250 via power_save option or over sysfs on-the-fly.
251
252config SND_HDA_POWER_SAVE_DEFAULT
253 int "Default time-out for HD-audio power-save mode"
254 depends on SND_HDA_POWER_SAVE
255 default 0
256 help
257 The default time-out value in seconds for HD-audio automatic
258 power-save mode. 0 means to disable the power-save mode.
259
260endif