From: Hiago De Franco Date: Thu, 10 Oct 2024 16:36:24 +0000 (-0300) Subject: ucm2: NXP: iMX7: Toradex: colibri-imx7: Add support for X-Git-Tag: v1.2.14~31 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3692d32b37c44b189005084f8929b94549b2e3f9;p=alsa-ucm-conf.git ucm2: NXP: iMX7: Toradex: colibri-imx7: Add support for Add support for the Toradex Colibri iMX7 system on module, using the SGTL5000 audio codec. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/448 Signed-off-by: Hiago De Franco Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/NXP/iMX7/Toradex/colibri-imx7/HiFi.conf b/ucm2/NXP/iMX7/Toradex/colibri-imx7/HiFi.conf new file mode 100644 index 0000000..aa36daa --- /dev/null +++ b/ucm2/NXP/iMX7/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/NXP/iMX7/Toradex/colibri-imx7/colibri-imx7.conf b/ucm2/NXP/iMX7/Toradex/colibri-imx7/colibri-imx7.conf new file mode 100644 index 0000000..a5e7651 --- /dev/null +++ b/ucm2/NXP/iMX7/Toradex/colibri-imx7/colibri-imx7.conf @@ -0,0 +1,18 @@ +# Use case configuration for Toradex Colibri iMX7 + +Syntax 4 + +SectionUseCase."HiFi" { + File "/NXP/iMX7/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 0000000..328009e --- /dev/null +++ b/ucm2/conf.d/simple-card/colibri-imx7.conf @@ -0,0 +1 @@ +../../NXP/iMX7/Toradex/colibri-imx7/colibri-imx7.conf \ No newline at end of file