]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: Add jack controls for HP Thunderbolt Dock G2 master
authorTasos Sahanidis <tasos@tasossah.com>
Thu, 27 Nov 2025 04:03:28 +0000 (06:03 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Dec 2025 08:53:50 +0000 (09:53 +0100)
Similar to the Dell WD15/WD19, this allows for jack detection
(headphones/headset) on the HP Thunderbolt Dock G2.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/650
Link: https://lore.kernel.org/linux-sound/20251126003805.2705503-1-tasos@tasossah.com/T/
Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/HP/Thunderbolt-Dock-Audio-Headset-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/HP/Thunderbolt-Dock-Audio-Headset.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/HP/Thunderbolt-Dock-Audio-Headset-HiFi.conf b/ucm2/USB-Audio/HP/Thunderbolt-Dock-Audio-Headset-HiFi.conf
new file mode 100644 (file)
index 0000000..6a66e99
--- /dev/null
@@ -0,0 +1,43 @@
+SectionDevice."Headphones" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId}"
+               JackControl "Headsets Playback Jack"
+
+               If.Headphone_ctl {
+                       Condition {
+                               Type ControlExists
+                               Control "name='Headsets Playback Switch'"
+                       }
+                       True {
+                               PlaybackMixerElem "Headsets"
+                               PlaybackVolume "Headsets Playback Volume"
+                               PlaybackSwitch "Headsets Playback Switch"
+                       }
+               }
+       }
+}
+
+SectionDevice."Headset" {
+       Comment "Headset Microphone"
+
+       Value {
+               CapturePriority 100
+               CapturePCM "hw:${CardId}"
+               JackControl "Headset Capture Jack"
+
+               If.Mic_ctl {
+                       Condition {
+                               Type ControlExists
+                               Control "name='Headset Capture Switch'"
+                       }
+                       True {
+                               CaptureMixerElem "Headset"
+                               CaptureVolume "Headset Capture Volume"
+                               CaptureSwitch "Headset Capture Switch"
+                       }
+               }
+       }
+}
diff --git a/ucm2/USB-Audio/HP/Thunderbolt-Dock-Audio-Headset.conf b/ucm2/USB-Audio/HP/Thunderbolt-Dock-Audio-Headset.conf
new file mode 100644 (file)
index 0000000..154c079
--- /dev/null
@@ -0,0 +1,6 @@
+Comment "HP Thunderbolt Dock G2 headset"
+
+SectionUseCase."HiFi" {
+       Comment "Default"
+       File "/USB-Audio/HP/Thunderbolt-Dock-Audio-Headset-HiFi.conf"
+}
index b15f6e2f841c2450bc157c2b8c65616758ffccdb..3722310e9b2410b7b08b1f3d43b6be1acb969943 100644 (file)
@@ -113,6 +113,15 @@ If.hp_only {
        }
 }
 
+If.hp-tb-dock {
+       Condition {
+               Type RegexMatch
+               String "${CardComponents}"
+               Regex "USB03f0:0269"
+       }
+       True.Define.ProfileName "HP/Thunderbolt-Dock-Audio-Headset"
+}
+
 If.hyperx-solocast {
        Condition {
                Type String