Skip to content

Commit

Permalink
ucm2: Add UCM files for HP Chell with avs driver
Browse files Browse the repository at this point in the history
HP Chell uses:
SSM4567 codec for Speakers
NAU8825 codec for Headphones/Headset
DMIC codec for Digital Microphone
hdaudioB0D2 codec for HDMI

Signed-off-by: Amadeusz Sławiński <[email protected]>
  • Loading branch information
Amadeusz Sławiński committed May 28, 2024
1 parent a11e7cb commit 865047c
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
55 changes: 55 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,55 @@
SectionVerb {
EnableSequence [
cdev "hw:avsnau8825"
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"
]

DisableSequence [
]
}

SectionDevice."Headphone" {
Comment "Headphones"

Value {
PlaybackPCM "hw:avsnau8825,1"
JackDev "avs_nau8825 Headset Jack"
}

EnableSequence [
cdev "hw:avsnau8825"
cset "name='Headphone Jack Switch' on"
]

DisableSequence [
cdev "hw:avsnau8825"
cset "name='Headphone Jack Switch' off"
]
}

SectionDevice."Mic" {
Comment "Headset Microphone"

Value {
CapturePCM "hw:avsnau8825,1"
JackDev "avs_nau8825 Headset Jack"
CaptureCTL "Mic"
}

EnableSequence [
cdev "hw:avsnau8825"
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 [
cdev "hw:avsnau8825"
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"
]
}

6 changes: 6 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,6 @@
Syntax 3

SectionUseCase."HiFi" {
File "/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}
21 changes: 21 additions & 0 deletions ucm2/Intel/avs/avs_ssm4567/Hewlett_Packard-Chell-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SectionVerb {
EnableSequence [
cset "name='Left Master Playback Volume' 255"
cset "name='Right Master Playback Volume' 255"
]
}

SectionDevice."Speaker" {
Comment "Speakers"

Value {
PlaybackPCM "hw:avsssm4567,1"
PlaybackMixerElem "DSP"
}
EnableSequence [
cdev "hw:avsssm4567"
]
DisableSequence [
cdev "hw:avsssm4567"
]
}
6 changes: 6 additions & 0 deletions ucm2/Intel/avs/avs_ssm4567/Hewlett_Packard-Chell-1.0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Syntax 3

SectionUseCase."HiFi" {
File "/Intel/avs/avs_ssm4567/Hewlett_Packard-Chell-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_dmic/Hewlett_Packard-Chell-1.0.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/avs_ssm4567/Hewlett_Packard-Chell-1.0.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/hdaudioB0D2/Hewlett_Packard-Chell-1.0.conf

0 comments on commit 865047c

Please sign in to comment.