]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Intel: avs: Add UCM files for max98357a configuration
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 18 Jun 2024 10:44:58 +0000 (12:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 8 Oct 2024 08:11:08 +0000 (10:11 +0200)
Add configs for devices using max98357a 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_max98357a/avs_max98357a-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf [new file with mode: 0644]
ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf [new symlink]
ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf [new symlink]
ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf [new symlink]

diff --git a/ucm2/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf b/ucm2/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf
new file mode 100644 (file)
index 0000000..9484a45
--- /dev/null
@@ -0,0 +1,15 @@
+SectionDevice."Speaker" {
+       Comment "Speakers"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+       }
+
+       EnableSequence [
+               cset "name='Spk Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='Spk Switch' off"
+       ]
+}
diff --git a/ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf b/ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf
new file mode 100644 (file)
index 0000000..a3ec6e2
--- /dev/null
@@ -0,0 +1,6 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
diff --git a/ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf b/ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf
new file mode 120000 (symlink)
index 0000000..3823fda
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_max98357a/avs_max98357a.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf b/ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf
new file mode 120000 (symlink)
index 0000000..3823fda
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_max98357a/avs_max98357a.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf b/ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf
new file mode 120000 (symlink)
index 0000000..3823fda
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_max98357a/avs_max98357a.conf
\ No newline at end of file