From: Hiago De Franco Date: Mon, 12 May 2025 16:57:32 +0000 (-0300) Subject: ucm2: IO-Boards: Toradex: smarc: add support X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1f816194a9feb2ce0c973ccc2a93551a6f641d77;p=alsa-ucm-conf.git ucm2: IO-Boards: Toradex: smarc: add support Add support for Toradex SMARC Development board, using the WM8904 audio codec. This is a carrier board for the Toradex SMARC family, where any SMARC SoM 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/562 Signed-off-by: Hiago De Franco Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/IO-Boards/Toradex/smarc/dev-HiFi.conf b/ucm2/IO-Boards/Toradex/smarc/dev-HiFi.conf new file mode 100644 index 0000000..7d2dffc --- /dev/null +++ b/ucm2/IO-Boards/Toradex/smarc/dev-HiFi.conf @@ -0,0 +1,39 @@ +# Use case configuration for Toradex SMARC Development Carrier Board +# This is a carrier board for the Toradex SMARC family, where any Toradex SMARC +# SoM (with different SoCs as iMX8MP, iMX95...) 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" + } +} + +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/IO-Boards/Toradex/smarc/dev.conf b/ucm2/IO-Boards/Toradex/smarc/dev.conf new file mode 100644 index 0000000..e795068 --- /dev/null +++ b/ucm2/IO-Boards/Toradex/smarc/dev.conf @@ -0,0 +1,17 @@ +# Use case configuration for Toradex SMARC Development Carrier Board +# This is a carrier board for the Toradex SMARC family, where any Toradex SMARC +# SoM (with different SoCs as iMX8MP, iMX95...) can be connected to it. + +Syntax 4 + +SectionUseCase."HiFi" { + File "/IO-Boards/Toradex/smarc/dev-HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Volume' 50%" + cset "name='Left Capture Inverting Mux' 'IN1L'" + cset "name='Right Capture Inverting Mux' 'IN1R'" + cset "name='Capture Volume' 31" +] diff --git a/ucm2/conf.d/simple-card/tdx-smarc-wm8904.conf b/ucm2/conf.d/simple-card/tdx-smarc-wm8904.conf new file mode 120000 index 0000000..096f833 --- /dev/null +++ b/ucm2/conf.d/simple-card/tdx-smarc-wm8904.conf @@ -0,0 +1 @@ +../../IO-Boards/Toradex/smarc/dev.conf \ No newline at end of file