Skip to content
Closed
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
109 changes: 109 additions & 0 deletions ucm/sof-glkda7219max/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# command-line sequence to switch playback/capture
# alsaucm -c sof-glkda7219max set _verb HiFi set _enadev Headphone
# alsaucm -c sof-glkda7219max set _verb HiFi set _enadev Speakers
# alsaucm -c sof-glkda7219max set _verb HiFi set _enadev HeadsetMic
# alsaucm -c sof-glkda7219max set _verb HiFi set _enadev InternalMic


SectionVerb {
Value {
OutputDspName "speaker_eq"
FullySpecifiedUCM "1"
}

EnableSequence [
cdev "hw:sofglkda7219max"

cset "name='Playback Digital Volume' 111"
cset "name='Playback Digital Switch' 1"
cset "name='Out DACL Mux' DAIL"
cset "name='Out DACR Mux' DAIR"
cset "name='Mixer Out FilterL DACL Switch' 1"
cset "name='Mixer Out FilterR DACR Switch' 1"
cset "name='ST Mixer Out FilterL Out FilterL Switch' 1"
cset "name='ST Mixer Out FilterR Out FilterR Switch' 1"
cset "name='Headphone Jack Switch' off"
cset "name='Headset Mic Switch' off"
cset "name='Mic Volume' 5"
cset "name='Capture Digital Volume' 111"
cset "name='Capture Digital Switch' 1"
cset "name='Mixin Volume' 10"
cset "name='Mixin Switch' 1"
cset "name='Mixer In Mic Switch' 1"
cset "name='Out DAIL Mux' ADC"
cset "name='Out DAIR Mux' ADC"
cset "name='Gain Ramp Rate' 1"
]
DisableSequence [
]
}

SectionDevice."Speaker".0 {
Value {
PlaybackPCM "hw:sofglkda7219max,0"
}
EnableSequence [
cdev "hw:sofglkda7219max"
cset "name='Spk Switch' on"
]
DisableSequence [
cdev "hw:sofglkda7219max"
cset "name='Spk Switch' off"
]
}

SectionDevice."Headphone".0 {
Value {
PlaybackPCM "hw:sofglkda7219max,1"
MixerName "Headphone"
JackName "sofglkda7219max Headset Jack"
JackType "gpio"
JackSwitch "2"
OutputDspName ""
}
EnableSequence [
cdev "hw:sofglkda7219max"
cset "name='Headphone Jack Switch' on"
cset "name='Headphone Switch' 1"
]
DisableSequence [
cdev "hw:sofglkda7219max"
cset "name='Headphone Jack Switch' off"
cset "name='Headphone Switch' 0"
]
}

# SectionDevice."Internal Mic".0 {
# Value {
# CapturePCM "hw:sofglkda7219max,3"
# CaptureChannelMap "0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1"
# MaxSoftwareGain "2000"
# }
# EnableSequence [
# cdev "hw:sofglkda7219max"
# cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
# ]
# DisableSequence [
# cdev "hw:sofglkda7219max"
# cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
# ]
# }

# SectionDevice."Mic".0 {
# Value {
# CapturePCM "hw:sofglkda7219max,1"
# MixerName "Headset Mic"
# JackName "sofglkda7219max Headset Jack"
# JackType "gpio"
# }
# EnableSequence [
# cdev "hw:sofglkda7219max"
# cset "name='Headset Mic Switch' on"
# cset "name='Mic Switch' on"
# ]
# DisableSequence [
# cdev "hw:sofglkda7219max"
# cset "name='Headset Mic Switch' off"
# cset "name='Mic Switch' off"
# ]
# }
6 changes: 6 additions & 0 deletions ucm/sof-glkda7219max/sof-glkda7219max.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Comment "sof-glkda7219max internal card"

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