device/soc-qcom-msm8916: add a lot of hacks to make it work again (!992)

Upstream changes in alsa-lib have completely broken these UCM files.
Add a number of hacks to make them work again... Yay!

See: fed543629e
This commit is contained in:
Minecrell 2020-02-25 16:05:02 +01:00 committed by Alexey Min
parent 89fa4dd264
commit 456d068b4d
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448

View file

@ -1,7 +1,7 @@
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname="soc-qcom-msm8916"
pkgdesc="Common package for Qualcomm MSM8916 devices"
pkgver=2
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
@ -10,12 +10,13 @@ options="!check !archcheck"
depends="mesa-dri-freedreno"
subpackages="$pkgname-modem"
_ucm_commit=e4639175c20c7dfe8f31fe32735d1efa8af31a48
_ucm_commit="fed543629e6c63429414cf41588cab1c65030775"
source="$pkgname-$_ucm_commit.tar.gz::https://github.com/msm8916-mainline/alsa-ucm-conf/archive/$_ucm_commit.tar.gz"
package() {
cd "$srcdir/alsa-ucm-conf-$_ucm_commit"/ucm2
find msm8916* codecs/msm8916-wcd platforms/msm8916 -type f -name "*.conf" \
find msm8916 samsung-a2015 codecs/msm8916-wcd platforms/msm8916 \
-type f -name "*.conf" \
-exec install -Dm644 {} "$pkgdir"/usr/share/alsa/ucm2/{} \;
}
@ -24,4 +25,4 @@ modem() {
mkdir "$subpkgdir"
}
sha512sums="392ed18933d3ccad8cecb8086742c6cfb44cb24d3de4e20dfa9caa137707df2439e45bd4e6215883c6f2710f279a12c408f09ab18c333682483eccf863ced0de soc-qcom-msm8916-e4639175c20c7dfe8f31fe32735d1efa8af31a48.tar.gz"
sha512sums="3eff5f37d3ce515b9efd1c9e99960063ce0f2859d65ca4d8a871e5aa6828f699cb6fb3c01f8c41dfefa79a36ef298a04dcbde54cd65a6d6507af6cc141db3b8b soc-qcom-msm8916-fed543629e6c63429414cf41588cab1c65030775.tar.gz"