]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
meson: add initial p241 support
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 27 Sep 2021 20:23:40 +0000 (22:23 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Oct 2023 10:06:10 +0000 (11:06 +0100)
Add support for the p241 board, the amlogic s905x reference design

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/355
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Amlogic/p241/p241-HiFi.conf [new file with mode: 0644]
ucm2/Amlogic/p241/p241.conf [new file with mode: 0644]
ucm2/conf.d/gx-sound-card/GXL-P241.conf [new symlink]

diff --git a/ucm2/Amlogic/p241/p241-HiFi.conf b/ucm2/Amlogic/p241/p241-HiFi.conf
new file mode 100644 (file)
index 0000000..056116e
--- /dev/null
@@ -0,0 +1,40 @@
+SectionDevice."Line" {
+       Comment "Analog Lineout"
+
+       EnableSequence [
+               cset "name='AIU ACODEC SRC' I2S"
+               cset "name='AIU ACODEC OUT EN Switch' 1"
+               cset "name='ACODEC Playback Switch' 1"
+       ]
+
+       DisableSequence [
+               cset "name='ACODEC Playback Switch' 0"
+               cset "name='AIU ACODEC OUT EN Switch' 0"
+               cset "name='AIU ACODEC SRC' DISABLED"
+       ]
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},0"
+               PlaybackChannels 2
+               PlaybackVolume "ACODEC Playback Volume"
+               PlaybackMixerElem "ACODEC"
+       }
+}
+
+SectionDevice."HDMI" {
+       Comment "HDMI"
+
+       EnableSequence [
+               cset "name='AIU HDMI CTRL SRC' I2S"
+       ]
+
+       DisableSequence [
+               cset "name='AIU HDMI CTRL SRC' DISABLED"
+       ]
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},0"
+       }
+}
diff --git a/ucm2/Amlogic/p241/p241.conf b/ucm2/Amlogic/p241/p241.conf
new file mode 100644 (file)
index 0000000..b6f4010
--- /dev/null
@@ -0,0 +1,31 @@
+# Use case for the p241 Amlogic s805x reference design
+
+Syntax 3
+
+SectionUseCase."HiFi" {
+       File "/Amlogic/p241/p241-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+FixedBootSequence [
+       cset "name='AIU SPDIF SRC SEL' SPDIF"
+]
+
+BootSequence [
+       cset "name='AIU ACODEC I2S Lane Select' 0"
+       cset "name='ACODEC Playback Channel Mode' Stereo"
+       cset "name='ACODEC Playback Volume' 80%"
+       cset "name='ACODEC Ramp Rate' Fast"
+       cset "name='ACODEC Volume Ramp Switch' on"
+       cset "name='ACODEC Mute Ramp Switch' on"
+       cset "name='ACODEC Unmute Ramp Switch' on"
+       cset "name='ACODEC Right DAC Sel' Right"
+       cset "name='ACODEC Left DAC Sel' Left"
+]
+
+SectionDefaults [
+       cset "name='ACODEC Playback Switch' off"
+       cset "name='AIU ACODEC OUT EN Switch' off"
+       cset "name='AIU ACODEC SRC' DISABLED"
+       cset "name='AIU HDMI CTRL SRC' DISABLED"
+]
diff --git a/ucm2/conf.d/gx-sound-card/GXL-P241.conf b/ucm2/conf.d/gx-sound-card/GXL-P241.conf
new file mode 120000 (symlink)
index 0000000..a05d657
--- /dev/null
@@ -0,0 +1 @@
+../../Amlogic/p241/p241.conf
\ No newline at end of file