From d881811d99c9cc0c18669bb936bab26f5d1ad305 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Tue, 18 Jun 2024 12:46:01 +0200 Subject: [PATCH] ucm2: Intel: avs: Add UCM files for max98927 configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add configs for devices using max98927 codec. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/418 Signed-off-by: Amadeusz Sławiński Signed-off-by: Jaroslav Kysela --- .../avs/avs_max98927/Google-Eve-1.0-HiFi.conf | 9 ++++++++ .../avs/avs_max98927/Google-Eve-1.0.conf | 23 +++++++++++++++++++ .../avs/avs_max98927/HP-Soraka-1.0-HiFi.conf | 17 ++++++++++++++ .../Intel/avs/avs_max98927/HP-Soraka-1.0.conf | 21 +++++++++++++++++ ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf | 1 + ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf | 1 + 6 files changed, 72 insertions(+) create mode 100644 ucm2/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf create mode 100644 ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf create mode 100644 ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf create mode 100644 ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf create mode 120000 ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf create mode 120000 ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf diff --git a/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf b/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf new file mode 100644 index 0000000..2e941f5 --- /dev/null +++ b/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf @@ -0,0 +1,9 @@ +SectionDevice."Speaker" { + Comment "Speakers" + + Value { + PlaybackPCM "hw:${CardId},1" + PlaybackChannels 2 + PlaybackMixerElem "DSP" + } +} diff --git a/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf b/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf new file mode 100644 index 0000000..d170a7b --- /dev/null +++ b/ucm2/Intel/avs/avs_max98927/Google-Eve-1.0.conf @@ -0,0 +1,23 @@ +Syntax 6 + +SectionUseCase."HiFi" { + File "/Intel/avs/avs_max98927/Google-Eve-1.0-HiFi.conf" + Comment "Play HiFi quality Music" +} + +BootSequence [ + cset "name='Left DAI Sel Mux' Left" + cset "name='Right DAI Sel Mux' Right" + cset "name='Left Speaker Volume' 3" + cset "name='Right Speaker Volume' 3" + cset "name='Left Digital Volume' 60" + cset "name='Right Digital Volume' 60" + cset "name='Left Spk Switch' on" + cset "name='Right Spk Switch' on" + cset "name='Left Boost Output Voltage' 0" + cset "name='Right Boost Output Voltage' 0" + cset "name='Left Current Limit' 7" + cset "name='Right Current Limit' 7" +] + + diff --git a/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf b/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf new file mode 100644 index 0000000..1d5e989 --- /dev/null +++ b/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf @@ -0,0 +1,17 @@ +SectionDevice."Speaker" { + Comment "Speakers" + + Value { + PlaybackPCM "hw:${CardId},1" + PlaybackChannels 2 + PlaybackMixerElem "DSP" + } + EnableSequence [ + cset "name='Left VI Sense Switch' on" + cset "name='Right VI Sense Switch' on" + ] + DisableSequence [ + cset "name='Left VI Sense Switch' off" + cset "name='Right VI Sense Switch' off" + ] +} diff --git a/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf b/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf new file mode 100644 index 0000000..a00d835 --- /dev/null +++ b/ucm2/Intel/avs/avs_max98927/HP-Soraka-1.0.conf @@ -0,0 +1,21 @@ +Syntax 6 + +SectionUseCase."HiFi" { + File "/Intel/avs/avs_max98927/HP-Soraka-1.0-HiFi.conf" + Comment "Play HiFi quality Music" +} + +BootSequence [ + cset "name='Left DAI Sel Mux' Left" + cset "name='Right DAI Sel Mux' Right" + cset "name='Left Speaker Volume' 5" + cset "name='Right Speaker Volume' 5" + cset "name='Left Digital Volume' 56" + cset "name='Right Digital Volume' 56" + cset "name='Left Spk Switch' on" + cset "name='Right Spk Switch' on" + cset "name='Left Current Limit' 3.00A" + cset "name='Right Current Limit' 3.00A" +] + + diff --git a/ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf b/ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf new file mode 120000 index 0000000..dbe9188 --- /dev/null +++ b/ucm2/conf.d/avs_max98927/Google-Eve-1.0.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_max98927/Google-Eve-1.0.conf \ No newline at end of file diff --git a/ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf b/ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf new file mode 120000 index 0000000..9c4bf41 --- /dev/null +++ b/ucm2/conf.d/avs_max98927/HP-Soraka-1.0.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_max98927/HP-Soraka-1.0.conf \ No newline at end of file -- 2.47.1