device/community/soc-qcom-msm8916: fork alsa-ucm-conf entirely (MR 1655)
Upstream keeps making breaking changes in patch releases. Let's fork alsa-ucm-conf entirely for now instead of just patching in some files to ensure that these files don't break every few months. This fixes audio on MSM8916 devices when not using the modem.
This commit is contained in:
parent
5efdbd13fa
commit
421095284a
1 changed files with 19 additions and 8 deletions
|
@ -1,26 +1,37 @@
|
||||||
# Maintainer: Minecrell <minecrell@minecrell.net>
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
||||||
pkgname=soc-qcom-msm8916
|
pkgname=soc-qcom-msm8916
|
||||||
pkgdesc="Common package for Qualcomm MSM8916 devices"
|
pkgdesc="Common package for Qualcomm MSM8916 devices"
|
||||||
pkgver=8
|
pkgver=9
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
arch="aarch64 armv7"
|
arch="aarch64 armv7"
|
||||||
options="!check !archcheck !tracedeps pmb:cross-native"
|
options="!check !archcheck !tracedeps pmb:cross-native"
|
||||||
depends="alsa-ucm-conf mesa-dri-gallium"
|
depends="mesa-dri-gallium $pkgname-ucm"
|
||||||
subpackages="$pkgname-modem"
|
subpackages="$pkgname-ucm $pkgname-modem"
|
||||||
|
|
||||||
_ucm_commit="c34a73dc0714834d2d2ff5ae304e20b7d93c4c98"
|
_ucm_commit="c34a73dc0714834d2d2ff5ae304e20b7d93c4c98"
|
||||||
source="$pkgname-$_ucm_commit.tar.gz::https://github.com/msm8916-mainline/alsa-ucm-conf/archive/$_ucm_commit.tar.gz
|
source="$pkgname-$_ucm_commit.tar.gz::https://github.com/msm8916-mainline/alsa-ucm-conf/archive/$_ucm_commit.tar.gz
|
||||||
q6voiced.conf
|
q6voiced.conf
|
||||||
"
|
"
|
||||||
|
|
||||||
_devices="bq-paella msm8916 samsung-a2015 samsung-gt510 wt88047 xiaomi-mido"
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/alsa-ucm-conf-$_ucm_commit"/ucm2
|
# parent package is empty
|
||||||
find $_devices codecs/msm8916-wcd platforms/msm8916 \
|
mkdir -p "$pkgdir"
|
||||||
-type f -name "*.conf" \
|
}
|
||||||
-exec install -Dm644 {} "$pkgdir"/usr/share/alsa/ucm2/{} \;
|
|
||||||
|
# Upstream keeps making breaking changes to UCM in patch releases.
|
||||||
|
# My last upstreaming efforts failed without ever getting a reply,
|
||||||
|
# since then UCM was entirely reworked like 3 times already...
|
||||||
|
# I don't want to fix this up every few months, so let's package a stable
|
||||||
|
# version for now. Once all the UCM refactoring upstream has settled down a bit
|
||||||
|
# we can investigate how to integrate it properly for upstreaming.
|
||||||
|
ucm() {
|
||||||
|
provides="alsa-ucm-conf"
|
||||||
|
|
||||||
|
cd "$srcdir/alsa-ucm-conf-$_ucm_commit"
|
||||||
|
mkdir -p "$subpkgdir"/usr/share/alsa
|
||||||
|
cp -r ucm2 "$subpkgdir"/usr/share/alsa
|
||||||
}
|
}
|
||||||
|
|
||||||
modem() {
|
modem() {
|
||||||
|
|
Loading…
Reference in a new issue