Skip to content
Snippets Groups Projects
Commit a2dd5801 authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado
Browse files

Add UCM files for Tomato rev3


Add an overlay with the ALSA UCM files for MT8195-Tomato rev3. The PR
has been merged but it hasn't made its way to the release on debian
testing yet. Once it lands this can be dropped.

Signed-off-by: default avatarNícolas F. R. A. Prado <nfraprado@collabora.com>
parent 7e8e4bae
No related branches found
No related tags found
No related merge requests found
Pipeline #100640 passed with stage
in 1 hour, 52 minutes, and 19 seconds
......@@ -61,6 +61,12 @@ actions:
packages:
- alsa-utils
# PR has been merged but not available in debian testing release yet.
# https://github.com/alsa-project/alsa-ucm-conf/pull/406
- action: overlay
description: Enable audio for MT8195-Tomato rev3
source: overlays/alsa-ucm
- action: run
command: mkdir -p ${ROOTDIR}/opt/linux
......
# Use case configuration for mt8195-mt6359-rt1019-rt5682
SectionVerb {
EnableSequence [
disdevall ""
]
Value.TQ "HiFi"
}
SectionDevice."Speaker" {
Comment "Speaker"
EnableSequence [
cset "name='Ext Spk Switch' 1"
]
DisableSequence [
cset "name='Ext Spk Switch' 0"
]
Value {
PlaybackChannels 2
PlaybackPCM "hw:${CardId},16"
PlaybackPriority 100
PlaybackMixerElem "Speaker"
PlaybackVolume "Speaker Playback Volume"
}
}
SectionDevice."Headphones" {
Comment "Headphones"
EnableSequence [
cset "name='Headphone Switch' on"
]
If.is_rt5682i_hp {
Condition {
Type ControlExists
Control "name='HPOL Playback Switch'"
}
True {
EnableSequence [
cset "name='HPOL Playback Switch' 1"
cset "name='HPOR Playback Switch' 1"
]
DisableSequence [
cset "name='HPOL Playback Switch' 0"
cset "name='HPOR Playback Switch' 0"
]
}
}
DisableSequence [
cset "name='Headphone Switch' off"
]
Value {
PlaybackPriority 200
PlaybackPCM "hw:${CardId},17"
JackControl "Headphone Jack"
}
}
SectionDevice."Headset" {
Comment "Headset Microphone"
EnableSequence [
cset "name='Headset Mic Switch' on"
cset "name='STO1 ADC Capture Switch' 1"
cset "name='RECMIX1L CBJ Switch' 1"
cset "name='Stereo1 ADC MIXL ADC1 Switch' 1"
cset "name='Stereo1 ADC MIXR ADC1 Switch' 1"
]
DisableSequence [
cset "name='STO1 ADC Capture Switch' 0"
cset "name='RECMIX1L CBJ Switch' 0"
cset "name='Stereo1 ADC MIXL ADC1 Switch' 0"
cset "name='Stereo1 ADC MIXR ADC1 Switch' 0"
cset "name='Headset Mic Switch' off"
]
Value {
CapturePriority 200
CapturePCM "hw:${CardId},19"
JackControl "Headset Mic Jack"
}
}
SectionDevice."Mic" {
Comment "Internal Microphone"
EnableSequence [
cset "name='MTKAIF_DMIC' On"
]
DisableSequence [
cset "name='MTKAIF_DMIC' Off"
]
Value {
CapturePCM "hw:${CardId},18"
CapturePriority 100
}
}
# rt1019-rt5682i/s specific boot sequence
If.is_rt5682i {
# We can safely assume that both L/R exist if L does.
Condition {
Type ControlExists
Control "name='DAC L Mux"
}
True.BootSequence [
cset "name='DAC L Mux' IF1"
cset "name='DAC R Mux' IF1"
]
}
BootSequence [
cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1"
cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1"
cset "name='IF1 01 ADC Swap Mux' 2"
cset "name='CBJ Boost Volume' 3"
cset "name='Stereo1 ADC L Mux' 'ADC1 L'"
cset "name='Stereo1 ADC R Mux' 'ADC1 R'"
cset "name='Stereo1 ADC L1 Mux' 1"
cset "name='Stereo1 ADC R1 Mux' 1"
cset "name='DAC1 MIXL DAC1 Switch' 1"
cset "name='DAC1 MIXR DAC1 Switch' 1"
cset "name='DAC1 MIXL Stereo ADC Switch' 0"
cset "name='DAC1 MIXR Stereo ADC Switch' 0"
cset "name='Stereo1 ADC MIXL ADC2 Switch' 0"
cset "name='Stereo1 ADC MIXR ADC2 Switch' 0"
]
../../MediaTek/mt8195-sof/mt6359-rt1019-rt5682/sof-mt8195-mt6359-rt1019-rt5682.conf
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment