]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: IO-Boards: Toradex: apalis: Add support for Toradex
authorHiago De Franco <hiago.franco@toradex.com>
Thu, 10 Oct 2024 16:29:24 +0000 (13:29 -0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 17:54:39 +0000 (18:54 +0100)
Add support for the Toradex Apalis Evaluation Board carrier board using
the NAU8822 audio codec.

This is a carrier board for the Apalis family, where any Apalis SoM
(iMX8, iMX6...) can be connected to it, therefore this is being added to
the IO-Boards instead of a specific hardware vendor.

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/IO-Boards/Toradex/apalis/eval-HiFi.conf [new file with mode: 0644]
ucm2/IO-Boards/Toradex/apalis/eval.conf [new file with mode: 0644]
ucm2/conf.d/simple-card/apalis-nau8822.conf [new symlink]

diff --git a/ucm2/IO-Boards/Toradex/apalis/eval-HiFi.conf b/ucm2/IO-Boards/Toradex/apalis/eval-HiFi.conf
new file mode 100644 (file)
index 0000000..09e0dd5
--- /dev/null
@@ -0,0 +1,21 @@
+# Use case configuration for Toradex Apalis iMX8, Evaluation Board v1.2
+# This is a carrier board for the Apalis family, where any Apalis SoM (with
+# different SoCs as iMX6, iMX8...) can be connected to it.
+
+SectionDevice."Headphones" {
+       Comment "Headphones"
+
+       EnableSequence [
+               cset "name='Headphone Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='Headphone Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:${CardId}"
+               PlaybackVolume "Headphone Volume"
+               PlaybackSwitch "Headphone Switch"
+       }
+}
diff --git a/ucm2/IO-Boards/Toradex/apalis/eval.conf b/ucm2/IO-Boards/Toradex/apalis/eval.conf
new file mode 100644 (file)
index 0000000..642e7a9
--- /dev/null
@@ -0,0 +1,14 @@
+# Use case configuration for Toradex Apalis iMX8, Evaluation Board v1.2
+# This is a carrier board for the Apalis family, where any Apalis SoM (with
+# different SoCs as iMX6, iMX8...) can be connected to it.
+
+Syntax 4
+
+SectionUseCase."HiFi" {
+        File "/IO-Boards/Toradex/apalis/eval-HiFi.conf"
+        Comment "Default"
+}
+
+BootSequence [
+        cset "name='Headphone Volume' 50%"
+]
diff --git a/ucm2/conf.d/simple-card/apalis-nau8822.conf b/ucm2/conf.d/simple-card/apalis-nau8822.conf
new file mode 120000 (symlink)
index 0000000..64f8fd1
--- /dev/null
@@ -0,0 +1 @@
+../../IO-Boards/Toradex/apalis/eval.conf
\ No newline at end of file