]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Intel: avs: Add UCM files for nau8825 configuration
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 18 Jun 2024 10:46:46 +0000 (12:46 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 8 Oct 2024 08:11:32 +0000 (10:11 +0200)
Add configs for devices using nau8825 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_nau8825/Acer-Lars-1.0-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf [new file with mode: 0644]
ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf [new file with mode: 0644]
ucm2/conf.d/avs_nau8825/Acer-Lars-1.0.conf [new symlink]
ucm2/conf.d/avs_nau8825/Google-Cave-1.0.conf [new symlink]
ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0.conf [new symlink]

diff --git a/ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf b/ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf
new file mode 100644 (file)
index 0000000..3f3e6c9
--- /dev/null
@@ -0,0 +1,34 @@
+SectionDevice."Headphone" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               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"
+               CaptureCTL "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_nau8825/Acer-Lars-1.0.conf b/ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0.conf
new file mode 100644 (file)
index 0000000..deacaad
--- /dev/null
@@ -0,0 +1,13 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='DAC Oversampling Rate' 128"
+       cset "name='Headset Mic Switch' off"
+       cset "name='Mic Volume' 255"
+       cset "name='Frontend PGA Volume' 19"
+]
diff --git a/ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf b/ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf
new file mode 100644 (file)
index 0000000..3f3e6c9
--- /dev/null
@@ -0,0 +1,34 @@
+SectionDevice."Headphone" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               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"
+               CaptureCTL "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_nau8825/Google-Cave-1.0.conf b/ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0.conf
new file mode 100644 (file)
index 0000000..e308ac7
--- /dev/null
@@ -0,0 +1,13 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='DAC Oversampling Rate' 128"
+       cset "name='Headset Mic Switch' off"
+       cset "name='Mic Volume' 255"
+]
+
diff --git a/ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf b/ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf
new file mode 100644 (file)
index 0000000..08e3961
--- /dev/null
@@ -0,0 +1,37 @@
+SectionDevice."Headphone" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPCM "hw:${CardId},1"
+               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"
+               CaptureCTL "Mic"
+               JackControl "Headset Mic"
+       }
+
+       EnableSequence [
+               cset "name='Headset Mic Switch' on"
+               cset "name='BIQ Coefficients' 0,155,0,6,255,102,0,0,255,179,0,0,0,154,0,6,255,179,128,0"
+       ]
+
+       DisableSequence [
+               cset "name='Headset Mic Switch' off"
+               cset "name='BIQ Coefficients' 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
+       ]
+}
+
diff --git a/ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf b/ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf
new file mode 100644 (file)
index 0000000..4ba0cf4
--- /dev/null
@@ -0,0 +1,14 @@
+Syntax 6
+
+SectionUseCase."HiFi" {
+       File "/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+BootSequence [
+       cset "name='DAC Oversampling Rate' 64"
+       cset "name='Headset Mic Switch' off"
+       cset "name='BIQ Path Select' ADC"
+       cset "name='BIQ Coefficients' 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
+       cset "name='Mic Volume' 255"
+]
diff --git a/ucm2/conf.d/avs_nau8825/Acer-Lars-1.0.conf b/ucm2/conf.d/avs_nau8825/Acer-Lars-1.0.conf
new file mode 120000 (symlink)
index 0000000..f85e705
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_nau8825/Acer-Lars-1.0.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/avs_nau8825/Google-Cave-1.0.conf b/ucm2/conf.d/avs_nau8825/Google-Cave-1.0.conf
new file mode 120000 (symlink)
index 0000000..c1b7ffa
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_nau8825/Google-Cave-1.0.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0.conf b/ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0.conf
new file mode 120000 (symlink)
index 0000000..134e804
--- /dev/null
@@ -0,0 +1 @@
+../../Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf
\ No newline at end of file