]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: NXP: iMX6: Toradex: colibri-imx6: Add support for
authorHiago De Franco <hiago.franco@toradex.com>
Thu, 10 Oct 2024 16:37:24 +0000 (13:37 -0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 17:54:39 +0000 (18:54 +0100)
Add support for the Toradex Colibri iMX6 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/iMX6/Toradex/colibri-imx6/HiFi.conf [new file with mode: 0644]
ucm2/NXP/iMX6/Toradex/colibri-imx6/colibri-imx6.conf [new file with mode: 0644]
ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf [new symlink]

diff --git a/ucm2/NXP/iMX6/Toradex/colibri-imx6/HiFi.conf b/ucm2/NXP/iMX6/Toradex/colibri-imx6/HiFi.conf
new file mode 100644 (file)
index 0000000..6326ad7
--- /dev/null
@@ -0,0 +1,37 @@
+# Use case configuration for Toradex Colibri iMX6
+
+SectionDevice."Headphone" {
+       Comment "Headphone"
+
+       EnableSequence [
+               cset "name='Headphone Playback Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='Headphone Playback Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:${CardId}"
+               PlaybackSwitch "Headphone Playback Switch"
+               PlaybackVolume "Headphone Playback Volume"
+       }
+}
+
+SectionDevice."Mic" {
+       Comment "Microphone"
+
+       EnableSequence [
+               cset "name='Capture Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='Capture Switch' off"
+       ]
+
+       Value {
+               CapturePCM "hw:${CardId}"
+               CaptureVolume "Capture Volume"
+               CaptureSwitch "Capture Switch"
+       }
+}
diff --git a/ucm2/NXP/iMX6/Toradex/colibri-imx6/colibri-imx6.conf b/ucm2/NXP/iMX6/Toradex/colibri-imx6/colibri-imx6.conf
new file mode 100644 (file)
index 0000000..1359edc
--- /dev/null
@@ -0,0 +1,18 @@
+# Use case configuration for Toradex Colibri iMX6
+
+Syntax 4
+
+SectionUseCase."HiFi" {
+        File "/NXP/iMX6/Toradex/colibri-imx6/HiFi.conf"
+        Comment "Default"
+}
+
+BootSequence [
+        cset "name='Headphone Playback Switch' on"
+        cset "name='Headphone Playback Volume' 114"
+
+        cset "name='PCM Playback Volume' 144"
+
+        cset "name='Capture Switch' on"
+        cset "name='Capture Volume' 12"
+]
diff --git a/ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf b/ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf
new file mode 120000 (symlink)
index 0000000..43d9e75
--- /dev/null
@@ -0,0 +1 @@
+../../NXP/iMX6/Toradex/colibri-imx6/colibri-imx6.conf
\ No newline at end of file