# Generic HDA devices for analog I/O
+Define.FrontMicName ""
+Define.FrontMicJack ""
Define.DeviceFrontMic ""
Define.LineDevice ""
Define.hpvol "Headphone"
Define.loctl "Line"
Define.lovol "Line"
-If.fmic {
+If.imicname {
+ Condition {
+ Type ControlExists
+ Control "name='Internal Mic Boost Volume'"
+ }
+ True.Define {
+ FrontMicName "Internal"
+ }
+}
+
+If.fmicname {
Condition {
Type ControlExists
Control "name='Front Mic Playback Switch'"
}
- True {
+ True.Define {
+ FrontMicName "Front"
+ FrontMicJack "Front Mic Jack"
+ }
+}
+
+If.fmic {
+ Condition {
+ Type String
+ Empty "${var:FrontMicName}"
+ }
+ False {
If.mic2 {
Condition {
Type String
Empty "${var:DeviceFrontMic}"
}
False.SectionDevice."${var:DeviceFrontMic}" {
- Comment "Front Stereo Microphone"
+ Comment "${var:FrontMicName} Stereo Microphone"
ConflictingDevice [
"${var:DeviceMic}"
Value {
CapturePriority 400
Include.value.File "/HDA/HDA-Capture-value.conf"
- CaptureMasterElem "Front Mic Boost"
- JackControl "Front Mic Jack"
+ CaptureMasterElem "${var:FrontMicName} Mic Boost"
+ }
+ If.jack {
+ Condition {
+ Type String
+ Empty "${var:FrontMicJack}"
+ }
+ False.Value.JackControl "${var:FrontMicJack}"
}
}
}