Commit cb0a9da4 authored by Guido Gunther's avatar Guido Gunther

ucm2: Adjust devkit config to ucm2

parent 37a016c3
Pipeline #64486 passed with stages
in 3 minutes and 36 seconds
......@@ -2,9 +2,9 @@
# devkit
.ifexists /sys/devices/platform/sound/308b0000.sai-sgtl5000
set-default-sink alsa_output.platform-sound.VoiceCall__hw_CARD_sgtl5000__sink
set-default-source alsa_input.platform-sound.VoiceCall__hw_CARD_sgtl5000__source
update-source-proplist alsa_input.platform-sound.VoiceCall__hw_CARD_sgtl5000__source filter.apply.echo-cancel.parameters="channels=1 use_master_format=yes aec_args=\"analog_gain_control=0 voice_detection=0 high_pass_filter=0 noise_suppression=0\""
set-default-sink alsa_output.platform-sound.HiFi__hw_Devkit_0__sink
set-default-source alsa_input.platform-sound.HiFi__hw_Devkit_0__source
update-source-proplist alsa_input.platform-sound.HiFi__hw_Devkit_0__source filter.apply.echo-cancel.parameters="channels=1 use_master_format=yes aec_args=\"analog_gain_control=0 voice_detection=0 high_pass_filter=0 noise_suppression=0\""
.endif
# phone
......
SectionVerb {
EnableSequence [
cset "name='Digital Input Mux' I2S"
cset "name='PCM Playback Volume' 144"
]
DisableSequence [
cset "name='Digital Playback Volume' 0"
]
Value {
TQ "Voice"
}
}
SectionDevice."Handset".0 {
Comment "Handset"
ConflictingDevice [
"Headset"
]
EnableSequence [
cset "name='Lineout Playback Switch' on"
cset "name='Lineout Playback Volume' 18"
......@@ -20,15 +28,21 @@ SectionDevice."Handset".0 {
]
Value {
PlaybackPriority "1000"
PlaybackPCM "hw:CARD=sgtl5000"
PlaybackPCM "hw:${CardId},0"
PlaybackVolume "name='Lineout Playback Volume'"
PlaybackSwitch "name='Lineout Playback Switch'"
CapturePriority "1000"
CapturePCM "hw:CARD=sgtl5000"
CapturePCM "hw:${CardId},0"
}
}
SectionDevice."Headset".0 {
Comment "Headset"
ConflictingDevice [
"Handset"
]
EnableSequence [
cset "name='Headphone Mux' DAC"
cset "name='Headphone Playback Volume' 63"
......@@ -39,10 +53,10 @@ SectionDevice."Headset".0 {
]
Value {
PlaybackPriority "700"
PlaybackPCM "hw:CARD=sgtl5000"
PlaybackPCM "hw:${CardId},0"
PlaybackVolume "name='Headphone Playback Volume'"
PlaybackSwitch "name='Headphone Playback Switch'"
CapturePriority "700"
CapturePCM "hw:CARD=sgtl5000"
CapturePCM "hw:${CardId},0"
}
}
Syntax 2
SectionUseCase."HiFi" {
File "HiFi.conf"
}
ValueDefaults {
PlaybackPCM "hw:${CardId},0"
CapturePCM "hw:${CardId},0"
}
Comment "SGTL5000 Codec for Librem 5 Developer's Kit"
SectionUseCase."VoiceCall" {
File "VoiceCall"
}
ValueDefaults {
PlaybackPCM "hw:CARD=sgtl5000"
CapturePCM "hw:CARD=sgtl5000"
PlaybackCTL "hw:CARD=sgtl5000"
CaptureCTL "hw:CARD=sgtl5000"
}
EnableSequence [
cset "name='Digital Input Mux' I2S"
cset "name='PCM Playback Volume' 144"
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment