]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: add acpd7219m98357
authorWeirdTreeThing <bradyn127@protonmail.com>
Wed, 18 Oct 2023 22:56:27 +0000 (18:56 -0400)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Oct 2023 13:32:15 +0000 (14:32 +0100)
For "grunt" chromebooks

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/361
Signed-off-by: WeirdTreeThing <bradyn127@protonmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/AMD/acpd7219m98357/HiFi.conf [new file with mode: 0644]
ucm2/AMD/acpd7219m98357/acpd7219m98357.conf [new file with mode: 0644]
ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf [new symlink]

diff --git a/ucm2/AMD/acpd7219m98357/HiFi.conf b/ucm2/AMD/acpd7219m98357/HiFi.conf
new file mode 100644 (file)
index 0000000..ff64063
--- /dev/null
@@ -0,0 +1,77 @@
+SectionVerb {
+       EnableSequence [
+               cset "name='Playback Digital Volume' 111"
+               cset "name='Playback Digital Switch' on"
+               cset "name='Out DACL Mux' DAIL"
+               cset "name='Out DACR Mux' DAIR"
+               cset "name='Mixer Out FilterL DACL Switch' on"
+               cset "name='Mixer Out FilterR DACR Switch' on"
+               cset "name='ST Mixer Out FilterL Out FilterL Switch' on"
+               cset "name='ST Mixer Out FilterR Out FilterR Switch' on"
+               cset "name='Headphone Switch' off"
+               cset "name='Headset Mic Switch' off"
+               cset "name='Mic Volume' 5"
+               cset "name='Capture Digital Volume' 111"
+               cset "name='Capture Digital Switch' on"
+               cset "name='Mixin Volume' 10"
+               cset "name='Mixin Switch' on"
+               cset "name='Mixer In Mic Switch' on"
+               cset "name='Out DAIL Mux' ADC"
+               cset "name='Out DAIR Mux' ADC"
+               cset "name='Gain Ramp Rate' 1"
+       ]
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker"
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},2"
+       }
+}
+
+SectionDevice."Headphones" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},0"
+               PlaybackMixerElem "Headphone"
+               JackControl "Headphone Jack"
+       }
+       EnableSequence [
+               cset "name='Headphone Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Headphone Switch' off"
+       ]
+}
+
+SectionDevice."Mic" {
+       Comment "Internal Microphone"
+
+       Value {
+               CapturePriority 100
+               CapturePCM "hw:${CardId},4"
+       }
+}
+
+SectionDevice."Headset" {
+       Comment "Headset Microphone"
+
+       Value {
+               CapturePriority 200
+               CapturePCM "hw:${CardId},1"
+               CaptureMixerElem "Headset Mic"
+               JackControl "Headset Mic Jack"
+       }
+       EnableSequence [
+               cset "name='Headset Mic Switch' on"
+               cset "name='Mic Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Headset Mic Switch' off"
+               cset "name='Mic Switch' off"
+       ]
+}
diff --git a/ucm2/AMD/acpd7219m98357/acpd7219m98357.conf b/ucm2/AMD/acpd7219m98357/acpd7219m98357.conf
new file mode 100644 (file)
index 0000000..2cb6c95
--- /dev/null
@@ -0,0 +1,6 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Default"
+}
diff --git a/ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf b/ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf
new file mode 120000 (symlink)
index 0000000..34238f0
--- /dev/null
@@ -0,0 +1 @@
+../../AMD/acpd7219m98357/acpd7219m98357.conf
\ No newline at end of file