]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Intel: avs: Add UCM files for max98927 configuration
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 18 Jun 2024 10:46:01 +0000 (12:46 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 8 Oct 2024 08:11:24 +0000 (10:11 +0200)
Add configs for devices using max98927 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_max98927/Google-Eve-1.0-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf [new file with mode: 0644]
ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf [new symlink]
ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf [new symlink]

diff --git a/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf b/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf
new file mode 100644 (file)
index 0000000..2e941f5
--- /dev/null
@@ -0,0 +1,9 @@
+SectionDevice."Speaker" {
+       Comment "Speakers"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackChannels 2
+               PlaybackMixerElem "DSP"
+       }
+}
diff --git a/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf b/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf
new file mode 100644 (file)
index 0000000..d170a7b
--- /dev/null
@@ -0,0 +1,23 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='Left DAI Sel Mux' Left"
+       cset "name='Right DAI Sel Mux' Right"
+       cset "name='Left Speaker Volume' 3"
+       cset "name='Right Speaker Volume' 3"
+       cset "name='Left Digital Volume' 60"
+       cset "name='Right Digital Volume' 60"
+       cset "name='Left Spk Switch' on"
+       cset "name='Right Spk Switch' on"
+       cset "name='Left Boost Output Voltage' 0"
+       cset "name='Right Boost Output Voltage' 0"
+       cset "name='Left Current Limit' 7"
+       cset "name='Right Current Limit' 7"
+]
+
+
diff --git a/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf b/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf
new file mode 100644 (file)
index 0000000..1d5e989
--- /dev/null
@@ -0,0 +1,17 @@
+SectionDevice."Speaker" {
+       Comment "Speakers"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackChannels 2
+               PlaybackMixerElem "DSP"
+       }
+       EnableSequence [
+               cset "name='Left VI Sense Switch' on"
+               cset "name='Right VI Sense Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Left VI Sense Switch' off"
+               cset "name='Right VI Sense Switch' off"
+       ]
+}
diff --git a/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf b/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf
new file mode 100644 (file)
index 0000000..a00d835
--- /dev/null
@@ -0,0 +1,21 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='Left DAI Sel Mux' Left"
+       cset "name='Right DAI Sel Mux' Right"
+       cset "name='Left Speaker Volume' 5"
+       cset "name='Right Speaker Volume' 5"
+       cset "name='Left Digital Volume' 56"
+       cset "name='Right Digital Volume' 56"
+       cset "name='Left Spk Switch' on"
+       cset "name='Right Spk Switch' on"
+       cset "name='Left Current Limit' 3.00A"
+       cset "name='Right Current Limit' 3.00A"
+]
+
+
diff --git a/ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf b/ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf
new file mode 120000 (symlink)
index 0000000..dbe9188
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_max98927/Google-Eve-1.0.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf b/ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf
new file mode 120000 (symlink)
index 0000000..9c4bf41
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_max98927/HP-Soraka-1.0.conf
\ No newline at end of file