Define.DeviceFrontMic ""
Define.hpvol "Headphone"
Define.hpjack "Headphone Jack"
-Define.lovol "Line Out"
+Define.loctl "Line"
+Define.lovol "Line"
If.fmic {
Condition {
}
}
+If.lineout {
+ Condition {
+ Type ControlExists
+ Control "name='Line Out Playback Volume'"
+ }
+ True.Define {
+ loctl "Line Out"
+ lovol "Line Out"
+ }
+}
+
If.hplo {
Condition {
Type ControlExists
}
}
-If.lineout {
+If.line {
Condition {
Type ControlExists
- Control "name='Line Out Playback Switch'"
+ Control "name='${var:loctl} Playback Switch'"
}
True.SectionDevice."Line" {
Comment "Line Output"
}
EnableSequence [
- cset "name='Line Out Playback Switch' on"
+ cset "name='${var:loctl} Playback Switch' on"
]
DisableSequence [
- cset "name='Line Out Playback Switch' off"
+ cset "name='${var:loctl} Playback Switch' off"
]
Value {
PlaybackMixerElem "${var:lovol}"
PlaybackMasterElem "Master"
PlaybackVolume "${var:lovol} Playback Volume"
- PlaybackSwitch "Line Out Playback Switch"
- JackControl "Line Out Jack"
+ PlaybackSwitch "${var:loctl} Playback Switch"
+ JackControl "${var:loctl} Jack"
}
}
}