alsa-mixer: autodetect the HDMI jack PCM device

This removes the need to hardcode the PCM device index in the HDMI jack
names. The hardcoded values don't work with the Intel HDMI LPE driver.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=100488
This commit is contained in:
Tanu Kaskinen 2017-10-08 19:48:25 +03:00
parent 09ff3fca2f
commit 67f11ff301
13 changed files with 73 additions and 16 deletions

View file

@ -122,6 +122,10 @@
; # the required-any are present.
; state.plugged = yes | no | unknown # Normally a plugged jack would mean the port becomes available, and an unplugged means it's
; state.unplugged = yes | no | unknown # unavailable, but the port status can be overridden by specifying state.plugged and/or state.unplugged.
; append-pcm-to-name = no | yes # Add ",pcm=N" to the jack name? N is the hw PCM device index. HDMI jacks have
; # the PCM device index in their name, but different drivers use different
; # numbering schemes, so we can't hardcode the full jack name in our configuration
; # files.
[Element PCM]
switch = mute

View file

@ -6,5 +6,6 @@ eld-device = 3
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=3]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore

View file

@ -6,5 +6,6 @@ eld-device = 7
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=7]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore

View file

@ -6,5 +6,6 @@ eld-device = 8
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=8]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore

View file

@ -6,5 +6,6 @@ eld-device = 9
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=9]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore

View file

@ -6,5 +6,6 @@ eld-device = 10
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=10]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore

View file

@ -6,5 +6,6 @@ eld-device = 11
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=11]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore

View file

@ -6,5 +6,6 @@ eld-device = 12
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=12]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore

View file

@ -6,5 +6,6 @@ eld-device = 13
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=13]
[Jack HDMI/DP]
append-pcm-to-name = yes
required = ignore