Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ucm files from plbossart repository #2

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/conf/ucm/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ SDP4430 \
skylake-rt286 \
TECLAST-X80Pro-Defaultstring-CherryTrailCR \
tegraalc5632 \
VEYRON-I2S
VEYRON-I2S
188 changes: 188 additions & 0 deletions src/conf/ucm/byt-max98090/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
# command-line sequence to switch playback/capture
# alsaucm -c byt-max98090 set _verb HiFi set _enadev Headphone
# alsaucm -c byt-max98090 set _verb HiFi set _enadev Speakers
# alsaucm -c byt-max98090 set _verb HiFi set _enadev HeadsetMic
# alsaucm -c byt-max98090 set _verb HiFi set _enadev InternalMic


SectionVerb {

EnableSequence [
cdev "hw:bytmax98090"

cset "name='Left Speaker Mixer Left DAC Switch' on"
cset "name='Right Speaker Mixer Right DAC Switch' on"
cset "name='Digital EQ 3 Band Switch' off"
cset "name='Digital EQ 5 Band Switch' off"
cset "name='Digital EQ 7 Band Switch' off"
cset "name='Biquad Switch' off"
cset "name='Filter Mode' Music"
cset "name='ADC Oversampling Rate' 0"

cset "name='DMIC Mux' DMIC"
cset "name='MIC2 Mux' IN34"
cset "name='MIC2 Volume' 10"
cset "name='MIC2 Boost Volume' 0"

cset "name='ADCR Boost Volume' 4"
cset "name='ADCL Boost Volume' 4"
cset "name='ADCR Volume' 11"
cset "name='ADCL Volume' 11"

cset "name='Headphone Volume' 10"
cset "name='Speaker Volume' 10"

cset "name='Speaker Left Mixer Volume' 3"
cset "name='Speaker Right Mixer Volume' 3"
cset "name='Record Path DC Blocking' on"
cset "name='Playback Path DC Blocking' on"

cset "name='Headphone Left Switch' off"
cset "name='Headphone Right Switch' off"
cset "name='Headphone Switch' off"

cset "name='Speaker Left Switch' off"
cset "name='Speaker Right Switch' off"
cset "name='Ext Spk Switch' off"

cset "name='Headset Mic Switch' off"
cset "name='Int Mic Switch' off"
]

DisableSequence [
]

# ALSA PCM
Value {
# ALSA PCM device for HiFi
PlaybackPCM "hw:bytmax98090"
CapturePCM "hw:bytmax98090"
}
}

SectionDevice."Headphone" {
Comment "Headphone"

ConflictingDevice [
"Speakers"
]

Value {
JackControl "Headphone Jack"
JackHWMute "Speakers"
}

EnableSequence [
cdev "hw:bytmax98090"

cset "name='Headphone Left Switch' on"
cset "name='Headphone Right Switch' on"
cset "name='Headphone Switch' on"

]
DisableSequence [
cdev "hw:bytmax98090"

cset "name='Headphone Left Switch' off"
cset "name='Headphone Right Switch' off"
cset "name='Headphone Switch' off"

]

Value {
PlaybackChannels 2
}
}

SectionDevice."Speakers" {
Comment "Speakers"

ConflictingDevice [
"Headphone"
]

EnableSequence [
cdev "hw:bytmax98090"

cset "name='Speaker Left Switch' on"
cset "name='Speaker Right Switch' on"
cset "name='Ext Spk Switch' on"
]
DisableSequence [
cdev "hw:bytmax98090"

cset "name='Speaker Left Switch' off"
cset "name='Speaker Right Switch' off"
cset "name='Ext Spk Switch' off"
]

Value {
PlaybackChannels 2
}
}

SectionDevice."HeadsetMic" {
Comment "Headset Mic"

Value {
JackControl "Headset Mic Jack"
#FIXME CaptureControl "MIC2"
}

ConflictingDevice [
"InternalMic"
]

EnableSequence [
cdev "hw:bytmax98090"

cset "name='Headset Mic Switch' on"
cset "name='DMIC Mux' ADC"
cset "name='Record Path DC Blocking' on"

]

DisableSequence [
cdev "hw:bytmax98090"

cset "name='Headset Mic Switch' off"
cset "name='DMIC Mux' DMIC"
cset "name='Record Path DC Blocking' off"
]

Value {
CaptureChannels 2
}
}

SectionDevice."InternalMic" {
Comment "Internal Mic"

Value {
#FIXME CaptureControl "MIC2"
}

ConflictingDevice [
"HeadsetMic"
]

EnableSequence [
cdev "hw:bytmax98090"

cset "name='Int Mic Switch' on"
cset "name='DMIC Mux' DMIC"
cset "name='Record Path DC Blocking' off"
]

DisableSequence [
cdev "hw:bytmax98090"

cset "name='Int Mic Switch' off"
cset "name='DMIC Mux' ADC"
cset "name='Record Path DC Blocking' on"
]

Value {
CaptureChannels 2
}
}
4 changes: 4 additions & 0 deletions src/conf/ucm/byt-max98090/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alsaconfigdir = @ALSA_CONFIG_DIR@
ucmdir = $(alsaconfigdir)/ucm/byt-max98090
ucm_DATA = byt-max98090.conf HiFi.conf
EXTRA_DIST = $(ucm_DATA)
6 changes: 6 additions & 0 deletions src/conf/ucm/byt-max98090/byt-max98090.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Comment "Orco internal card"

SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"
}
Loading