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

31 lines
658 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"
]
}