chromebook-ucm-conf/sof-rt5682/rt5682-headset.conf

48 lines
975 B
Plaintext
Raw Normal View History

2023-11-17 16:45:35 +00:00
If.custompcm {
Condition {
Type String
Empty "$${var:rt5682pcm}"
}
2023-11-17 17:20:45 +00:00
False.Define.pcm "${var:rt5682pcm}"
2023-11-17 16:45:35 +00:00
True.Define.pcm 1
}
2023-11-11 18:06:45 +00:00
SectionDevice."Headphones" {
Comment "Headphones"
Value {
PlaybackPriority 200
2023-11-17 16:45:35 +00:00
PlaybackPCM "hw:${CardId},${var:pcm}"
2023-11-11 18:06:45 +00:00
PlaybackMixerElem "DAC1"
JackControl "Headphone Jack"
}
EnableSequence [
cset "name='Headphone Jack Switch' on"
cset "name='HPOL Playback Switch' 1"
cset "name='HPOR Playback Switch' 1"
]
DisableSequence [
cset "name='Headphone Jack Switch' off"
cset "name='HPOL Playback Switch' 0"
cset "name='HPOR Playback Switch' 0"
]
}
2024-10-20 16:20:39 +00:00
SectionDevice."Headset" {
Comment "Headset Microphone"
Value {
CapturePriority 200
CapturePCM "hw:${CardId},${var:pcm}"
CaptureMixerElem "Headset Mic"
JackControl "Headset Mic Jack"
}
EnableSequence [
cset "name='Headset Mic Switch' on"
]
DisableSequence [
cset "name='Headset Mic Switch' off"
]
}