From 38ec93a30bb26ebf23eef438822ed4237a12bec0 Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:40:46 -0300 Subject: [PATCH] ucm2: IO-Boards: Toradex: verdin: Add support for Toradex Add support for the Toradex Verdin Dahlia carrier board, using the WM8904 audio codec. This is a carrier board for the Verdin family, where any Verdin SoM (NXP, TI...) 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/448 Signed-off-by: Hiago De Franco Signed-off-by: Jaroslav Kysela --- .../IO-Boards/Toradex/verdin/dahlia-HiFi.conf | 39 +++++++++++++++++++ ucm2/IO-Boards/Toradex/verdin/dahlia.conf | 17 ++++++++ ucm2/conf.d/simple-card/verdin-wm8904.conf | 1 + 3 files changed, 57 insertions(+) create mode 100644 ucm2/IO-Boards/Toradex/verdin/dahlia-HiFi.conf create mode 100644 ucm2/IO-Boards/Toradex/verdin/dahlia.conf create mode 120000 ucm2/conf.d/simple-card/verdin-wm8904.conf diff --git a/ucm2/IO-Boards/Toradex/verdin/dahlia-HiFi.conf b/ucm2/IO-Boards/Toradex/verdin/dahlia-HiFi.conf new file mode 100644 index 0000000..7b7c9b1 --- /dev/null +++ b/ucm2/IO-Boards/Toradex/verdin/dahlia-HiFi.conf @@ -0,0 +1,39 @@ +# Use case configuration for Toradex Dahlia Carrier Board +# This is a carrier board for the Verdin family, where any Verdin SoM (with +# different SoCs as NXP, TI...) can be connected to it. + +SectionDevice."Headphone" { + Comment "Headphone" + + EnableSequence [ + cset "name='Headphone Switch' on" + ] + + DisableSequence [ + cset "name='Headphone Switch' off" + ] + + Value { + PlaybackPCM "hw:${CardId}" + PlaybackVolume "Headphone Volume" + PlaybackSwitch "Headphone Switch" + } +} + +SectionDevice."Microphone" { + 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/verdin/dahlia.conf b/ucm2/IO-Boards/Toradex/verdin/dahlia.conf new file mode 100644 index 0000000..b9c80be --- /dev/null +++ b/ucm2/IO-Boards/Toradex/verdin/dahlia.conf @@ -0,0 +1,17 @@ +# Use case configuration for Toradex Dahlia Carrier Board +# This is a carrier board for the Apalis family, where any Apalis SoM (with +# different SoCs as iMX6, iMX8...) can be connected to it. + +Syntax 4 + +SectionUseCase."HiFi" { + File "/IO-Boards/Toradex/verdin/dahlia-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/verdin-wm8904.conf b/ucm2/conf.d/simple-card/verdin-wm8904.conf new file mode 120000 index 0000000..1880c0b --- /dev/null +++ b/ucm2/conf.d/simple-card/verdin-wm8904.conf @@ -0,0 +1 @@ +../../IO-Boards/Toradex/verdin/dahlia.conf \ No newline at end of file -- 2.47.3