# Generic HDA devices for analog I/O
Define.DeviceFrontMic ""
+Define.LineDevice ""
Define.hpvol "Headphone"
Define.hpjack "Headphone Jack"
Define.loctl "Line"
}
}
+If.linefront {
+ Condition {
+ Type ControlExists
+ Control "name='Front Playback Volume'"
+ }
+ True.Define {
+ LineDevice "1"
+ }
+}
+
If.hplo {
Condition {
Type ControlExists
Type ControlExists
Control "name='${var:loctl} Playback Switch'"
}
- True.SectionDevice."Line" {
+ True.SectionDevice."Line${var:LineDevice}" {
Comment "Line Output"
If.conflict {
}
}
}
+
+If.linefront {
+ Condition {
+ Type ControlExists
+ Control "name='Front Playback Switch'"
+ }
+ True.SectionDevice."Line2" {
+ Comment "Second Line Output"
+
+ ConflictingDevice [
+ "Line${var:LineDevice}"
+ ]
+
+ EnableSequence [
+ cset "name='Front Playback Switch' on"
+ ]
+ DisableSequence [
+ cset "name='Front Playback Switch' off"
+ ]
+
+ Value {
+ PlaybackPriority 250
+ PlaybackPCM "hw:${CardId}"
+ PlaybackMixerElem "Front"
+ PlaybackMasterElem "Master"
+ PlaybackVolume "Front Playback Volume"
+ PlaybackSwitch "Front Playback Switch"
+ JackControl "Line Out Front Jack"
+ }
+ }
+}