]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Intel: avs: Add UCM files for rt5663 configuration
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 18 Jun 2024 10:47:43 +0000 (12:47 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 8 Oct 2024 08:11:44 +0000 (10:11 +0200)
Add configs for devices using rt5663 codec.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/418
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0.conf [new file with mode: 0644]
ucm2/conf.d/avs_rt5663/Google-Eve-1.0.conf [new symlink]
ucm2/conf.d/avs_rt5663/HP-Soraka-1.0.conf [new symlink]

diff --git a/ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0-HiFi.conf b/ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0-HiFi.conf
new file mode 100644 (file)
index 0000000..7066603
--- /dev/null
@@ -0,0 +1,31 @@
+SectionDevice."Headphones" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackMixerElem "DAC"
+               JackControl "Headphone Jack"
+       }
+       EnableSequence [
+               cset "name='Headphone Jack Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Headphone Jack Switch' off"
+       ]
+}
+
+SectionDevice."Mic" {
+       Comment "Headset Microphone"
+
+       Value {
+               CapturePCM "hw:${CardId},1"
+               CaptureMixerElem "Headset Mic"
+               JackControl "Headset Mic"
+       }
+       EnableSequence [
+               cset "name='Headset Mic Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Headset Mic Switch' off"
+       ]
+}
diff --git a/ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0.conf b/ucm2/Intel/avs/avs_rt5663/Google-Eve-1.0.conf
new file mode 100644 (file)
index 0000000..4bc0c1a
--- /dev/null
@@ -0,0 +1,17 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_rt5663/Google-Eve-1.0-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='Headphone Playback Volume' 16"
+       cset "name='Headset Mic Switch' off"
+       cset "name='STO1 ADC MIXL ADC1 Switch' on"
+       cset "name='ADC Capture Volume' 35"
+       cset "name='DAC L Mux' STO DAC MIXL"
+       cset "name='DAC R Mux' STO DAC MIXR"
+       cset "name='STO1 DAC MIXL DAC L Switch' on"
+       cset "name='STO1 DAC MIXR DAC R Switch' on"
+]
diff --git a/ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0-HiFi.conf b/ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0-HiFi.conf
new file mode 100644 (file)
index 0000000..7066603
--- /dev/null
@@ -0,0 +1,31 @@
+SectionDevice."Headphones" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               PlaybackMixerElem "DAC"
+               JackControl "Headphone Jack"
+       }
+       EnableSequence [
+               cset "name='Headphone Jack Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Headphone Jack Switch' off"
+       ]
+}
+
+SectionDevice."Mic" {
+       Comment "Headset Microphone"
+
+       Value {
+               CapturePCM "hw:${CardId},1"
+               CaptureMixerElem "Headset Mic"
+               JackControl "Headset Mic"
+       }
+       EnableSequence [
+               cset "name='Headset Mic Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Headset Mic Switch' off"
+       ]
+}
diff --git a/ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0.conf b/ucm2/Intel/avs/avs_rt5663/HP-Soraka-1.0.conf
new file mode 100644 (file)
index 0000000..5d3eada
--- /dev/null
@@ -0,0 +1,13 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_rt5663/HP-Soraka-1.0-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='Headphone Jack Switch' off"
+       cset "name='Headset Mic Switch' off"
+       cset "name='Headphone Playback Volume' 16"
+       cset "name='STO1 ADC MIXL ADC1 Switch' on"
+]
diff --git a/ucm2/conf.d/avs_rt5663/Google-Eve-1.0.conf b/ucm2/conf.d/avs_rt5663/Google-Eve-1.0.conf
new file mode 120000 (symlink)
index 0000000..8188643
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_rt5663/Google-Eve-1.0.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/avs_rt5663/HP-Soraka-1.0.conf b/ucm2/conf.d/avs_rt5663/HP-Soraka-1.0.conf
new file mode 120000 (symlink)
index 0000000..f2c518e
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_rt5663/HP-Soraka-1.0.conf
\ No newline at end of file