alsa-ucm-conf-google-kukui: drop in favor of alsa-ucm-conf-cros (MR 5020)

This commit is contained in:
WeirdTreeThing 2024-04-09 12:24:51 -04:00 committed by Clayton Craft
parent e5efdcf862
commit b383c20a51
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
7 changed files with 3 additions and 275 deletions

View file

@ -6,7 +6,7 @@ pkgdesc="ALSA UCM configuration for Chrome OS devices"
url="https://github.com/WeirdTreeThing/alsa-ucm-conf-cros"
arch="noarch"
depends="alsa-ucm-conf"
replaces="alsa-ucm-conf"
replaces="alsa-ucm-conf alsa-ucm-conf-google-kukui"
license="BSD-3-Clause"
options="!check"
source="$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"

View file

@ -1,41 +0,0 @@
# Maintainer: WeirdTreeThing <bradyn127@protonmail.com>
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=alsa-ucm-conf-google-kukui
pkgver=2
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
ln -s /usr/share/alsa/ucm2/conf.d/mt8183_da7219_r \
"$pkgdir"/usr/share/alsa/ucm2/mt8183_da7219_r
ln -s /usr/share/alsa/ucm2/conf.d/mt8183_mt6358_t \
"$pkgdir"/usr/share/alsa/ucm2/mt8183_mt6358_t
}
sha512sums="
9755c2eaf4bc28a9f3734b6778550ebd77bbee8f6aa353642bc5a35d68e009a17b05d9b09f1c62fe592eb16a2d342e3d2abcda98f2c53142bd4905e4a883a88b mt8183_da7219_HiFi.conf
13ffff0471c29d4e624ba7089d8df811f6578bebc4a9da2e8e82e247430fd41dbc95204fdf1891cfb76f1d90303fcdb8501ecf47b8ca40c7429066bf2ff1379b mt8183_da7219_rt1015p.conf
3656cb0cc76994aab39bd0d0cfe283339bce0689448612f74a0d09a30b19516950132456945096a13bd5700d0e7f868c413e268ced810046ec70252ca8b07603 mt8183_mt6358_HiFi.conf
171e9e3376e5bd56e133a5b19309f60f6326f052922064e6f95c53b4345ea12cc205adde7305a7bd840722a29b7fb393c71d2b39e60952b0979ecc2e5ec03efa mt8183_mt6358_ts3a227_max98357.conf
"

View file

@ -1,90 +0,0 @@
SectionDevice."Speaker" {
Comment "Speaker"
Value {
PlaybackPCM "hw:${CardId},0"
}
EnableSequence [
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
cset "name='Speakers Switch' 1"
]
DisableSequence [
cset "name='I2S3_CH1 DL1_CH1' 0"
cset "name='I2S3_CH2 DL1_CH2' 0"
cset "name='Speakers Switch' 0"
]
}
SectionDevice."Headphones" {
Comment "Headphones"
Value {
PlaybackPCM "hw:${CardId},0"
}
EnableSequence [
cset "name='Playback Digital Switch' 1"
cset "name='Headphone Switch' 1"
cset "name='ST Mixer Out FilterL Out FilterL Switch' 1"
cset "name='Mixer Out FilterL DACL Switch' 1"
cset "name='ST Mixer Out FilterR Out FilterR Switch' 1"
cset "name='Mixer Out FilterR DACR Switch' 1"
cset "name='Out DACL Mux' DAIL"
cset "name='Out DACR Mux' DAIR"
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
]
DisableSequence [
cset "name='Playback Digital Switch' 0"
cset "name='Headphone Switch' 0"
cset "name='ST Mixer Out FilterL Out FilterL Switch' 0"
cset "name='Mixer Out FilterL DACL Switch' 0"
cset "name='ST Mixer Out FilterR Out FilterR Switch' 0"
cset "name='Mixer Out FilterR DACR Switch' 0"
cset "name='I2S3_CH1 DL1_CH1' 0"
cset "name='I2S3_CH2 DL1_CH2' 0"
]
}
SectionDevice."Mic" {
Comment "Internal Microphone"
Value {
CapturePCM "hw:${CardId},5"
}
EnableSequence [
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 [
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"
]
}
SectionDevice."Headset" {
Comment "Headset Microphone"
Value {
CapturePCM "hw:${CardId},5"
}
EnableSequence [
cset "name='Capture Digital Switch' 1"
cset "name='Mixin Switch' 1"
cset "name='Mic Switch' 1"
cset "name='Mixer In Mic Switch' 1"
cset "name='Out DAIL Mux' ADC"
cset "name='UL3_CH1 I2S2_CH1' 1"
]
DisableSequence [
cset "name='Capture Digital Switch' 0"
cset "name='Mixin Switch' 0"
cset "name='Mic Switch' 0"
cset "name='Mixer In Mic Switch' 0"
cset "name='UL3_CH1 I2S2_CH1' 0"
]
}

View file

@ -1,24 +0,0 @@
Syntax 6
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,86 +0,0 @@
SectionDevice."Speaker" {
Comment "Speaker"
Value {
PlaybackPCM "hw:${CardId},0"
}
EnableSequence [
cset "name='I2S3_CH1 DL1_CH1' 1"
cset "name='I2S3_CH2 DL1_CH2' 1"
]
DisableSequence [
cset "name='I2S3_CH1 DL1_CH1' 0"
cset "name='I2S3_CH2 DL1_CH2' 0"
]
}
SectionDevice."Mic" {
Comment "Internal Microphone"
Value {
CapturePCM "hw:${CardId},5"
}
EnableSequence [
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 [
cset "name='MTKAIF_DMIC' 0"
cset "name='UL3_CH1 ADDA_UL_CH1' 0"
cset "name='UL3_CH2 ADDA_UL_CH2' 0"
]
}
If.krane {
Condition {
Type String
Haystack "${sys:firmware/devicetree/base/compatible}"
Needle "google,krane"
}
False {
SectionDevice."Headphones" {
Comment "Headphones"
Value {
PlaybackPCM "hw:${CardId},0"
}
EnableSequence [
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 [
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."Headset" {
Comment "Headset Microphone"
Value {
CapturePCM "hw:${CardId},5"
}
EnableSequence [
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 [
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"
]
}
}
}

View file

@ -1,31 +0,0 @@
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"
]

View file

@ -3,13 +3,13 @@
pkgname=device-google-kukui
pkgdesc="Google Kukui Chromebooks"
pkgver=6
pkgrel=4
pkgrel=5
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
alsa-ucm-conf-google-kukui
alsa-ucm-conf-cros
depthcharge-tools
linux-postmarketos-mediatek-mt8183>=6.1.28-r0
postmarketos-base