Skip to content

Commit

Permalink
kukui: ucm and adjustments for fennel14 audio
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdump0815 committed Jun 6, 2022
1 parent 6e587ac commit 89676f8
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
SectionVerb {
EnableSequence [
cdev "hw:mt8183da7219rt1"
cset "name='Headphone Volume' 0"
# cset "name='UL3_CH1 ADDA_UL_CH1' 0"
# cset "name='UL3_CH2 ADDA_UL_CH2' 0"
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
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"
]
DisableSequence [
]
}
SectionDevice."Headphone" {
Value {
PlaybackPCM "hw:mt8183da7219rt1,0"
JackDev "mt8183_da7219_rt1015p Headset Jack"
JackSwitch "2"
}

ConflictingDevice [
"Speaker"
]

EnableSequence [
cdev "hw:mt8183da7219rt1"
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
]
DisableSequence [
cdev "hw:mt8183da7219rt1"
cset "name='I2S3_CH1 DL1_CH1' 0"
cset "name='I2S3_CH2 DL1_CH2' 0"
]
}
SectionDevice."Speaker" {
Value {
PlaybackPCM "hw:mt8183da7219rt1,0"
DspName "speaker_eq"
}

ConflictingDevice [
"Headphone"
]

EnableSequence [
cdev "hw:mt8183da7219rt1"
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
]
DisableSequence [
cdev "hw:mt8183da7219rt1"
cset "name='I2S3_CH1 DL1_CH1' 0"
cset "name='I2S3_CH2 DL1_CH2' 0"
]
}

SectionDevice."Internal Mic" {
Value {
CapturePCM "hw:mt8183da7219rt1,5"
CaptureChannelMap "0 1 -1 -1 -1 -1 -1 -1 -1 -1 -1"
IntrinsicSensitivity "-600"
}
EnableSequence [
cdev "hw:mt8183da7219rt1"
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"
]
DisableSequence [
cdev "hw:mt8183da7219rt1"
cset "name='MTKAIF_DMIC' 0"
cset "name='Mt6358 Mic Type Mux' 0"
cset "name='UL3_CH1 ADDA_UL_CH1' 0"
cset "name='UL3_CH2 ADDA_UL_CH2' 0"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Syntax 2

Comment "Kukui internal card"

SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"
}
15 changes: 14 additions & 1 deletion systems/chromebook_kukui/rc-local-additions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,17 @@ fi
# echo 400000000 > /sys/class/devfreq/13040000.gpu/min_freq
#fi

modprobe mt8183-mt6358-ts3a227-max98357
grep -q 'Google fennel14 sku0 board' /proc/device-tree/model
if [ "$?" = "0" ]; then
# fennel14 has a different audio setup
modprobe mt8183-da7219-max98357
alsaucm -n -b - <<EOM
open mt8183_da7219_r
reset
set _verb HiFi
set _enadev Speaker
EOM
else
# most others work with this audio setup
modprobe mt8183-mt6358-ts3a227-max98357
fi

1 comment on commit 89676f8

@BenjaminWegener
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.