]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: NXP: iMX8: Toradex: apalis-imx8: Add support for
authorHiago De Franco <hiago.franco@toradex.com>
Thu, 10 Oct 2024 16:32:22 +0000 (13:32 -0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 17:54:39 +0000 (18:54 +0100)
Add support for the Toradex Apalis iMX8 system on module, using the
SGTL5000 audio codec.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/448
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf [new file with mode: 0644]
ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf [new file with mode: 0644]
ucm2/conf.d/simple-card/apalis-imx8.conf [new symlink]

diff --git a/ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf b/ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf
new file mode 100644 (file)
index 0000000..0a68d89
--- /dev/null
@@ -0,0 +1,19 @@
+# Use case configuration for Toradex Apalis iMX8
+
+SectionDevice."Headphone" {
+       Comment "Headphone"
+
+       EnableSequence [
+               cset "name='Headphone Playback Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='Headphone Playback Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:${CardId}"
+               PlaybackVolume "Headphone Volume"
+               PlaybackSwitch "Headphone Switch"
+       }
+}
diff --git a/ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf b/ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf
new file mode 100644 (file)
index 0000000..8d4e588
--- /dev/null
@@ -0,0 +1,16 @@
+# Use case configuration for Toradex Apalis iMX8
+
+Syntax 4
+
+SectionUseCase."HiFi" {
+        File "/Toradex/apalis-imx8/HiFi.conf"
+        Comment "Default"
+}
+
+BootSequence [
+        cset "name='Headphone Playback Switch' on"
+        cset "name='Headphone Playback Volume' 50%"
+
+        cset "name='Lineout Playback Switch' on"
+        cset "name='Lineout Playback Volume' 50%"
+]
diff --git a/ucm2/conf.d/simple-card/apalis-imx8.conf b/ucm2/conf.d/simple-card/apalis-imx8.conf
new file mode 120000 (symlink)
index 0000000..2e4359e
--- /dev/null
@@ -0,0 +1 @@
+../../NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf
\ No newline at end of file