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 21, 2024
1 parent 4209b91 commit 669ce04
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ucm2/conf.d/avs_dmic/Hewlett_Packard-Chell-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SectionDevice."Mic" {
Comment "Digital Microphone"

Value {
CapturePCM "hw:avsdmic,2"
CaptureChannels 2
CaptureMixerElem "DMIC"
}
}
6 changes: 6 additions & 0 deletions ucm2/conf.d/avs_dmic/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 "Hewlett_Packard-Chell-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}
55 changes: 55 additions & 0 deletions ucm2/conf.d/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/conf.d/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 "Hewlett_Packard-Chell-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}
21 changes: 21 additions & 0 deletions ucm2/conf.d/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/conf.d/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 "Hewlett_Packard-Chell-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}
26 changes: 26 additions & 0 deletions ucm2/conf.d/hdaudioB0D2/Hewlett_Packard-Chell-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SectionDevice."HDMI1" {
Comment "HDMI/Display Port 1"

Value {
PlaybackPCM "hw:hdaudioB0D2,1"
JackDev "hdaudioB0D2 HDMI/DP,pcm=1"
}
}

SectionDevice."HDMI2" {
Comment "HDMI/Display Port 2"

Value {
PlaybackPCM "hw:hdaudioB0D2,2"
JackDev "hdaudioB0D2 HDMI/DP,pcm=2"
}
}

SectionDevice."HDMI3" {
Comment "HDMI/Display Port 3"

Value {
PlaybackPCM "hw:hdaudioB0D2,3"
JackDev "hdaudioB0D2 HDMI/DP,pcm=3"
}
}
6 changes: 6 additions & 0 deletions ucm2/conf.d/hdaudioB0D2/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 "Hewlett_Packard-Chell-1.0-HiFi.conf"
Comment "Play HiFi quality Music"
}

0 comments on commit 669ce04

Please sign in to comment.