From 421095284a8e664f7c6c01982dec8a4aa18d3453 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Wed, 28 Oct 2020 12:12:32 +0100 Subject: [PATCH] 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. --- device/community/soc-qcom-msm8916/APKBUILD | 27 +++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/device/community/soc-qcom-msm8916/APKBUILD b/device/community/soc-qcom-msm8916/APKBUILD index 1c79fb2b5..4b9b41963 100644 --- a/device/community/soc-qcom-msm8916/APKBUILD +++ b/device/community/soc-qcom-msm8916/APKBUILD @@ -1,26 +1,37 @@ # Maintainer: Minecrell pkgname=soc-qcom-msm8916 pkgdesc="Common package for Qualcomm MSM8916 devices" -pkgver=8 +pkgver=9 pkgrel=0 url="https://postmarketos.org" license="BSD-3-Clause" arch="aarch64 armv7" options="!check !archcheck !tracedeps pmb:cross-native" -depends="alsa-ucm-conf mesa-dri-gallium" -subpackages="$pkgname-modem" +depends="mesa-dri-gallium $pkgname-ucm" +subpackages="$pkgname-ucm $pkgname-modem" _ucm_commit="c34a73dc0714834d2d2ff5ae304e20b7d93c4c98" source="$pkgname-$_ucm_commit.tar.gz::https://github.com/msm8916-mainline/alsa-ucm-conf/archive/$_ucm_commit.tar.gz q6voiced.conf " -_devices="bq-paella msm8916 samsung-a2015 samsung-gt510 wt88047 xiaomi-mido" package() { - cd "$srcdir/alsa-ucm-conf-$_ucm_commit"/ucm2 - find $_devices codecs/msm8916-wcd platforms/msm8916 \ - -type f -name "*.conf" \ - -exec install -Dm644 {} "$pkgdir"/usr/share/alsa/ucm2/{} \; + # parent package is empty + mkdir -p "$pkgdir" +} + +# 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() {