d8c4343bea
Update the ALSA UCM package for the SDM845 so the ALSA UCM configs for the SHIFT6mq are included. Speaker, microphones, headset work fine in HiFi mode. In Voice Call mode, the microphone works, but the earpiece is still silent. [ci:skip-build]: already built successfully in CI
87 lines
2.5 KiB
Text
87 lines
2.5 KiB
Text
# Maintainer: Caleb Connolly (kalube) <caleb@connolly.tech>
|
|
# Co-Maintainer: Joel Selvaraj <joelselvaraj.oss@gmail.com>
|
|
pkgname=soc-qcom-sdm845
|
|
pkgdesc="Common package for Qualcomm SDM845 devices"
|
|
pkgver=11
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="BSD-3-Clause"
|
|
arch="aarch64"
|
|
options="!check !archcheck !tracedeps"
|
|
depends="
|
|
swclock-offset
|
|
"
|
|
replaces="upower"
|
|
subpackages="
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
$pkgname-qbootctl
|
|
$pkgname-ucm
|
|
$pkgname-vulkan
|
|
"
|
|
|
|
_ucm_commit="c6b5d80b87f326d491b51ee4f18e819d02d32e53"
|
|
source="
|
|
alsa-ucm-conf-$_ucm_commit.tar.gz::https://gitlab.com/sdm845-mainline/alsa-ucm-conf/-/archive/$_ucm_commit/alsa-ucm-conf-$_ucm_commit.tar.gz
|
|
90-feedbackd-pmi8998.rules
|
|
modemmanager.conf
|
|
UPower.conf
|
|
"
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
install -Dm644 "$srcdir"/90-feedbackd-pmi8998.rules \
|
|
"$pkgdir"/usr/lib/udev/rules.d/90-feedbackd-pmi8998.rules
|
|
|
|
# Shutdown when battery is critical instead of sleep
|
|
install -Dm644 "$srcdir"/UPower.conf \
|
|
"$pkgdir"/etc/UPower/UPower.conf
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Modem, WiFi and GPU Firmware"
|
|
depends="
|
|
pd-mapper
|
|
pd-mapper-openrc
|
|
tqftpserv
|
|
tqftpserv-openrc
|
|
q6voiced
|
|
q6voiced-openrc
|
|
msm-modem
|
|
msm-modem-uim-selection
|
|
bootmac
|
|
"
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
|
mkdir "$subpkgdir"
|
|
|
|
install -Dm644 "$srcdir"/modemmanager.conf \
|
|
"$subpkgdir"/etc/conf.d/modemmanager
|
|
}
|
|
|
|
ucm() {
|
|
provides="alsa-ucm-conf"
|
|
|
|
# install audio config files
|
|
mkdir -p "$subpkgdir"/usr/share/alsa/ucm2
|
|
cp -r "$srcdir/alsa-ucm-conf-$_ucm_commit"/ucm2 "$subpkgdir"/usr/share/alsa/
|
|
}
|
|
|
|
qbootctl() {
|
|
pkgdesc="Enable qbootctl mark-boot-successful service"
|
|
depends="qbootctl"
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
vulkan() {
|
|
pkgdesc="Vulkan support for freedreno"
|
|
install_if="$pkgname vulkan-loader"
|
|
depends="mesa-vulkan-freedreno"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
1e7d9c2680c038d94ec91f9e444555d16c1ae1f3b3606f2c5fa8acf8888694646be3d9047f55b88a88fa5cc19fc7f252e35e8c351f9a7412b48c3486b53ca0ec alsa-ucm-conf-c6b5d80b87f326d491b51ee4f18e819d02d32e53.tar.gz
|
|
4f2c22a3a3fc7d380e200ad977578107d81f0e7ade7918e03bdb15b60a564e8db5f47e13cce22f636d38fd3722696bb46076b8872dae0ca2d8a3838522a1f025 90-feedbackd-pmi8998.rules
|
|
e33f41360ccc4900bb76a26cc7b46bde1fb90facdf45c4fbcebc80499386939948401cacd6df9f779eafab10f4ee77ee1fef3e7bd06f483f8c2a4a644c84f327 modemmanager.conf
|
|
9d455b56558d453d501a1ad869ffa79f9952ed43485a9847d506db6a78bfcd9f9c9d855660ee1d368eb74f4429385ec166addc30d802261c75562e785fe84c52 UPower.conf
|
|
"
|