mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: Add UCM profile for CX2072X codec on Baytrail/Cherrytrail profiles
Adding a new Conexant CX2072X codec profile and reusing the existing BYT/CHT platform snippets. Currently tested only on ASUS E200HA laptop. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
33c7ea0865
commit
108a2f4379
13 changed files with 162 additions and 0 deletions
|
|
@ -720,6 +720,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
|||
src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/Makefile \
|
||||
src/conf/ucm/broadwell-rt286/Makefile \
|
||||
src/conf/ucm/broxton-rt298/Makefile \
|
||||
src/conf/ucm/bytcht-cx2072x/Makefile \
|
||||
src/conf/ucm/bytcht-es8316/Makefile \
|
||||
src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/Makefile \
|
||||
src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/Makefile \
|
||||
|
|
@ -765,6 +766,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
|||
src/conf/ucm/tegraalc5632/Makefile \
|
||||
src/conf/ucm/VEYRON-I2S/Makefile \
|
||||
src/conf/ucm/codecs/Makefile \
|
||||
src/conf/ucm/codecs/cx2072x/Makefile \
|
||||
src/conf/ucm/codecs/es8316/Makefile \
|
||||
src/conf/ucm/codecs/nau8824/Makefile \
|
||||
src/conf/ucm/codecs/rt5640/Makefile \
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ platforms \
|
|||
ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN \
|
||||
broadwell-rt286 \
|
||||
broxton-rt298 \
|
||||
bytcht-cx2072x \
|
||||
bytcht-es8316 \
|
||||
bytcht-es8316-mono-spk-in1-mic \
|
||||
bytcht-es8316-mono-spk-in2-mic \
|
||||
|
|
|
|||
24
src/conf/ucm/bytcht-cx2072x/HiFi.conf
Normal file
24
src/conf/ucm/bytcht-cx2072x/HiFi.conf
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
SectionVerb {
|
||||
EnableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
<platforms/bytcr/PlatformEnableSeq.conf>
|
||||
<codecs/cx2072x/EnableSeq.conf>
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
<codecs/cx2072x/DisableSeq.conf>
|
||||
<platforms/bytcr/PlatformDisableSeq.conf>
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPCM "hw:bytchtcx2072x"
|
||||
CapturePCM "hw:bytchtcx2072x"
|
||||
}
|
||||
}
|
||||
|
||||
<codecs/cx2072x/Speaker.conf>
|
||||
<codecs/cx2072x/HeadPhones.conf>
|
||||
|
||||
<codecs/cx2072x/InternalMic.conf>
|
||||
<codecs/cx2072x/HeadsetMic.conf>
|
||||
4
src/conf/ucm/bytcht-cx2072x/Makefile.am
Normal file
4
src/conf/ucm/bytcht-cx2072x/Makefile.am
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||
ucmdir = $(alsaconfigdir)/ucm/bytcht-cx2072x
|
||||
ucm_DATA = bytcht-cx2072x.conf HiFi.conf
|
||||
EXTRA_DIST = $(ucm_DATA)
|
||||
8
src/conf/ucm/bytcht-cx2072x/bytcht-cx2072x.conf
Normal file
8
src/conf/ucm/bytcht-cx2072x/bytcht-cx2072x.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Play HiFi quality Music"
|
||||
}
|
||||
|
||||
SectionDefaults [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
]
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
SUBDIRS=\
|
||||
cx2072x \
|
||||
es8316 \
|
||||
rt5640 \
|
||||
rt5645 \
|
||||
|
|
|
|||
7
src/conf/ucm/codecs/cx2072x/DisableSeq.conf
Normal file
7
src/conf/ucm/codecs/cx2072x/DisableSeq.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Output Configuration
|
||||
cset "name='I2S DAC1L Switch' off"
|
||||
cset "name='I2S DAC1R Switch' off"
|
||||
|
||||
# Input Configuration
|
||||
cset "name='I2S ADC1L Switch' off"
|
||||
cset "name='I2S ADC1R Switch' off"
|
||||
13
src/conf/ucm/codecs/cx2072x/EnableSeq.conf
Normal file
13
src/conf/ucm/codecs/cx2072x/EnableSeq.conf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Disable all inputs / outputs
|
||||
cset "name='Ext Spk Switch' off"
|
||||
cset "name='Headphone Switch' off"
|
||||
cset "name='Headset Mic Switch' off"
|
||||
cset "name='Int Mic Switch' off"
|
||||
|
||||
# Output Configuration
|
||||
cset "name='I2S DAC1L Switch' on"
|
||||
cset "name='I2S DAC1R Switch' on"
|
||||
|
||||
# Input Configuration
|
||||
cset "name='I2S ADC1L Switch' on"
|
||||
cset "name='I2S ADC1R Switch' on"
|
||||
24
src/conf/ucm/codecs/cx2072x/HeadPhones.conf
Normal file
24
src/conf/ucm/codecs/cx2072x/HeadPhones.conf
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
SectionDevice."Headphones" {
|
||||
Comment "Headphones"
|
||||
|
||||
ConflictingDevice [
|
||||
"Speaker"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Headphone Switch' on"
|
||||
cset "name='PortA Out En Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Headphone Switch' off"
|
||||
cset "name='PortA Out En Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackChannels "2"
|
||||
JackControl "Headphone Jack"
|
||||
}
|
||||
}
|
||||
25
src/conf/ucm/codecs/cx2072x/HeadsetMic.conf
Normal file
25
src/conf/ucm/codecs/cx2072x/HeadsetMic.conf
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
SectionDevice."HeadsetMic" {
|
||||
Comment "Headset Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"InternalMic"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Headset Mic Switch' on"
|
||||
cset "name='ADC1 Mux' 'PortD Switch'"
|
||||
cset "name='PortD In En Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Headset Mic Switch' off"
|
||||
cset "name='PortD In En Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
CaptureChannels "2"
|
||||
JackControl "Headset Mic Jack"
|
||||
}
|
||||
}
|
||||
24
src/conf/ucm/codecs/cx2072x/InternalMic.conf
Normal file
24
src/conf/ucm/codecs/cx2072x/InternalMic.conf
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
SectionDevice."InternalMic" {
|
||||
Comment "Internal Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"HeadsetMic"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Int Mic Switch' on"
|
||||
cset "name='ADC1 Mux' 'PortC Switch'"
|
||||
cset "name='PortC In En Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Int Mic Switch' off"
|
||||
cset "name='PortC In En Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
CaptureChannels "2"
|
||||
}
|
||||
}
|
||||
6
src/conf/ucm/codecs/cx2072x/Makefile.am
Normal file
6
src/conf/ucm/codecs/cx2072x/Makefile.am
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
alsaconfigdir = @ALSA_CONFIG_DIR@
|
||||
ucmdir = $(alsaconfigdir)/ucm/codecs/cx2072x
|
||||
ucm_DATA = EnableSeq.conf DisableSeq.conf \
|
||||
HeadPhones.conf Speaker.conf \
|
||||
InternalMic.conf HeadsetMic.conf
|
||||
EXTRA_DIST = $(ucm_DATA)
|
||||
23
src/conf/ucm/codecs/cx2072x/Speaker.conf
Normal file
23
src/conf/ucm/codecs/cx2072x/Speaker.conf
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
SectionDevice."Speaker" {
|
||||
Comment "Speakers"
|
||||
|
||||
ConflictingDevice [
|
||||
"Headphones"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Ext Spk Switch' on"
|
||||
cset "name='PortG Out En Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:bytchtcx2072x"
|
||||
cset "name='Ext Spk Switch' off"
|
||||
cset "name='PortG Out En Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackChannels "2"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue