Skip to content

Commit 81231ad

Browse files
committed
ALSA: hda/hdmi: Enable drivers as default
Like other HD-audio codec drivers, HD-audio HDMI codec driver was split to multiple drivers, and now users are forced to choose the right kconfig items. For smoother upgrade path, keep the previous CONFIG_SND_HDA_CODEC_HDMI as the meuconfig, so that the kconfig can be taken over from the previous config. The all belonging HDMI codec drivers are enabled as default as long as CONFIG_SND_HDA_CODEC_HDMI is set. This is only about the default config, and each driver can be still disabled if user wants to reduce the size, too. The kconfig for the generic HDMI driver is changed to CONFIG_SND_HDA_CODEC_HDMI_GENERIC along with this action. Signed-off-by: Takashi Iwai <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent fc2792a commit 81231ad

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

sound/hda/codecs/hdmi/Kconfig

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3-
config SND_HDA_CODEC_HDMI
3+
menuconfig SND_HDA_CODEC_HDMI
4+
tristate "HD-audio HDMI codec support"
5+
6+
if SND_HDA_CODEC_HDMI
7+
8+
config SND_HDA_CODEC_HDMI_GENERIC
49
tristate "Generic HDMI/DisplayPort HD-audio codec support"
510
select SND_DYNAMIC_MINORS
611
select SND_PCM_ELD
12+
default y
713
help
814
Say Y or M here to include Generic HDMI and DisplayPort HD-audio
915
codec support.
@@ -13,13 +19,15 @@ config SND_HDA_CODEC_HDMI
1319

1420
config SND_HDA_CODEC_HDMI_SIMPLE
1521
tristate "Simple HDMI/DisplayPort HD-audio codec support"
22+
default y
1623
help
1724
Say Y or M here to include Simple HDMI and DisplayPort HD-audio
1825
codec support for VIA and other codecs.
1926

2027
config SND_HDA_CODEC_HDMI_INTEL
2128
tristate "Intel HDMI/DisplayPort HD-audio codec support"
22-
select SND_HDA_CODEC_HDMI
29+
select SND_HDA_CODEC_HDMI_GENERIC
30+
default y
2331
help
2432
Say Y or M here to include Intel graphics HDMI and DisplayPort
2533
HD-audio codec support.
@@ -41,28 +49,34 @@ config SND_HDA_INTEL_HDMI_SILENT_STREAM
4149

4250
config SND_HDA_CODEC_HDMI_ATI
4351
tristate "AMD/ATI HDMI/DisplayPort HD-audio codec support"
44-
select SND_HDA_CODEC_HDMI
52+
select SND_HDA_CODEC_HDMI_GENERIC
53+
default y
4554
help
4655
Say Y or M here to include AMD/ATI graphics HDMI and DisplayPort
4756
HD-audio codec support.
4857

4958
config SND_HDA_CODEC_HDMI_NVIDIA
5059
tristate "Nvidia HDMI/DisplayPort HD-audio codec support"
51-
select SND_HDA_CODEC_HDMI
60+
select SND_HDA_CODEC_HDMI_GENERIC
61+
default y
5262
help
5363
Say Y or M here to include HDMI and DisplayPort HD-audio codec
5464
support for the recent Nvidia graphics cards.
5565

5666
config SND_HDA_CODEC_HDMI_NVIDIA_MCP
5767
tristate "Legacy Nvidia HDMI/DisplayPort HD-audio codec support"
5868
select SND_HDA_CODEC_HDMI_SIMPLE
69+
default y
5970
help
6071
Say Y or M here to include HDMI and DisplayPort HD-audio codec
6172
support for the legacy Nvidia graphics like MCP73, MCP67, MCP77/78.
6273

6374
config SND_HDA_CODEC_HDMI_TEGRA
6475
tristate "Nvidia Tegra HDMI/DisplayPort HD-audio codec support"
65-
select SND_HDA_CODEC_HDMI
76+
select SND_HDA_CODEC_HDMI_GENERIC
77+
default y
6678
help
6779
Say Y or M here to include HDMI and DisplayPort HD-audio codec
6880
support for Nvidia Tegra.
81+
82+
endif

sound/hda/codecs/hdmi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ snd-hda-codec-nvhdmi-y := nvhdmi.o
99
snd-hda-codec-nvhdmi-mcp-y := nvhdmi-mcp.o
1010
snd-hda-codec-tegrahdmi-y := tegrahdmi.o
1111

12-
obj-$(CONFIG_SND_HDA_CODEC_HDMI) += snd-hda-codec-hdmi.o
12+
obj-$(CONFIG_SND_HDA_CODEC_HDMI_GENERIC) += snd-hda-codec-hdmi.o
1313
obj-$(CONFIG_SND_HDA_CODEC_HDMI_SIMPLE) += snd-hda-codec-simplehdmi.o
1414
obj-$(CONFIG_SND_HDA_CODEC_HDMI_INTEL) += snd-hda-codec-intelhdmi.o
1515
obj-$(CONFIG_SND_HDA_CODEC_HDMI_ATI) += snd-hda-codec-atihdmi.o

0 commit comments

Comments
 (0)