mt8183: move codec init to BootSequence

redrix
WeirdTreeThing 2024-01-18 12:07:51 -05:00
parent 2129d46797
commit 6d8835f89c
No known key found for this signature in database
GPG Key ID: 1F56A4B52998B851
4 changed files with 43 additions and 47 deletions

View File

@ -1,23 +1,3 @@
SectionVerb {
EnableSequence [
# Speaker
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
cset "name='Speakers Switch' 1"
# Internal Mic
cset "name='MTKAIF_DMIC' 1"
cset "name='Mt6358 Mic Type Mux' 2"
cset "name='UL3_CH1 ADDA_UL_CH1' 1"
cset "name='UL3_CH2 ADDA_UL_CH2' 1"
# Headset
cset "name='Headphone Volume' 56"
cset "name='Capture Digital Volume' 113"
cset "name='Mic Volume' 3"
]
}
SectionDevice."Speaker" {
Comment "Speaker"

View File

@ -4,3 +4,21 @@ SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"
}
BootSequence [
# Speaker
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
cset "name='Speakers Switch' 1"
# Internal Mic
cset "name='MTKAIF_DMIC' 1"
cset "name='Mt6358 Mic Type Mux' 2"
cset "name='UL3_CH1 ADDA_UL_CH1' 1"
cset "name='UL3_CH2 ADDA_UL_CH2' 1"
# Headset
cset "name='Headphone Volume' 56"
cset "name='Capture Digital Volume' 113"
cset "name='Mic Volume' 3"
]

View File

@ -1,28 +1,3 @@
SectionVerb {
EnableSequence [
# Speakers
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
# Headphones
cset "name='Headphone Volume' 17"
cset "name='ADDA_DL_CH1 DL1_CH1' 0"
cset "name='ADDA_DL_CH2 DL1_CH2' 0"
cset "name='HPL Mux' 0"
cset "name='HPR Mux' 0"
# Internal Mic
cset "name='MTKAIF_DMIC' 1"
cset "name='Mic Type Mux' 2"
cset "name='UL3_CH1 ADDA_UL_CH1' 1"
cset "name='UL3_CH2 ADDA_UL_CH2' 1"
# Headset Mic
cset "name='PGA L Mux' 0"
cset "name='ADC L Mux' 0"
cset "name='Mic Type Mux' 0"
cset "name='PGA Volume' 0"
cset "name='UL3_CH1 ADDA_UL_CH1' 0"
]
}
SectionDevice."Speaker" {
Comment "Speaker"

View File

@ -1,8 +1,31 @@
Comment "Krane internal card"
Syntax 6
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"
}
BootSequence [
# Speakers
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
# Headphones
cset "name='Headphone Volume' 17"
cset "name='ADDA_DL_CH1 DL1_CH1' 0"
cset "name='ADDA_DL_CH2 DL1_CH2' 0"
cset "name='HPL Mux' 0"
cset "name='HPR Mux' 0"
# Internal Mic
cset "name='MTKAIF_DMIC' 1"
cset "name='Mic Type Mux' 2"
cset "name='UL3_CH1 ADDA_UL_CH1' 1"
cset "name='UL3_CH2 ADDA_UL_CH2' 1"
# Headset Mic
cset "name='PGA L Mux' 0"
cset "name='ADC L Mux' 0"
cset "name='PGA Volume' 0"
cset "name='UL3_CH1 ADDA_UL_CH1' 0"
]