temp/alsa-ucm-conf-google-kukui: new aport (MR 3348)
This commit is contained in:
parent
3a00c8d5bc
commit
49f7b70d9c
5 changed files with 276 additions and 0 deletions
35
temp/alsa-ucm-conf-google-kukui/APKBUILD
Normal file
35
temp/alsa-ucm-conf-google-kukui/APKBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: BinaryCraft <keep.it.sns@gmail.com>
|
||||
pkgname=alsa-ucm-conf-google-kukui
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="ALSA Use Case Manager configuration for Google Kukui Chromebooks"
|
||||
url="https://alsa-project.org"
|
||||
arch="aarch64"
|
||||
license="BSD-3-Clause"
|
||||
source="
|
||||
mt8183_da7219_HiFi.conf
|
||||
mt8183_da7219_rt1015p.conf
|
||||
mt8183_mt6358_HiFi.conf
|
||||
mt8183_mt6358_ts3a227_max98357.conf
|
||||
"
|
||||
options="!check" # no tests
|
||||
depends="alsa-ucm-conf"
|
||||
replaces="alsa-ucm-conf"
|
||||
|
||||
package() {
|
||||
install -Dm644 mt8183_da7219_HiFi.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/conf.d/mt8183_da7219_r/HiFi.conf
|
||||
install -Dm644 mt8183_da7219_rt1015p.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/conf.d/mt8183_da7219_r/mt8183_da7219_rt1015p.conf
|
||||
install -Dm644 mt8183_mt6358_HiFi.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/conf.d/mt8183_mt6358_t/HiFi.conf
|
||||
install -Dm644 mt8183_mt6358_ts3a227_max98357.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/conf.d/mt8183_mt6358_t/mt8183_mt6358_ts3a227_max98357.conf
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d998860ca82ec9277a7b660dbdc644fc8ec84d5f3703dc72eac44a6b70b61ea9f733eeae94d21d9d2cadf25f95e951ce3c804593b4f0a4c715770b4b422d4ca7 mt8183_da7219_HiFi.conf
|
||||
c8ce246275beaa3e89eb4e06bed825935122c9f6a9fff9f8e3188dec47f37db92d908148cd7551785de5282c13386134bd6daf8ed033de122218b698d67bab33 mt8183_da7219_rt1015p.conf
|
||||
749180019ca12ec342604fc6924aa60c5f4ff2892ce22d2199b78d707947a8b91e71fa7a71643f3475bf2dba6e94c36e4fc57cb98f7a96519c83106b08ebc5c3 mt8183_mt6358_HiFi.conf
|
||||
c8ce246275beaa3e89eb4e06bed825935122c9f6a9fff9f8e3188dec47f37db92d908148cd7551785de5282c13386134bd6daf8ed033de122218b698d67bab33 mt8183_mt6358_ts3a227_max98357.conf
|
||||
"
|
81
temp/alsa-ucm-conf-google-kukui/mt8183_da7219_HiFi.conf
Normal file
81
temp/alsa-ucm-conf-google-kukui/mt8183_da7219_HiFi.conf
Normal file
|
@ -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"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
Syntax 2
|
||||
|
||||
Comment "Kukui internal card"
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Default"
|
||||
}
|
144
temp/alsa-ucm-conf-google-kukui/mt8183_mt6358_HiFi.conf
Normal file
144
temp/alsa-ucm-conf-google-kukui/mt8183_mt6358_HiFi.conf
Normal file
|
@ -0,0 +1,144 @@
|
|||
SectionVerb {
|
||||
EnableSequence [
|
||||
cdev "hw:mt8183mt6358ts3"
|
||||
cset "name='Headphone Volume' 0"
|
||||
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"
|
||||
cset "name='I2S3_CH1 DL1_CH1' 1"
|
||||
cset "name='I2S3_CH2 DL1_CH2' 1"
|
||||
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"
|
||||
# from headset mic - does not work -see below
|
||||
# cset "name='PGA L Mux' 0"
|
||||
# cset "name='ADC L Mux' 0"
|
||||
# cset "name='PGA Volume' 0"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Headphones" {
|
||||
Comment "Headphones"
|
||||
|
||||
Value {
|
||||
PlaybackPCM "hw:mt8183mt6358ts3,0"
|
||||
JackControl "mt8183_mt6358_ts3a227_max98357 Headset Jack"
|
||||
}
|
||||
|
||||
ConflictingDevice [
|
||||
"Speaker"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:mt8183mt6358ts3"
|
||||
cset "name='ADDA_DL_CH1 DL1_CH1' 1"
|
||||
cset "name='ADDA_DL_CH2 DL1_CH2' 1"
|
||||
cset "name='HPL Mux' 2"
|
||||
cset "name='HPR Mux' 2"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:mt8183mt6358ts3"
|
||||
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"
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Speaker" {
|
||||
Comment "Speaker"
|
||||
|
||||
Value {
|
||||
PlaybackPCM "hw:mt8183mt6358ts3,0"
|
||||
DspName "speaker_eq"
|
||||
}
|
||||
|
||||
ConflictingDevice [
|
||||
"Headphones"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:mt8183mt6358ts3"
|
||||
cset "name='I2S3_CH1 DL1_CH1' 1"
|
||||
cset "name='I2S3_CH2 DL1_CH2' 1"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:mt8183mt6358ts3"
|
||||
cset "name='I2S3_CH1 DL1_CH1' 0"
|
||||
cset "name='I2S3_CH2 DL1_CH2' 0"
|
||||
]
|
||||
}
|
||||
|
||||
# headset mic does not work for some reason - if enabled there is no signal
|
||||
# from it and after switching back to internal mic even that does not give
|
||||
# any signal anymore
|
||||
#SectionDevice."HeadsetMic" {
|
||||
# Comment "Headset Microphone"
|
||||
#
|
||||
# Value {
|
||||
# CapturePCM "hw:mt8183mt6358ts3,5"
|
||||
# # i guess this one is chromeos specific and not used otherwise
|
||||
# CaptureChannelMap "0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1"
|
||||
# JackControl "mt8183_mt6358_ts3a227_max98357 Headset Jack"
|
||||
# }
|
||||
#
|
||||
# ConflictingDevice [
|
||||
# "InternalMic"
|
||||
# ]
|
||||
#
|
||||
# EnableSequence [
|
||||
# cdev "hw:mt8183mt6358ts3"
|
||||
# cset "name='PGA L Mux' 2"
|
||||
# cset "name='ADC L Mux' 2"
|
||||
# cset "name='Mic Type Mux' 1"
|
||||
# cset "name='PGA Volume' 4"
|
||||
# cset "name='UL3_CH1 ADDA_UL_CH1' 1"
|
||||
# ]
|
||||
#
|
||||
# DisableSequence [
|
||||
# cdev "hw:mt8183mt6358ts3"
|
||||
# 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."InternalMic" {
|
||||
Comment "Intrernal Microphone"
|
||||
|
||||
Value {
|
||||
CapturePCM "hw:mt8183mt6358ts3,5"
|
||||
# i guess those two are chromeos specific and not used otherwise
|
||||
CaptureChannelMap "0 1 -1 -1 -1 -1 -1 -1 -1 -1 -1"
|
||||
IntrinsicSensitivity "-2600"
|
||||
}
|
||||
|
||||
# from headset mic - does not work -see above
|
||||
# ConflictingDevice [
|
||||
# "HeadsetMic"
|
||||
# ]
|
||||
|
||||
EnableSequence [
|
||||
cdev "hw:mt8183mt6358ts3"
|
||||
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"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cdev "hw:mt8183mt6358ts3"
|
||||
cset "name='MTKAIF_DMIC' 0"
|
||||
cset "name='UL3_CH1 ADDA_UL_CH1' 0"
|
||||
cset "name='UL3_CH2 ADDA_UL_CH2' 0"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
Syntax 2
|
||||
|
||||
Comment "Kukui internal card"
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Default"
|
||||
}
|
Loading…
Reference in a new issue