48 lines
975 B
Plaintext
48 lines
975 B
Plaintext
If.custompcm {
|
|
Condition {
|
|
Type String
|
|
Empty "$${var:rt5682pcm}"
|
|
}
|
|
False.Define.pcm "${var:rt5682pcm}"
|
|
True.Define.pcm 1
|
|
}
|
|
|
|
SectionDevice."Headphones" {
|
|
Comment "Headphones"
|
|
|
|
Value {
|
|
PlaybackPriority 200
|
|
PlaybackPCM "hw:${CardId},${var:pcm}"
|
|
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"
|
|
|
|
]
|
|
}
|
|
|
|
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"
|
|
]
|
|
}
|