]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Intel: avs: Add UCM files for da7219 configuration
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 18 Jun 2024 10:44:08 +0000 (12:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 8 Oct 2024 08:10:56 +0000 (10:10 +0200)
Add configs for devices using da7219 codec.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/418
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_da7219/avs_da7219.conf [new file with mode: 0644]
ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf [new symlink]
ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf [new symlink]

diff --git a/ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf b/ucm2/Intel/avs/avs_da7219/avs_da7219-HiFi.conf
new file mode 100644 (file)
index 0000000..95e572e
--- /dev/null
@@ -0,0 +1,38 @@
+SectionDevice."Headphone" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackChannels 2
+               PlaybackMixerElem "Headphone"
+               JackControl "Headphone Jack"
+       }
+       EnableSequence [
+               cset "name='Headphone Jack Switch' on"
+               cset "name='Headphone Switch' 1"
+       ]
+       DisableSequence [
+               cset "name='Headphone Jack Switch' off"
+               cset "name='Headphone Switch' 0"
+       ]
+}
+
+SectionDevice."Mic" {
+       Comment "Headset Microphone"
+
+       Value {
+               CapturePCM "hw:${CardId},1"
+               CaptureChannels 2
+               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/Intel/avs/avs_da7219/avs_da7219.conf b/ucm2/Intel/avs/avs_da7219/avs_da7219.conf
new file mode 100644 (file)
index 0000000..82a6010
--- /dev/null
@@ -0,0 +1,28 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_da7219/avs_da7219-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='Headphone Jack Switch' off"
+       cset "name='Headset Mic Switch' off"
+       cset "name='Playback Digital Volume' 111"
+       cset "name='Playback Digital Switch' 1"
+       cset "name='Out DACL Mux' DAIL"
+       cset "name='Out DACR Mux' DAIR"
+       cset "name='Mixer Out FilterL DACL Switch' 1"
+       cset "name='Mixer Out FilterR DACR Switch' 1"
+       cset "name='ST Mixer Out FilterL Out FilterL Switch' 1"
+       cset "name='ST Mixer Out FilterR Out FilterR Switch' 1"
+       cset "name='Mic Volume' 5"
+       cset "name='Capture Digital Volume' 111"
+       cset "name='Capture Digital Switch' 1"
+       cset "name='Mixin Volume' 10"
+       cset "name='Mixin Switch' 1"
+       cset "name='Mixer In Mic Switch' 1"
+       cset "name='Out DAIL Mux' ADC"
+       cset "name='Out DAIR Mux' ADC"
+       cset "name='Gain Ramp Rate' 1"
+]
diff --git a/ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf b/ucm2/conf.d/avs_da7219/Google-Atlas-1.0.conf
new file mode 120000 (symlink)
index 0000000..fd7b852
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_da7219/avs_da7219.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf b/ucm2/conf.d/avs_da7219/Google-Coral-rev2.conf
new file mode 120000 (symlink)
index 0000000..fd7b852
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_da7219/avs_da7219.conf
\ No newline at end of file