Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASUS ROG Zenith II Extreme UCM2 profile #197

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio-HiFi.conf
Original file line number Diff line number Diff line change
@@ -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"
}
}

6 changes: 6 additions & 0 deletions ucm2/USB-Audio/ASUS/Zenith-II-Main-Audio.conf
Original file line number Diff line number Diff line change
@@ -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"
}

20 changes: 20 additions & 0 deletions ucm2/USB-Audio/USB-Audio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down