]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: add initial configuration for TRX40 Gigabyte Aorus Master Audio
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 Jan 2021 10:03:56 +0000 (11:03 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Jan 2021 18:22:18 +0000 (19:22 +0100)
BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/25
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Gigabyte-Aorus-Master-Front-Headphone.conf [new symlink]
ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio.conf [new file with mode: 0644]

diff --git a/ucm2/USB-Audio/Gigabyte-Aorus-Master-Front-Headphone.conf b/ucm2/USB-Audio/Gigabyte-Aorus-Master-Front-Headphone.conf
new file mode 120000 (symlink)
index 0000000..1376437
--- /dev/null
@@ -0,0 +1 @@
+../module/lib/linked.conf
\ No newline at end of file
diff --git a/ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio-HiFi.conf b/ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio-HiFi.conf
new file mode 100644 (file)
index 0000000..5c24165
--- /dev/null
@@ -0,0 +1,61 @@
+Define.SecondaryCardId "$${CardIdByName:Aorus Master Front Headphone}"
+
+SectionDevice."Speaker" {
+       Comment "Speakers"
+       Value {
+              PlaybackChannels 8
+              PlaybackPriority 200
+              PlaybackPCM "hw:${CardId}"
+              JackControl "Line Out Jack"
+              PlaybackMixerElem "Line Out"
+       }
+}
+
+SectionDevice."Headphones" {
+       Comment "Front Headphones"
+       Value {
+               PlaybackPriority 300
+               PlaybackPCM "hw:${var:SecondaryCardId}"
+               JackCTL "hw:${var:SecondaryCardId}"
+               JackControl "Headphone - Output Jack"
+       }
+}
+
+SectionDevice."SPDIF" {
+       Comment "S/PDIF Out"
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+               # PlaybackMixerElem "IEC958"
+       }
+}
+
+SectionDevice."Line" {
+       Comment "Line In"
+       Value {
+               CapturePriority 100
+               CapturePCM "hw:${CardId}"
+               JackControl "Line Jack"
+               CaptureMixerElem "Line"
+       }
+}
+
+SectionDevice."Mic1" {
+       Comment "Microphone"
+       Value {
+               CapturePriority 200
+               CapturePCM "hw:${CardId},1"
+               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/Gigabyte-Aorus-Master-Main-Audio.conf b/ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio.conf
new file mode 100644 (file)
index 0000000..656b989
--- /dev/null
@@ -0,0 +1,6 @@
+Syntax 3
+Comment "Gigabyte Aorus Integrated Audio"
+SectionUseCase."HiFi" {
+       File "Gigabyte-Aorus-Master-Main-Audio-HiFi.conf"
+       Comment "Default Alsa Profile"
+}