2023-11-17 16:45:35 +00:00
|
|
|
If.custompcm {
|
|
|
|
Condition {
|
|
|
|
Type String
|
|
|
|
Empty "$${var:max98357apcm}"
|
|
|
|
}
|
2023-11-17 17:20:45 +00:00
|
|
|
False.Define.pcm "${var:max98357apcm}"
|
2023-11-17 16:45:35 +00:00
|
|
|
True.Define.pcm 0
|
|
|
|
}
|
|
|
|
|
2023-11-10 03:23:02 +00:00
|
|
|
SectionDevice."Speaker" {
|
|
|
|
Comment "Speaker"
|
|
|
|
|
|
|
|
Value {
|
|
|
|
PlaybackPriority 100
|
2023-11-17 16:45:35 +00:00
|
|
|
PlaybackPCM "hw:${CardId},${var:pcm}"
|
2023-11-10 03:23:02 +00:00
|
|
|
}
|
|
|
|
EnableSequence [
|
|
|
|
cset "name='Spk Switch' on"
|
|
|
|
|
|
|
|
]
|
|
|
|
DisableSequence [
|
|
|
|
cset "name='Spk Switch' off"
|
|
|
|
|
|
|
|
]
|
|
|
|
}
|