alsa-mixer: Recognize USB audio jack mixer
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 3 Aug 2020 16:20:02 +0000 (00:20 +0800)
committerKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 4 Aug 2020 16:42:26 +0000 (00:42 +0800)
UAC v2 and v3 support insertion control (jack detection), and the
created jack mixers have "- Input" suffix and "- Output" suffix for
input jack and output jack, respectively.

Add these jacks so we don't always need to rely on UCM or PulseAudio
profile-set.

src/modules/alsa/mixer/paths/analog-input-linein.conf
src/modules/alsa/mixer/paths/analog-input-mic.conf
src/modules/alsa/mixer/paths/analog-output-headphones.conf
src/modules/alsa/mixer/paths/analog-output-speaker.conf

index 8163ffb..cf20790 100644 (file)
@@ -28,6 +28,9 @@ required-any = any
 state.plugged = unknown
 state.unplugged = unknown
 
+[Jack Line - Input]
+required-any = any
+
 [Element Capture]
 switch = mute
 volume = merge
index 123439b..53c03c8 100644 (file)
@@ -29,6 +29,9 @@ required-any = any
 state.plugged = unknown
 state.unplugged = unknown
 
+[Jack Mic - Input]
+required-any = any
+
 [Element Capture]
 switch = mute
 volume = merge
index d2147c5..d4ad777 100644 (file)
@@ -52,6 +52,9 @@ state.unplugged = unknown
 [Jack Headphone Mic]
 required-any = any
 
+[Jack Headphone - Output]
+required-any = any
+
 [Element Hardware Master]
 switch = mute
 volume = merge
index 6f9968e..27a3983 100644 (file)
@@ -69,6 +69,9 @@ required-any = any
 state.plugged = unknown
 state.unplugged = unknown
 
+[Jack Speaker - Output]
+required-any = any
+
 [Element Hardware Master]
 switch = mute
 volume = merge