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>
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"
+ }
+}
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"
]