From dfbac0e7698b63c4b3b089e30e1c929a320b16c8 Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Tue, 2 Feb 2021 08:33:36 +0800 Subject: [PATCH] conf: HDA-Intel: increase the max number of HDMI/DP output to 11 Intel TGL HDMI/DP codec provides 9 pins (Linux kernel, 9a11ba7388f16: ALSA: hda: hdmi - add Tigerlake support), and with the DP MST enabled, the linux kernel will build 11 output devices (3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16), and current alsa-lib only maps the first 8 output devices, if users plug the HDMI/DP monitor to the last 3 ports, the users will not see the output device from pulseaudio or gnome. We have experienced this issue on a dell TGL machine with a dock, we plugged 2 HDMP/DP monitors on the dock, but we could only see 1 HDMI/DP output device from pulseaudio or gnome, through investigation, we found one monitor is plugged in the 2nd port from last. Signed-off-by: Hui Wang BugLink: https://github.com/alsa-project/alsa-lib/pull/118 Signed-off-by: Takashi Iwai --- src/conf/cards/HDA-Intel.conf | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/src/conf/cards/HDA-Intel.conf b/src/conf/cards/HDA-Intel.conf index fa9f6946..d5a65906 100644 --- a/src/conf/cards/HDA-Intel.conf +++ b/src/conf/cards/HDA-Intel.conf @@ -398,6 +398,75 @@ HDA-Intel.pcm.hdmi.7 { } } +HDA-Intel.pcm.hdmi.8 { + @args [ CARD AES0 AES1 AES2 AES3 ] + @args.CARD { type string } + @args.AES0 { type integer } + @args.AES1 { type integer } + @args.AES2 { type integer } + @args.AES3 { type integer } + @func refer + name { + @func concat + strings [ + "cards.HDA-Intel.pcm.hdmi.common:" + "CARD=" $CARD "," + "DEVICE=14," + "CTLINDEX=8," + "AES0=" $AES0 "," + "AES1=" $AES1 "," + "AES2=" $AES2 "," + "AES3=" $AES3 + ] + } +} + +HDA-Intel.pcm.hdmi.9 { + @args [ CARD AES0 AES1 AES2 AES3 ] + @args.CARD { type string } + @args.AES0 { type integer } + @args.AES1 { type integer } + @args.AES2 { type integer } + @args.AES3 { type integer } + @func refer + name { + @func concat + strings [ + "cards.HDA-Intel.pcm.hdmi.common:" + "CARD=" $CARD "," + "DEVICE=15," + "CTLINDEX=9," + "AES0=" $AES0 "," + "AES1=" $AES1 "," + "AES2=" $AES2 "," + "AES3=" $AES3 + ] + } +} + +HDA-Intel.pcm.hdmi.10 { + @args [ CARD AES0 AES1 AES2 AES3 ] + @args.CARD { type string } + @args.AES0 { type integer } + @args.AES1 { type integer } + @args.AES2 { type integer } + @args.AES3 { type integer } + @func refer + name { + @func concat + strings [ + "cards.HDA-Intel.pcm.hdmi.common:" + "CARD=" $CARD "," + "DEVICE=16," + "CTLINDEX=10," + "AES0=" $AES0 "," + "AES1=" $AES1 "," + "AES2=" $AES2 "," + "AES3=" $AES3 + ] + } +} + HDA-Intel.pcm.modem.0 { -- 2.47.1