From 5157a00c47e43459a1e1e57d6a5faa9d762d15d2 Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:29:24 -0300 Subject: [PATCH 1/8] ucm2: Toradex: apalis: Add support for Toradex Apalis Evaluation Board Add support for the Toradex Apalis Evaluation Board carrier board using the NAU8822 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/apalis/eval-HiFi.conf | 19 +++++++++++++++++++ ucm2/Toradex/apalis/eval.conf | 12 ++++++++++++ ucm2/conf.d/simple-card/apalis-nau8822.conf | 1 + 3 files changed, 32 insertions(+) create mode 100644 ucm2/Toradex/apalis/eval-HiFi.conf create mode 100644 ucm2/Toradex/apalis/eval.conf create mode 120000 ucm2/conf.d/simple-card/apalis-nau8822.conf diff --git a/ucm2/Toradex/apalis/eval-HiFi.conf b/ucm2/Toradex/apalis/eval-HiFi.conf new file mode 100644 index 00000000..e86eaf59 --- /dev/null +++ b/ucm2/Toradex/apalis/eval-HiFi.conf @@ -0,0 +1,19 @@ +# Use case configuration for Toradex Apalis iMX8, Evaluation Board v1.2 + +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/Toradex/apalis/eval.conf b/ucm2/Toradex/apalis/eval.conf new file mode 100644 index 00000000..28e7f165 --- /dev/null +++ b/ucm2/Toradex/apalis/eval.conf @@ -0,0 +1,12 @@ +# Use case configuration for Toradex Apalis iMX8, Evaluation Board v1.2 + +Syntax 4 + +SectionUseCase."HiFi" { + File "/Toradex/apalis/eval-HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Volume' 50%" +] diff --git a/ucm2/conf.d/simple-card/apalis-nau8822.conf b/ucm2/conf.d/simple-card/apalis-nau8822.conf new file mode 120000 index 00000000..8794772a --- /dev/null +++ b/ucm2/conf.d/simple-card/apalis-nau8822.conf @@ -0,0 +1 @@ +../../Toradex/apalis/eval.conf \ No newline at end of file From efdc68401500a33ef43bba129aa3afee68a3ca56 Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:32:22 -0300 Subject: [PATCH 2/8] ucm2: Toradex: apalis-imx8: Add support for Toradex Apalis iMX8 SoM Add support for the Toradex Apalis iMX8 system on module, using the SGTL5000 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/apalis-imx8/HiFi.conf | 19 +++++++++++++++++++ ucm2/Toradex/apalis-imx8/apalis-imx8.conf | 16 ++++++++++++++++ ucm2/conf.d/simple-card/apalis-imx8.conf | 1 + 3 files changed, 36 insertions(+) create mode 100644 ucm2/Toradex/apalis-imx8/HiFi.conf create mode 100644 ucm2/Toradex/apalis-imx8/apalis-imx8.conf create mode 120000 ucm2/conf.d/simple-card/apalis-imx8.conf diff --git a/ucm2/Toradex/apalis-imx8/HiFi.conf b/ucm2/Toradex/apalis-imx8/HiFi.conf new file mode 100644 index 00000000..0a68d89c --- /dev/null +++ b/ucm2/Toradex/apalis-imx8/HiFi.conf @@ -0,0 +1,19 @@ +# Use case configuration for Toradex Apalis iMX8 + +SectionDevice."Headphone" { + Comment "Headphone" + + EnableSequence [ + cset "name='Headphone Playback Switch' on" + ] + + DisableSequence [ + cset "name='Headphone Playback Switch' off" + ] + + Value { + PlaybackPCM "hw:${CardId}" + PlaybackVolume "Headphone Volume" + PlaybackSwitch "Headphone Switch" + } +} diff --git a/ucm2/Toradex/apalis-imx8/apalis-imx8.conf b/ucm2/Toradex/apalis-imx8/apalis-imx8.conf new file mode 100644 index 00000000..8d4e5884 --- /dev/null +++ b/ucm2/Toradex/apalis-imx8/apalis-imx8.conf @@ -0,0 +1,16 @@ +# Use case configuration for Toradex Apalis iMX8 + +Syntax 4 + +SectionUseCase."HiFi" { + File "/Toradex/apalis-imx8/HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Playback Switch' on" + cset "name='Headphone Playback Volume' 50%" + + cset "name='Lineout Playback Switch' on" + cset "name='Lineout Playback Volume' 50%" +] diff --git a/ucm2/conf.d/simple-card/apalis-imx8.conf b/ucm2/conf.d/simple-card/apalis-imx8.conf new file mode 120000 index 00000000..a6da8716 --- /dev/null +++ b/ucm2/conf.d/simple-card/apalis-imx8.conf @@ -0,0 +1 @@ +../../Toradex/apalis-imx8/apalis-imx8.conf \ No newline at end of file From 0be8348f7f09b2c37f7f93c44162a19725300a4d Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:34:02 -0300 Subject: [PATCH 3/8] ucm2: Toradex: apalis-imx6: Add support for Toradex Apalis iMX6 SoM Add support for the Toradex Apalis iMX6 system on module, using the SGTL5000 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/apalis-imx6/HiFi.conf | 37 ++++++++++++++++++++++ ucm2/Toradex/apalis-imx6/apalis-imx6.conf | 18 +++++++++++ ucm2/conf.d/fsl-asoc-card/apalis-imx6.conf | 1 + 3 files changed, 56 insertions(+) create mode 100644 ucm2/Toradex/apalis-imx6/HiFi.conf create mode 100644 ucm2/Toradex/apalis-imx6/apalis-imx6.conf create mode 120000 ucm2/conf.d/fsl-asoc-card/apalis-imx6.conf diff --git a/ucm2/Toradex/apalis-imx6/HiFi.conf b/ucm2/Toradex/apalis-imx6/HiFi.conf new file mode 100644 index 00000000..98dd397e --- /dev/null +++ b/ucm2/Toradex/apalis-imx6/HiFi.conf @@ -0,0 +1,37 @@ +# Use case configuration for Toradex Apalis iMX6 + +SectionDevice."Headphone" { + Comment "Headphone" + + EnableSequence [ + cset "name='Headphone Playback Switch' on" + ] + + DisableSequence [ + cset "name='Headphone Playback Switch' off" + ] + + Value { + PlaybackPCM "hw:${CardId}" + PlaybackSwitch "Headphone Playback Switch" + PlaybackVolume "Headphone Playback Volume" + } +} + +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/Toradex/apalis-imx6/apalis-imx6.conf b/ucm2/Toradex/apalis-imx6/apalis-imx6.conf new file mode 100644 index 00000000..0f268c9d --- /dev/null +++ b/ucm2/Toradex/apalis-imx6/apalis-imx6.conf @@ -0,0 +1,18 @@ +# Use case configuration for Toradex Apalis iMX6 + +Syntax 4 + +SectionUseCase."HiFi" { + File "/Toradex/apalis-imx6/HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Playback Switch' on" + cset "name='Headphone Playback Volume' 114" + + cset "name='PCM Playback Volume' 144" + + cset "name='Capture Switch' on" + cset "name='Capture Volume' 12" +] diff --git a/ucm2/conf.d/fsl-asoc-card/apalis-imx6.conf b/ucm2/conf.d/fsl-asoc-card/apalis-imx6.conf new file mode 120000 index 00000000..91a4a953 --- /dev/null +++ b/ucm2/conf.d/fsl-asoc-card/apalis-imx6.conf @@ -0,0 +1 @@ +../../Toradex/apalis-imx6/apalis-imx6.conf \ No newline at end of file From 2ebd8d281617d86712b147f80bee06c598282b7a Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:35:04 -0300 Subject: [PATCH 4/8] ucm2: Toradex: colibri-imx8x: Add support for Toradex Colibri iMX8X SoM Add support for the Toradex Colibri iMX8X system on module, using the SGTL5000 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/colibri-imx8x/HiFi.conf | 37 +++++++++++++++++++ ucm2/Toradex/colibri-imx8x/colibri-imx8x.conf | 18 +++++++++ ucm2/conf.d/simple-card/colibri-imx8x.conf | 1 + 3 files changed, 56 insertions(+) create mode 100644 ucm2/Toradex/colibri-imx8x/HiFi.conf create mode 100644 ucm2/Toradex/colibri-imx8x/colibri-imx8x.conf create mode 120000 ucm2/conf.d/simple-card/colibri-imx8x.conf diff --git a/ucm2/Toradex/colibri-imx8x/HiFi.conf b/ucm2/Toradex/colibri-imx8x/HiFi.conf new file mode 100644 index 00000000..814e08ec --- /dev/null +++ b/ucm2/Toradex/colibri-imx8x/HiFi.conf @@ -0,0 +1,37 @@ +# Use case configuration for Toradex Colibri iMX8X + +SectionDevice."Headphone" { + Comment "Headphone" + + EnableSequence [ + cset "name='Headphone Playback Switch' on" + ] + + DisableSequence [ + cset "name='Headphone Playback Switch' off" + ] + + Value { + PlaybackPCM "hw:${CardId}" + PlaybackSwitch "Headphone Playback Switch" + PlaybackVolume "Headphone Playback Volume" + } +} + +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/Toradex/colibri-imx8x/colibri-imx8x.conf b/ucm2/Toradex/colibri-imx8x/colibri-imx8x.conf new file mode 100644 index 00000000..6f105c67 --- /dev/null +++ b/ucm2/Toradex/colibri-imx8x/colibri-imx8x.conf @@ -0,0 +1,18 @@ +# Use case configuration for Toradex Apalis iMX8 + +Syntax 4 + +SectionUseCase."HiFi" { + File "/Toradex/colibri-imx8x/HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Playback Switch' on" + cset "name='Headphone Playback Volume' 114" + + cset "name='PCM Playback Volume' 144" + + cset "name='Capture Switch' on" + cset "name='Capture Volume' 12" +] diff --git a/ucm2/conf.d/simple-card/colibri-imx8x.conf b/ucm2/conf.d/simple-card/colibri-imx8x.conf new file mode 120000 index 00000000..1bad7728 --- /dev/null +++ b/ucm2/conf.d/simple-card/colibri-imx8x.conf @@ -0,0 +1 @@ +../../Toradex/colibri-imx8x/colibri-imx8x.conf \ No newline at end of file From 61f1db5b5a6b9214f4230e498d6f1114f38463a7 Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:36:24 -0300 Subject: [PATCH 5/8] ucm2: Toradex: colibri-imx7: Add support for Toradex Colibri iMX7 SoM Add support for the Toradex Colibri iMX7 system on module, using the SGTL5000 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/colibri-imx7/HiFi.conf | 37 +++++++++++++++++++++ ucm2/Toradex/colibri-imx7/colibri-imx7.conf | 18 ++++++++++ ucm2/conf.d/simple-card/colibri-imx7.conf | 1 + 3 files changed, 56 insertions(+) create mode 100644 ucm2/Toradex/colibri-imx7/HiFi.conf create mode 100644 ucm2/Toradex/colibri-imx7/colibri-imx7.conf create mode 120000 ucm2/conf.d/simple-card/colibri-imx7.conf diff --git a/ucm2/Toradex/colibri-imx7/HiFi.conf b/ucm2/Toradex/colibri-imx7/HiFi.conf new file mode 100644 index 00000000..aa36daa8 --- /dev/null +++ b/ucm2/Toradex/colibri-imx7/HiFi.conf @@ -0,0 +1,37 @@ +# Use case configuration for Toradex Colibri iMX7 + +SectionDevice."Headphone" { + Comment "Headphone" + + EnableSequence [ + cset "name='Headphone Playback Switch' on" + ] + + DisableSequence [ + cset "name='Headphone Playback Switch' off" + ] + + Value { + PlaybackPCM "hw:${CardId}" + PlaybackSwitch "Headphone Playback Switch" + PlaybackVolume "Headphone Playback Volume" + } +} + +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/Toradex/colibri-imx7/colibri-imx7.conf b/ucm2/Toradex/colibri-imx7/colibri-imx7.conf new file mode 100644 index 00000000..e52b4b20 --- /dev/null +++ b/ucm2/Toradex/colibri-imx7/colibri-imx7.conf @@ -0,0 +1,18 @@ +# Use case configuration for Toradex Colibri iMX7 + +Syntax 4 + +SectionUseCase."HiFi" { + File "/Toradex/colibri-imx7/HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Playback Switch' on" + cset "name='Headphone Playback Volume' 114" + + cset "name='PCM Playback Volume' 144" + + cset "name='Capture Switch' on" + cset "name='Capture Volume' 12" +] diff --git a/ucm2/conf.d/simple-card/colibri-imx7.conf b/ucm2/conf.d/simple-card/colibri-imx7.conf new file mode 120000 index 00000000..d41f8a97 --- /dev/null +++ b/ucm2/conf.d/simple-card/colibri-imx7.conf @@ -0,0 +1 @@ +../../Toradex/colibri-imx7/colibri-imx7.conf \ No newline at end of file From a2fcf7799d81081e6c7fd118ed9061e20c7b7534 Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:37:24 -0300 Subject: [PATCH 6/8] ucm2: Toradex: colibri-imx6: Add support for Toradex Colibri iMX6 SoM Add support for the Toradex Colibri iMX6 system on module, using the SGTL5000 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/colibri-imx6/HiFi.conf | 37 +++++++++++++++++++++ ucm2/Toradex/colibri-imx6/colibri-imx6.conf | 18 ++++++++++ ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf | 1 + 3 files changed, 56 insertions(+) create mode 100644 ucm2/Toradex/colibri-imx6/HiFi.conf create mode 100644 ucm2/Toradex/colibri-imx6/colibri-imx6.conf create mode 120000 ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf diff --git a/ucm2/Toradex/colibri-imx6/HiFi.conf b/ucm2/Toradex/colibri-imx6/HiFi.conf new file mode 100644 index 00000000..6326ad79 --- /dev/null +++ b/ucm2/Toradex/colibri-imx6/HiFi.conf @@ -0,0 +1,37 @@ +# Use case configuration for Toradex Colibri iMX6 + +SectionDevice."Headphone" { + Comment "Headphone" + + EnableSequence [ + cset "name='Headphone Playback Switch' on" + ] + + DisableSequence [ + cset "name='Headphone Playback Switch' off" + ] + + Value { + PlaybackPCM "hw:${CardId}" + PlaybackSwitch "Headphone Playback Switch" + PlaybackVolume "Headphone Playback Volume" + } +} + +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/Toradex/colibri-imx6/colibri-imx6.conf b/ucm2/Toradex/colibri-imx6/colibri-imx6.conf new file mode 100644 index 00000000..751d2b00 --- /dev/null +++ b/ucm2/Toradex/colibri-imx6/colibri-imx6.conf @@ -0,0 +1,18 @@ +# Use case configuration for Toradex Colibri iMX6 + +Syntax 4 + +SectionUseCase."HiFi" { + File "/Toradex/colibri-imx6/HiFi.conf" + Comment "Default" +} + +BootSequence [ + cset "name='Headphone Playback Switch' on" + cset "name='Headphone Playback Volume' 114" + + cset "name='PCM Playback Volume' 144" + + cset "name='Capture Switch' on" + cset "name='Capture Volume' 12" +] diff --git a/ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf b/ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf new file mode 120000 index 00000000..1abf3074 --- /dev/null +++ b/ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf @@ -0,0 +1 @@ +../../Toradex/colibri-imx6/colibri-imx6.conf \ No newline at end of file From 1ee89dec7a4a1f0bba30020bbd71a8c8303806e3 Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:40:46 -0300 Subject: [PATCH 7/8] ucm2: Toradex: verdin: Add support for Toradex Verdin Dahlia Board Add support for the Toradex Verdin Dahlia carrier board, using the WM8904 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/verdin/dahlia-HiFi.conf | 37 ++++++++++++++++++++++ ucm2/Toradex/verdin/dahlia.conf | 15 +++++++++ ucm2/conf.d/simple-card/verdin-wm8904.conf | 1 + 3 files changed, 53 insertions(+) create mode 100644 ucm2/Toradex/verdin/dahlia-HiFi.conf create mode 100644 ucm2/Toradex/verdin/dahlia.conf create mode 120000 ucm2/conf.d/simple-card/verdin-wm8904.conf diff --git a/ucm2/Toradex/verdin/dahlia-HiFi.conf b/ucm2/Toradex/verdin/dahlia-HiFi.conf new file mode 100644 index 00000000..662a6b3c --- /dev/null +++ b/ucm2/Toradex/verdin/dahlia-HiFi.conf @@ -0,0 +1,37 @@ +# Use case configuration for Toradex Dahlia Carrier Board + +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/Toradex/verdin/dahlia.conf b/ucm2/Toradex/verdin/dahlia.conf new file mode 100644 index 00000000..5ea51450 --- /dev/null +++ b/ucm2/Toradex/verdin/dahlia.conf @@ -0,0 +1,15 @@ +# Use case configuration for Toradex Dahlia Carrier Board + +Syntax 4 + +SectionUseCase."HiFi" { + File "/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 00000000..b31fdcf4 --- /dev/null +++ b/ucm2/conf.d/simple-card/verdin-wm8904.conf @@ -0,0 +1 @@ +../../Toradex/verdin/dahlia.conf \ No newline at end of file From aa9ee2d298168422b86762513fe75d48c9d165cc Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 10 Oct 2024 13:43:07 -0300 Subject: [PATCH 8/8] ucm2: Toradex: verdin: Add support for Toradex Verdin Development Board Add support for the Toradex Verdin Development carrier board, using the NAU8822 audio codec. Signed-off-by: Hiago De Franco --- ucm2/Toradex/verdin/dev-HiFi.conf | 19 +++++++++++++++++++ ucm2/Toradex/verdin/dev.conf | 12 ++++++++++++ ucm2/conf.d/simple-card/verdin-nau8822.conf | 1 + 3 files changed, 32 insertions(+) create mode 100644 ucm2/Toradex/verdin/dev-HiFi.conf create mode 100644 ucm2/Toradex/verdin/dev.conf create mode 120000 ucm2/conf.d/simple-card/verdin-nau8822.conf diff --git a/ucm2/Toradex/verdin/dev-HiFi.conf b/ucm2/Toradex/verdin/dev-HiFi.conf new file mode 100644 index 00000000..72cf279c --- /dev/null +++ b/ucm2/Toradex/verdin/dev-HiFi.conf @@ -0,0 +1,19 @@ +# Use case configuration for Toradex Verdin Development Carrier Board + +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/Toradex/verdin/dev.conf b/ucm2/Toradex/verdin/dev.conf new file mode 100644 index 00000000..6614335e --- /dev/null +++ b/ucm2/Toradex/verdin/dev.conf @@ -0,0 +1,12 @@ +# Use case configuration for Toradex Verdin Development Carrier Board + +Syntax 4 + +SectionUseCase."HiFi" { + File "/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 00000000..d7bd0e02 --- /dev/null +++ b/ucm2/conf.d/simple-card/verdin-nau8822.conf @@ -0,0 +1 @@ +../../Toradex/verdin/dev.conf \ No newline at end of file