From 1892fe49d880f72f17eb0fc955c232a42f3ad71c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Tue, 18 Jun 2024 12:46:46 +0200 Subject: [PATCH] ucm2: Intel: avs: Add UCM files for nau8825 configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jaroslav Kysela --- .../avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf | 34 +++++++++++++++++ ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0.conf | 13 +++++++ .../avs/avs_nau8825/Google-Cave-1.0-HiFi.conf | 34 +++++++++++++++++ .../avs/avs_nau8825/Google-Cave-1.0.conf | 13 +++++++ .../Hewlett_Packard-Chell-1.0-HiFi.conf | 37 +++++++++++++++++++ .../Hewlett_Packard-Chell-1.0.conf | 14 +++++++ ucm2/conf.d/avs_nau8825/Acer-Lars-1.0.conf | 1 + ucm2/conf.d/avs_nau8825/Google-Cave-1.0.conf | 1 + .../Hewlett_Packard-Chell-1.0.conf | 1 + 9 files changed, 148 insertions(+) create mode 100644 ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf create mode 100644 ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0.conf create mode 100644 ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf create mode 100644 ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0.conf create mode 100644 ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf create mode 100644 ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf create mode 120000 ucm2/conf.d/avs_nau8825/Acer-Lars-1.0.conf create mode 120000 ucm2/conf.d/avs_nau8825/Google-Cave-1.0.conf create mode 120000 ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0.conf 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 index 00000000..3f3e6c93 --- /dev/null +++ b/ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf @@ -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 index 00000000..deacaad4 --- /dev/null +++ b/ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0.conf @@ -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 index 00000000..3f3e6c93 --- /dev/null +++ b/ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf @@ -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 index 00000000..e308ac7d --- /dev/null +++ b/ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0.conf @@ -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 index 00000000..08e3961d --- /dev/null +++ b/ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf @@ -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 index 00000000..4ba0cf46 --- /dev/null +++ b/ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf @@ -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 index 00000000..f85e705d --- /dev/null +++ b/ucm2/conf.d/avs_nau8825/Acer-Lars-1.0.conf @@ -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 index 00000000..c1b7ffa0 --- /dev/null +++ b/ucm2/conf.d/avs_nau8825/Google-Cave-1.0.conf @@ -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 index 00000000..134e8041 --- /dev/null +++ b/ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf \ No newline at end of file