mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
conf/ucm: chtnau8824: Add UCM profile for chtnau8824 boards
Add UCM profile for chtnau8824 boards based on: https://github.com/plbossart/UCM/blob/master/chtnau8824 Split into multiple files in the same way as this was done for the bytcr-rt5640 support, re-using the existing ucm/PlatformEnableSeq.conf and ucm/PlatformDisableSeq.conf files for the SST mixer settings. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
642b360add
commit
f3b26e3b8d
12 changed files with 206 additions and 0 deletions
|
|
@ -729,6 +729,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
||||||
src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/Makefile \
|
src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/Makefile \
|
||||||
src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/Makefile \
|
src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/Makefile \
|
||||||
src/conf/ucm/bytcr-rt5651/Makefile \
|
src/conf/ucm/bytcr-rt5651/Makefile \
|
||||||
|
src/conf/ucm/chtnau8824/Makefile \
|
||||||
src/conf/ucm/chtrt5645/Makefile \
|
src/conf/ucm/chtrt5645/Makefile \
|
||||||
src/conf/ucm/chtrt5645-mono-speaker-analog-mic/Makefile \
|
src/conf/ucm/chtrt5645-mono-speaker-analog-mic/Makefile \
|
||||||
src/conf/ucm/DAISY-I2S/Makefile \
|
src/conf/ucm/DAISY-I2S/Makefile \
|
||||||
|
|
@ -739,6 +740,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
||||||
src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \
|
src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \
|
||||||
src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \
|
src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \
|
||||||
src/conf/ucm/LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216/Makefile \
|
src/conf/ucm/LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216/Makefile \
|
||||||
|
src/conf/ucm/nau8824/Makefile \
|
||||||
src/conf/ucm/PandaBoard/Makefile \
|
src/conf/ucm/PandaBoard/Makefile \
|
||||||
src/conf/ucm/PandaBoardES/Makefile \
|
src/conf/ucm/PandaBoardES/Makefile \
|
||||||
src/conf/ucm/PAZ00/Makefile \
|
src/conf/ucm/PAZ00/Makefile \
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ bytcr-rt5640-stereo-spk-dmic1-mic \
|
||||||
bytcr-rt5640-stereo-spk-in1-mic \
|
bytcr-rt5640-stereo-spk-in1-mic \
|
||||||
bytcr-rt5640-stereo-spk-in3-mic \
|
bytcr-rt5640-stereo-spk-in3-mic \
|
||||||
bytcr-rt5651 \
|
bytcr-rt5651 \
|
||||||
|
chtnau8824 \
|
||||||
chtrt5645 \
|
chtrt5645 \
|
||||||
chtrt5645-mono-speaker-analog-mic \
|
chtrt5645-mono-speaker-analog-mic \
|
||||||
DAISY-I2S \
|
DAISY-I2S \
|
||||||
|
|
@ -21,6 +22,7 @@ gpd-win-pocket-rt5645 \
|
||||||
HDAudio-Gigabyte-ALC1220DualCodecs \
|
HDAudio-Gigabyte-ALC1220DualCodecs \
|
||||||
HDAudio-Lenovo-DualCodecs \
|
HDAudio-Lenovo-DualCodecs \
|
||||||
LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 \
|
LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 \
|
||||||
|
nau8824 \
|
||||||
PandaBoard \
|
PandaBoard \
|
||||||
PandaBoardES \
|
PandaBoardES \
|
||||||
PAZ00 \
|
PAZ00 \
|
||||||
|
|
|
||||||
28
src/conf/ucm/chtnau8824/HiFi.conf
Normal file
28
src/conf/ucm/chtnau8824/HiFi.conf
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<searchdir:ucm>
|
||||||
|
|
||||||
|
SectionVerb {
|
||||||
|
|
||||||
|
Value {
|
||||||
|
TQ "HiFi"
|
||||||
|
# ALSA PCM device for HiFi
|
||||||
|
PlaybackPCM "hw:chtnau8824"
|
||||||
|
CapturePCM "hw:chtnau8824"
|
||||||
|
}
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
<bytcr/PlatformEnableSeq.conf>
|
||||||
|
<nau8824/EnableSeq.conf>
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
<bytcr/PlatformDisableSeq.conf>
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
<nau8824/Speaker.conf>
|
||||||
|
<nau8824/HeadPhones.conf>
|
||||||
|
|
||||||
|
<nau8824/InternalMic.conf>
|
||||||
|
<nau8824/HeadsetMic.conf>
|
||||||
4
src/conf/ucm/chtnau8824/Makefile.am
Normal file
4
src/conf/ucm/chtnau8824/Makefile.am
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||||
|
ucmdir = $(alsaconfigdir)/ucm/chtnau8824
|
||||||
|
ucm_DATA = chtnau8824.conf HiFi.conf
|
||||||
|
EXTRA_DIST = $(ucm_DATA)
|
||||||
6
src/conf/ucm/chtnau8824/chtnau8824.conf
Normal file
6
src/conf/ucm/chtnau8824/chtnau8824.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
Comment "chtnau8824 internal card"
|
||||||
|
|
||||||
|
SectionUseCase."HiFi" {
|
||||||
|
File "HiFi.conf"
|
||||||
|
Comment "Default"
|
||||||
|
}
|
||||||
15
src/conf/ucm/nau8824/EnableSeq.conf
Normal file
15
src/conf/ucm/nau8824/EnableSeq.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Playback TDM configuration
|
||||||
|
cset "name='DACL Channel Source' 0"
|
||||||
|
cset "name='DACR Channel Source' 1"
|
||||||
|
# Input Configuration
|
||||||
|
cset "name='DMIC1 Enable Switch' off"
|
||||||
|
cset "name='DMIC2 Enable Switch' off"
|
||||||
|
cset "name='DMIC3 Enable Switch' off"
|
||||||
|
cset "name='DMIC4 Enable Switch' off"
|
||||||
|
cset "name='MIC1 Volume' 10"
|
||||||
|
cset "name='MIC2 Volume' 10"
|
||||||
|
# Button Configuration
|
||||||
|
cset "name='THD for key media' 10"
|
||||||
|
cset "name='THD for key voice command' 16"
|
||||||
|
cset "name='THD for key volume up' 38"
|
||||||
|
cset "name='THD for key volume down' 115"
|
||||||
25
src/conf/ucm/nau8824/HeadPhones.conf
Normal file
25
src/conf/ucm/nau8824/HeadPhones.conf
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
SectionDevice."Headphones" {
|
||||||
|
Comment "Headphones"
|
||||||
|
|
||||||
|
Value {
|
||||||
|
PlaybackChannels "2"
|
||||||
|
JackControl "Headphone Jack"
|
||||||
|
}
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"MonoSpeaker"
|
||||||
|
"Speaker"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='Headphone Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='Headphone Switch' off"
|
||||||
|
]
|
||||||
|
}
|
||||||
31
src/conf/ucm/nau8824/HeadsetMic.conf
Normal file
31
src/conf/ucm/nau8824/HeadsetMic.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
SectionDevice."HeadsetMic" {
|
||||||
|
Comment "Headset Microphone"
|
||||||
|
|
||||||
|
Value {
|
||||||
|
CaptureChannels "2"
|
||||||
|
JackControl "Headset Mic Jack"
|
||||||
|
}
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"InternalMic"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='ADC CH0 Select' 1"
|
||||||
|
cset "name='ADC CH1 Select' 1"
|
||||||
|
|
||||||
|
cset "name='Headset Mic Switch' on"
|
||||||
|
cset "name='Right ADC HSMIC Switch' on"
|
||||||
|
cset "name='Left ADC HSMIC Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='Headset Mic Switch' off"
|
||||||
|
cset "name='Right ADC HSMIC Switch' off"
|
||||||
|
cset "name='Left ADC HSMIC Switch' off"
|
||||||
|
]
|
||||||
|
}
|
||||||
31
src/conf/ucm/nau8824/InternalMic.conf
Normal file
31
src/conf/ucm/nau8824/InternalMic.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
SectionDevice."InternalMic" {
|
||||||
|
Comment "Internal Microphone"
|
||||||
|
|
||||||
|
Value {
|
||||||
|
CaptureChannels "2"
|
||||||
|
CapturePriority "150"
|
||||||
|
}
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"HeadsetMic"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='ADC CH0 Select' 0"
|
||||||
|
cset "name='ADC CH1 Select' 0"
|
||||||
|
|
||||||
|
cset "name='Int Mic Switch' on"
|
||||||
|
cset "name='Right ADC MIC Switch' on"
|
||||||
|
cset "name='Left ADC MIC Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='Int Mic Switch' off"
|
||||||
|
cset "name='Right ADC MIC Switch' off"
|
||||||
|
cset "name='Left ADC MIC Switch' off"
|
||||||
|
]
|
||||||
|
}
|
||||||
5
src/conf/ucm/nau8824/Makefile.am
Normal file
5
src/conf/ucm/nau8824/Makefile.am
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||||
|
ucmdir = $(alsaconfigdir)/ucm/nau8824
|
||||||
|
ucm_DATA = EnableSeq.conf HeadPhones.conf HeadsetMic.conf InternalMic.conf \
|
||||||
|
MonoSpeaker.conf Speaker.conf
|
||||||
|
EXTRA_DIST = $(ucm_DATA)
|
||||||
29
src/conf/ucm/nau8824/MonoSpeaker.conf
Normal file
29
src/conf/ucm/nau8824/MonoSpeaker.conf
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
SectionDevice."MonoSpeaker" {
|
||||||
|
Comment "Mono Speaker"
|
||||||
|
|
||||||
|
Value {
|
||||||
|
PlaybackChannels "2"
|
||||||
|
}
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"Speaker"
|
||||||
|
"Headphones"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
# nau8824 mono speaker boards have the speaker on the right chan
|
||||||
|
cset "name='Speaker Left DACL Volume' 0"
|
||||||
|
cset "name='Speaker Left DACR Volume' 0"
|
||||||
|
cset "name='Speaker Right DACL Volume' 1"
|
||||||
|
cset "name='Speaker Right DACR Volume' 1"
|
||||||
|
cset "name='Ext Spk Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='Ext Spk Switch' off"
|
||||||
|
]
|
||||||
|
}
|
||||||
28
src/conf/ucm/nau8824/Speaker.conf
Normal file
28
src/conf/ucm/nau8824/Speaker.conf
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
SectionDevice."Speaker" {
|
||||||
|
Comment "Speaker"
|
||||||
|
|
||||||
|
Value {
|
||||||
|
PlaybackChannels "2"
|
||||||
|
}
|
||||||
|
|
||||||
|
ConflictingDevice [
|
||||||
|
"MonoSpeaker"
|
||||||
|
"Headphones"
|
||||||
|
]
|
||||||
|
|
||||||
|
EnableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='Speaker Left DACL Volume' 1"
|
||||||
|
cset "name='Speaker Left DACR Volume' 0"
|
||||||
|
cset "name='Speaker Right DACL Volume' 0"
|
||||||
|
cset "name='Speaker Right DACR Volume' 1"
|
||||||
|
cset "name='Ext Spk Switch' on"
|
||||||
|
]
|
||||||
|
|
||||||
|
DisableSequence [
|
||||||
|
cdev "hw:chtnau8824"
|
||||||
|
|
||||||
|
cset "name='Ext Spk Switch' off"
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue