]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Toradex: apalis-imx8: Set default values for input and output devices
authorLeonardo Costa <leonardo.costa@toradex.com>
Mon, 11 May 2026 18:34:48 +0000 (15:34 -0300)
committerJaroslav Kysela <perex@perex.cz>
Wed, 27 May 2026 11:08:33 +0000 (13:08 +0200)
Add EnableSequence/DisableSequence entries for the Mic input device. Align
BootSequence with other Toradex NXP module configurations. Remove Lineout
from the BootSequence, as the codec Lineout output pin is not connected on
the Apalis iMX8.

Previously uninitialized configurations were set unpredictably at boot, causing
high-noise input/output behavior. Set these configs explicitly to ensure the
sound card starts in a known working state.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/761
Signed-off-by: Leonardo Costa <leonardo.costa@toradex.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf
ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf

index cb5b571015210a4861252d13d69916fa13915510..fc159d652c2633b4440fba655ce3286fd9d9c126 100644 (file)
@@ -17,3 +17,21 @@ SectionDevice."Headphones" {
                PlaybackSwitch "Headphone Switch"
        }
 }
+
+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"
+       }
+}
index a1df90ef2254c447d13b52fe6be08843d3610eb9..3f93ac30a7e290a09a03620739be821eadffd14b 100644 (file)
@@ -9,8 +9,10 @@ SectionUseCase."HiFi" {
 
 BootSequence [
        cset "name='Headphone Playback Switch' on"
-       cset "name='Headphone Playback Volume' 50%"
+       cset "name='Headphone Playback Volume' 114"
 
-       cset "name='Lineout Playback Switch' on"
-       cset "name='Lineout Playback Volume' 50%"
+       cset "name='PCM Playback Volume' 144"
+
+       cset "name='Capture Switch' on"
+       cset "name='Capture Volume' 12"
 ]