diff --git a/ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio-HiFi.conf b/ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio-HiFi.conf new file mode 100644 index 00000000..10e3bdc7 --- /dev/null +++ b/ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio-HiFi.conf @@ -0,0 +1,81 @@ +# inspired from Gigabyte Aorus Master, which seems to also have two devices. +# NOTE: there seems to be a typo in there, missing the closing bracket. +Define.SecondaryCardId "$${find-card:field=name,return=id,regex='Zenith II Front Headphone'}" + +SectionDevice."Speaker" { + Comment "Speakers" + Value { + PlaybackChannels 6 + PlaybackPriority 200 + PlaybackPCM "hw:${CardId}" + JackControl "Speaker Jack" + PlaybackMixerElem "Speaker" + } +} + +SectionDevice."Headphones" { + Comment "Front Headphones" + Value { + PlaybackPriority 300 + CaptureChannels 2 + PlaybackPCM "hw:${var:SecondaryCardId}" + JackCTL "hw:${var:SecondaryCardId}" + JackControl "Headphone - Output Jack" +# PlaybackMixerElem "Front Headphone" + } +} + +SectionDevice."SPDIF" { + Comment "S/PDIF Out" + Value { + PlaybackPriority 100 +# PlaybackChannels 6 + PlaybackPCM "hw:${CardId},1" +# PlaybackMixerElem "IEC958" + } +} + +# SectionDevice."SPDIF2" { +# Comment "S/PDIF Out 2" +# Value { +# PlaybackPriority 100 +# # PlaybackChannels 6 +# PlaybackPCM "hw:${CardId},1" +# # PlaybackMixerElem "IEC958" +# } +# } + +SectionDevice."Line" { + Comment "Line In" + Value { + CapturePriority 100 + CaptureChannels 2 + CapturePCM "hw:${CardId},0" + JackControl "Line Jack" + CaptureMixerElem "Line" + } +} + +SectionDevice."Mic1" { + Comment "Microphone" + Value { + CapturePriority 200 + CaptureChannels 2 + CapturePCM "hw:${CardId},1" + # NOTE: with JackControl "Speaker Jack" commented and this uncommented, + # "HiFi Output" profile gets unavailable when mic unplugged + JackControl "Mic Jack" + CaptureMixerElem "Mic" + } +} + +SectionDevice."Mic2" { + Comment "Front Microphone" + Value { + CapturePriority 300 + CapturePCM "hw:${CardId},2" + JackControl "Front Mic Jack" + CaptureMixerElem "Front Mic" + } +} + diff --git a/ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio.conf b/ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio.conf new file mode 100644 index 00000000..be12284e --- /dev/null +++ b/ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio.conf @@ -0,0 +1,6 @@ +Comment "USB-audio on ASUS ROG Zenith II Extreme desktop" +SectionUseCase."HiFi" { + Comment "HiFi Output" + File "/USB-Audio/ASUS/Zenith-II-Main-Audio-HiFi.conf" +} + diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index 7d9b72bc..0ef8f957 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -56,6 +56,26 @@ If.gigabyte-aorus-main { True.Define.ProfileName "Gigabyte/Aorus-Master-Main-Audio" } +If.linked-asus-rog-zenith-ii-extreme-front { + Condition { + # 0b05:1915 ASUS ROG ZENITH II EXTREME FRONT + Type String + Haystack "${CardComponents}" + Needle "USB0b05:1915" + } + True.Define.ProfileName "../common/linked" +} + +If.asus-rog-zenith-ii-extreme-main { + Condition { + # 0b05:1916 ASUS ROG ZENITH II EXTREME MAIN AUDIO + Type String + Haystack "${CardComponents}" + Needle "USB0b05:1916" + } + True.Define.ProfileName "ASUS/Zenith-II-Main-Audio" +} + If.steinberg-ur44 { Condition { Type String