Skip to content

Commit

Permalink
ucm2: Intel: avs: Add UCM files for nau8825 configuration
Browse files Browse the repository at this point in the history
Add configs for devices using nau8825 codec.

Closes: #418
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Amadeusz Sławiński authored and perexg committed Oct 8, 2024
1 parent d881811 commit 1892fe4
Show file tree
Hide file tree
Showing 9 changed files with 148 additions and 0 deletions.
34 changes: 34 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -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"
]
}
13 changes: 13 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0.conf
Original file line number Diff line number Diff line change
@@ -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"
]
34 changes: 34 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -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"
]
}
13 changes: 13 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0.conf
Original file line number Diff line number Diff line change
@@ -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"
]

37 changes: 37 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -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"
]
}

14 changes: 14 additions & 0 deletions ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0.conf
Original file line number Diff line number Diff line change
@@ -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"
]
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_nau8825/Acer-Lars-1.0.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_nau8825/Google-Cave-1.0.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0.conf

0 comments on commit 1892fe4

Please sign in to comment.