From: Leonardo Costa Date: Mon, 11 May 2026 18:34:48 +0000 (-0300) Subject: ucm2: Toradex: apalis-imx8: Set default values for input and output devices X-Git-Tag: v1.2.16~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=51f7d780da3adb10b6fb72c5c431b4d1aec23430;p=alsa-ucm-conf.git ucm2: Toradex: apalis-imx8: Set default values for input and output devices 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 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf b/ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf index cb5b571..fc159d6 100644 --- a/ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf +++ b/ucm2/NXP/iMX8/Toradex/apalis-imx8/HiFi.conf @@ -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" + } +} diff --git a/ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf b/ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf index a1df90e..3f93ac3 100644 --- a/ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf +++ b/ucm2/NXP/iMX8/Toradex/apalis-imx8/apalis-imx8.conf @@ -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" ]