-Define.SPDIFIndex "3"
-Define.Mic1Name "Microphone"
+Define {
+ SpeakerMixer "PCM"
+ SpeakerJack "Speaker - Output Jack"
+ SpeakerPCM "hw:${CardId}"
+
+ HeadphonesName "Front Headphones"
+ HeadphonesMixer "PCM,1"
+ HeadphonesJack "Headphone - Output Jack"
+ HeadphonesPCM "hw:${CardId},1"
+
+ Mic1Name "Microphone"
+ Mic1Mixer "Mic"
+ Mic1Jack "Mic - Input Jack"
+ Mic1PCM "hw:${CardId},2"
+
+ Mic2Name ""
+ Mic2Mixer ""
+ Mic2Jack ""
+ Mic2PCM ""
+
+ Line1Name "Line Input"
+ Line1Mixer "Line"
+ Line1Jack "Line - Input Jack"
+ Line1PCM "hw:${CardId},1"
+
+ SpdifName "S/PDIF Output"
+ SpdifPCM "hw:${CardId},3"
+}
If.asus-rog-usb {
Condition {
String "${CardComponents}"
Regex "USB(0b05:1996)"
}
- True {
- Define.SPDIFIndex "2"
- Define.Mic1Name "Front Microphone"
-
- SectionDevice."Mic2" {
- # On ASUS ROG Maximus XIII and others, back microphone
- Comment "Microphone"
- Value {
- CapturePriority 300
- CapturePCM "hw:${CardId}"
- JackControl "Mic - Input Jack"
- CaptureMixerElem "Mic"
- }
- }
+ True.Define {
+ SpdifPCM "hw:${CardId},2"
+ Mic1Name "Front Microphone"
+ Mic2Name "Microphone"
+ Mic2Mixer "Analog In"
+ Mic2Jack "Analog In - Input Jack"
+ Mic2PCM "hw:${CardId}"
}
}
+SectionVerb {
+ EnableSequence [
+ disdevall ""
+ ]
+
+ Value.TQ "HiFi"
+}
+
SectionDevice."Speaker" {
Comment "Speakers"
+
+ EnableSequence [
+ cset "name='${var:SpeakerMixer} Playback Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='${var:SpeakerMixer} Playback Switch' off"
+ ]
+
Value {
PlaybackChannels 2
PlaybackPriority 200
- PlaybackPCM "hw:${CardId}"
- JackControl "Speaker - Output Jack"
- PlaybackMixerElem "Speaker"
+ PlaybackPCM "${var:SpeakerPCM}"
+ JackControl "${var:SpeakerJack}"
+ PlaybackMixerElem "${var:SpeakerMixer}"
}
+
Variant."HiFi 5+1".Value.PlaybackChannels 6
Variant."HiFi 7+1".Value.PlaybackChannels 8
}
SectionDevice."Headphones" {
- Comment "Front Headphones"
+ Comment "${var:HeadphonesName}"
+
+ EnableSequence [
+ cset "name='${var:HeadphonesMixer} Playback Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='${var:HeadphonesMixer} Playback Switch' off"
+ ]
+
Value {
PlaybackPriority 300
- PlaybackPCM "hw:${CardId},1"
- JackControl "Headphone - Output Jack"
- PlaybackMixerElem "Front Headphone"
+ PlaybackPCM "${var:HeadphonesPCM}"
+ JackControl "${var:HeadphonesJack}"
+ PlaybackMixerElem "${var:HeadphonesMixer}"
}
}
-SectionDevice."SPDIF" {
- Comment "S/PDIF Out"
- Value {
- PlaybackPriority 100
- PlaybackPCM "hw:${CardId},${var:SPDIFIndex}"
- PlaybackMixerElem "IEC958"
+If.spdif {
+ Condition {
+ Type String
+ Empty "${var:SpdifName}"
+ }
+ False.SectionDevice."SPDIF" {
+ Comment "${var:SpdifName}"
+
+ Value {
+ PlaybackPriority 100
+ PlaybackPCM "hw:${var:SpdifPCM}"
+ }
}
}
-SectionDevice."Line" {
- EnableSequence [
- cset "name='Line Capture Switch' on"
- ]
+If.line1 {
+ Condition {
+ Type String
+ Empty "${var:Line1Name}"
+ }
+ False.SectionDevice."Line1" {
+ Comment "${var:Line1Name}"
- Comment "Line In"
- Value {
- CapturePriority 100
- CapturePCM "hw:${CardId},1"
- JackControl "Line - Input Jack"
- CaptureMixerElem "Line"
+ EnableSequence [
+ cset "name='${var:Line1Mixer} Capture Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='${var:Line1Mixer} Capture Switch' off"
+ ]
+
+ Value {
+ CapturePriority 100
+ CapturePCM "${var:Line1PCM}"
+ JackControl "${var:Line1Jack}"
+ CaptureMixerElem "${var:Line1Mixer}"
+ }
}
}
-SectionDevice."Mic1" {
- EnableSequence [
- cset "name='Mic Capture Switch' on"
- ]
+If.mic1 {
+ Condition {
+ Type String
+ Empty "${var:Mic1Name}"
+ }
+ False.SectionDevice."Mic1" {
+ Comment "${var:Mic1Name}"
- Comment "${var:Mic1Name}"
- Value {
- CapturePriority 200
- CapturePCM "hw:${CardId},2"
- JackControl "Mic - Input Jack"
- CaptureMixerElem "Mic"
+ EnableSequence [
+ cset "name='${var:Mic1Mixer} Capture Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='${var:Mic1Mixer} Capture Switch' off"
+ ]
+
+ Value {
+ CapturePriority 300
+ CapturePCM "${var:Mic1PCM}"
+ JackControl "${var:Mic1Jack}"
+ CaptureMixerElem "${var:Mic1Mixer}"
+ }
+ }
+}
+
+If.mic2 {
+ Condition {
+ Type String
+ Empty "${var:Mic2Name}"
+ }
+ False.SectionDevice."Mic2" {
+ Comment "${var:Mic2Name}"
+
+ EnableSequence [
+ cset "name='${var:Mic2Mixer} Capture Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='${var:Mic2Mixer} Capture Switch' off"
+ ]
+
+ Value {
+ CapturePriority 400
+ CapturePCM "hw:${CardId}"
+ JackControl "${var:Mic2Jack}"
+ CaptureMixerElem "${var:Mic2Mixer}"
+ }
}
}