- Fix msm8916-wcd ALSA UCM2 configs (Earpiece.conf, Speaker.conf, Headphones.conf, PrimaryMic.conf, HeadsetMic.conf) so Speaker, Earpiece, and Headphones outputs and Mic1/Headset inputs are always available and mutually exclusive without invalid mixer controls - Add event-driven wired headphone/headset jack detection and automatic audio routing in sxmo_soundmonitor.sh via evtest on the msm8916 Headset Jack input device - Make Earpiece, Speaker, and Headphones first-class routable output devices across sxmo_audio.sh, sxmo_modemaudio.sh, xdrawer, dmenu, and callscreen - Make volume controls strictly linear across all channels by keeping PipeWire software gain at unity (100%) when unmuted and linearly mapping 0-100% to hardware digital volume registers (RX3 for Speaker, RX1 for Earpiece, RX1+RX2 for Headphones, TX1+ADC for Microphone)
26 lines
451 B
Plaintext
26 lines
451 B
Plaintext
SectionDevice."Mic1" {
|
|
Comment "Primary Microphone"
|
|
|
|
ConflictingDevice [
|
|
"Headset"
|
|
]
|
|
|
|
EnableSequence [
|
|
cset "name='DEC1 MUX' 'ADC1'"
|
|
cset "name='CIC1 MUX' 'AMIC'"
|
|
cset "name='ADC1 Volume' 8"
|
|
cset "name='TX1 Digital Volume' 88"
|
|
]
|
|
|
|
DisableSequence [
|
|
cset "name='DEC1 MUX' 'ZERO'"
|
|
cset "name='ADC1 Volume' 0"
|
|
]
|
|
|
|
Value {
|
|
CapturePCM "${var:WcdCapturePCM}"
|
|
CaptureChannels 2
|
|
CapturePriority 400
|
|
}
|
|
}
|