forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/pci/hda/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 menu "HD-Audio"
23
34 config SND_HDA
....@@ -7,10 +8,14 @@
78 select SND_JACK
89 select SND_HDA_CORE
910
11
+config SND_HDA_GENERIC_LEDS
12
+ bool
13
+
1014 config SND_HDA_INTEL
1115 tristate "HD Audio PCI"
1216 depends on SND_PCI
1317 select SND_HDA
18
+ select SND_INTEL_DSP_CONFIG
1419 help
1520 Say Y here to include support for Intel "High Definition
1621 Audio" (Azalia) and its compatible devices.
....@@ -25,6 +30,7 @@
2530 tristate "NVIDIA Tegra HD Audio"
2631 depends on ARCH_TEGRA
2732 select SND_HDA
33
+ select SND_HDA_ALIGNED_MMIO
2834 help
2935 Say Y here to support the HDA controller present in NVIDIA
3036 Tegra SoCs
....@@ -88,6 +94,7 @@
8894 config SND_HDA_CODEC_REALTEK
8995 tristate "Build Realtek HD-audio codec support"
9096 select SND_HDA_GENERIC
97
+ select SND_HDA_GENERIC_LEDS
9198 help
9299 Say Y or M here to include Realtek HD-audio codec support in
93100 snd-hda-intel driver, such as ALC880.
....@@ -96,10 +103,10 @@
96103 depends on SND_HDA=y && SND_HDA_CODEC_REALTEK=m
97104
98105 config SND_HDA_CODEC_ANALOG
99
- tristate "Build Analog Device HD-audio codec support"
106
+ tristate "Build Analog Devices HD-audio codec support"
100107 select SND_HDA_GENERIC
101108 help
102
- Say Y or M here to include Analog Device HD-audio codec support in
109
+ Say Y or M here to include Analog Devices HD-audio codec support in
103110 snd-hda-intel driver, such as AD1986A.
104111
105112 comment "Set to Y if you want auto-loading the codec driver"
....@@ -108,6 +115,7 @@
108115 config SND_HDA_CODEC_SIGMATEL
109116 tristate "Build IDT/Sigmatel HD-audio codec support"
110117 select SND_HDA_GENERIC
118
+ select SND_HDA_GENERIC_LEDS
111119 help
112120 Say Y or M here to include IDT (Sigmatel) HD-audio codec support in
113121 snd-hda-intel driver, such as STAC9200.
....@@ -152,6 +160,7 @@
152160 config SND_HDA_CODEC_CONEXANT
153161 tristate "Build Conexant HD-audio codec support"
154162 select SND_HDA_GENERIC
163
+ select SND_HDA_GENERIC_LEDS
155164 help
156165 Say Y or M here to include Conexant HD-audio codec support in
157166 snd-hda-intel driver, such as CX20549.
....@@ -181,6 +190,7 @@
181190 config SND_HDA_CODEC_CA0132_DSP
182191 bool "Support new DSP code for CA0132 codec"
183192 depends on SND_HDA_CODEC_CA0132
193
+ default y
184194 select SND_HDA_DSP_LOADER
185195 select FW_LOADER
186196 help
....@@ -211,6 +221,10 @@
211221
212222 config SND_HDA_GENERIC
213223 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
214228 help
215229 Say Y or M here to enable the generic HD-audio codec parser
216230 in snd-hda-intel driver.
....@@ -226,6 +240,20 @@
226240 The default time-out value in seconds for HD-audio automatic
227241 power-save mode. 0 means to disable the power-save mode.
228242
243
+config 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
+
229257 endif
230258
231259 endmenu