From 098b71ba7666a79818c0d4b130340e1b435f812e Mon Sep 17 00:00:00 2001 From: Joel Selvaraj Date: Tue, 8 Aug 2023 03:42:44 -0500 Subject: [PATCH] community/soc-qcom-sdm845: fix the missing .post-install script for call audio (MR 4316) --- device/community/soc-qcom-sdm845/APKBUILD | 4 ++-- .../soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-install | 3 +++ .../soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade | 4 +--- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-install mode change 100644 => 120000 device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade diff --git a/device/community/soc-qcom-sdm845/APKBUILD b/device/community/soc-qcom-sdm845/APKBUILD index 098aa4389..f209a16f0 100644 --- a/device/community/soc-qcom-sdm845/APKBUILD +++ b/device/community/soc-qcom-sdm845/APKBUILD @@ -3,7 +3,7 @@ pkgname=soc-qcom-sdm845 pkgdesc="Common package for Qualcomm SDM845 devices" pkgver=17 -pkgrel=0 +pkgrel=1 url="https://postmarketos.org" license="BSD-3-Clause" arch="aarch64" @@ -106,7 +106,7 @@ vulkan() { pulseaudio() { install_if="$pkgname=$pkgver-r$pkgrel pulseaudio" replaces="$pkgname" # To migrate from workaround being in main package - install="$subpkgname.post-upgrade" + install="$subpkgname.post-install $subpkgname.post-upgrade" # Call Audio idle suspend workaround code install -Dm755 "$srcdir"/call_audio_idle_suspend_workaround.sh \ diff --git a/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-install b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-install new file mode 100644 index 000000000..c318fe7e8 --- /dev/null +++ b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-install @@ -0,0 +1,3 @@ +#!/bin/sh + +rc-update add call_audio_idle_suspend_workaround default diff --git a/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade deleted file mode 100644 index c318fe7e8..000000000 --- a/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -rc-update add call_audio_idle_suspend_workaround default diff --git a/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade new file mode 120000 index 000000000..a883e6d58 --- /dev/null +++ b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-pulseaudio.post-upgrade @@ -0,0 +1 @@ +soc-qcom-sdm845-pulseaudio.post-install \ No newline at end of file