From 2f42c53870ccf91572ef3d41fba17932a3df6ddd Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:43:07 -0300 Subject: [PATCH] ucm2: IO-Boards: Toradex: verdin: Add support for Toradex Add support for the Toradex Verdin Development carrier board, using the NAU8822 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 --- ucm2/IO-Boards/Toradex/verdin/dev-HiFi.conf | 21 +++++++++++++++++++++ ucm2/IO-Boards/Toradex/verdin/dev.conf | 14 ++++++++++++++ ucm2/conf.d/simple-card/verdin-nau8822.conf | 1 + 3 files changed, 36 insertions(+) create mode 100644 ucm2/IO-Boards/Toradex/verdin/dev-HiFi.conf create mode 100644 ucm2/IO-Boards/Toradex/verdin/dev.conf create mode 120000 ucm2/conf.d/simple-card/verdin-nau8822.conf diff --git a/ucm2/IO-Boards/Toradex/verdin/dev-HiFi.conf b/ucm2/IO-Boards/Toradex/verdin/dev-HiFi.conf new file mode 100644 index 0000000..f4b60f1 --- /dev/null +++ b/ucm2/IO-Boards/Toradex/verdin/dev-HiFi.conf @@ -0,0 +1,21 @@ +# Use case configuration for Toradex Verdin Development 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. + +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" + } +} diff --git a/ucm2/IO-Boards/Toradex/verdin/dev.conf b/ucm2/IO-Boards/Toradex/verdin/dev.conf new file mode 100644 index 0000000..55fa32c --- /dev/null +++ b/ucm2/IO-Boards/Toradex/verdin/dev.conf @@ -0,0 +1,14 @@ +# Use case configuration for Toradex Verdin Development 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/dev-HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Volume' 50%" +] diff --git a/ucm2/conf.d/simple-card/verdin-nau8822.conf b/ucm2/conf.d/simple-card/verdin-nau8822.conf new file mode 120000 index 0000000..4f2e402 --- /dev/null +++ b/ucm2/conf.d/simple-card/verdin-nau8822.conf @@ -0,0 +1 @@ +../../IO-Boards/Toradex/verdin/dev.conf \ No newline at end of file -- 2.47.1