-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ucm2: Add UCM files for HP Chell with avs driver
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 <amadeuszx.slawinski@linux.intel.com>
- Loading branch information
Amadeusz Sławiński
committed
May 21, 2024
1 parent
4209b91
commit 669ce04
Showing
8 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
55
ucm2/conf.d/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
21
ucm2/conf.d/avs_ssm4567/Hewlett_Packard-Chell-1.0-HiFi.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
26
ucm2/conf.d/hdaudioB0D2/Hewlett_Packard-Chell-1.0-HiFi.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |