alsa-ucm-conf/ucm2/sof-soundwire/rt711-sdca.conf
Dan Kovacek 549b170196 sof-soundwire: rt711-sdca: add Headset Mic Switch to Headset sequences
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>
2026-05-28 16:01:20 +02:00

55 lines
983 B
Text

# Use case Configuration for sof-soundwire card
SectionDevice."Headphones" {
Comment "Headphones"
EnableSequence [
cset "name='Headphone Switch' on"
]
DisableSequence [
cset "name='Headphone Switch' off"
]
Value {
PlaybackPriority 200
PlaybackPCM "hw:${CardId}"
JackControl "Headphone Jack"
}
}
SectionDevice."Headset" {
Comment "Headset Microphone"
EnableSequence [
cset "name='rt711 FU0F Capture Switch' 1"
]
DisableSequence [
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"
JackControl "Headset Mic Jack"
CaptureSwitch "rt711 FU0F Capture Switch"
CaptureVolume "rt711 FU0F Capture Volume"
CaptureMixerElem "rt711 FU0F"
}
}