]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-soundwire: rt711-sdca: add Headset Mic Switch to Headset sequences
authorDan Kovacek <dankovacek@gmail.com>
Thu, 9 Apr 2026 01:28:53 +0000 (18:28 -0700)
committerJaroslav Kysela <perex@perex.cz>
Thu, 28 May 2026 14:01:20 +0000 (16:01 +0200)
No sound captured in headset mic through jack on Dell Precision 5480, Ubuntu 24.04.4 LTS kernel version 6.17.0-20-generic

Headset Mic Switch is a DAPM gate that must be enabled to connect the
headset microphone input to the SoundWire capture pipeline. Without it
the mic path is powered down regardless of the FU0F Capture Switch state,
producing silence.

Add Headset Mic Switch on/off to Enable/DisableSequence, matching the
pattern already used for Headphone Switch in the Headphones device.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/740
Signed-off-by: D Kovacek <dankovacek@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-soundwire/rt711-sdca.conf

index a8e555ef7abf7936b4b453fc3bb804d363f5edfe..e7d62feedd6195114a402f802b5bd1835c1d0597 100644 (file)
@@ -29,6 +29,21 @@ SectionDevice."Headset" {
                cset "name='rt711 FU0F Capture Switch' 0"
        ]
 
+       If.hsmicsw {
+               Condition {
+                       Type ControlExists
+                       Control "name='Headset Mic Switch'"
+               }
+               True {
+                       EnableSequence [
+                               cset "name='Headset Mic Switch' on"
+                       ]
+                       DisableSequence [
+                               cset "name='Headset Mic Switch' off"
+                       ]
+               }
+       }
+
        Value {
                CapturePriority 200
                CapturePCM "hw:${CardId},1"